Skip to content

Commit

Permalink
locks: show delegations as "DELEG" in /proc/locks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Layton committed Aug 11, 2014
1 parent c8d6637 commit 8144f1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2452,7 +2452,11 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl,
seq_puts(f, "FLOCK ADVISORY ");
}
} else if (IS_LEASE(fl)) {
seq_puts(f, "LEASE ");
if (fl->fl_flags & FL_DELEG)
seq_puts(f, "DELEG ");
else
seq_puts(f, "LEASE ");

if (lease_breaking(fl))
seq_puts(f, "BREAKING ");
else if (fl->fl_file)
Expand Down

0 comments on commit 8144f1f

Please sign in to comment.