diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-07-01 15:18:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-09 00:16:41 -0500 |
commit | 617588d5186c887eb94321b021bb5a46f896f4b3 (patch) | |
tree | d3f7a7d172d419a14c1dacfba17d3d6d5e53428b /fs/locks.c | |
parent | 6cedba8962f440c72447f811d0d530a8a9dc637a (diff) | |
download | linux-stable-617588d5186c887eb94321b021bb5a46f896f4b3.tar.gz linux-stable-617588d5186c887eb94321b021bb5a46f896f4b3.tar.bz2 linux-stable-617588d5186c887eb94321b021bb5a46f896f4b3.zip |
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>
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c index f155ffd648bb..079abcd8a836 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -134,7 +134,7 @@ #define IS_POSIX(fl) (fl->fl_flags & FL_POSIX) #define IS_FLOCK(fl) (fl->fl_flags & FL_FLOCK) -#define IS_LEASE(fl) (fl->fl_flags & FL_LEASE) +#define IS_LEASE(fl) (fl->fl_flags & (FL_LEASE|FL_DELEG)) static bool lease_breaking(struct file_lock *fl) { |