locks: introduce new FL_DELEG lock flag
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jul 2011 19:18:34 +0000 (15:18 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Nov 2013 05:16:41 +0000 (00:16 -0500)
commit617588d5186c887eb94321b021bb5a46f896f4b3
treed3f7a7d172d419a14c1dacfba17d3d6d5e53428b
parent6cedba8962f440c72447f811d0d530a8a9dc637a
locks: introduce new FL_DELEG lock flag

For now FL_DELEG is just a synonym for FL_LEASE.  So this patch doesn't
change behavior.

Next we'll modify break_lease to treat FL_DELEG leases differently, to
account for the fact that NFSv4 delegations should be broken in more
situations than Windows oplocks.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/locks.c
fs/nfsd/nfs4state.c
include/linux/fs.h