diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-08-11 13:36:54 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-08-11 13:36:54 -0400 |
commit | 8144f1f69943f447fd1bcb2d26ca011002d5df63 (patch) | |
tree | ee66646b08bcc1fde9be132d9b59ccbc56efcc73 | |
parent | c8d6637d0497d62093dbba0694c7b3a80b79bfe1 (diff) |
locks: show delegations as "DELEG" in /proc/locks
Now that they are a distinct lease type, show them as such.
Cc: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
-rw-r--r-- | fs/locks.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c index a6f54802d277..356667a434c1 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -2452,7 +2452,11 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl, | |||
2452 | seq_puts(f, "FLOCK ADVISORY "); | 2452 | seq_puts(f, "FLOCK ADVISORY "); |
2453 | } | 2453 | } |
2454 | } else if (IS_LEASE(fl)) { | 2454 | } else if (IS_LEASE(fl)) { |
2455 | seq_puts(f, "LEASE "); | 2455 | if (fl->fl_flags & FL_DELEG) |
2456 | seq_puts(f, "DELEG "); | ||
2457 | else | ||
2458 | seq_puts(f, "LEASE "); | ||
2459 | |||
2456 | if (lease_breaking(fl)) | 2460 | if (lease_breaking(fl)) |
2457 | seq_puts(f, "BREAKING "); | 2461 | seq_puts(f, "BREAKING "); |
2458 | else if (fl->fl_file) | 2462 | else if (fl->fl_file) |