projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
locks: show delegations as "DELEG" in /proc/locks
[linux-2.6-block.git]
/
fs
/
locks.c
diff --git
a/fs/locks.c
b/fs/locks.c
index a6f54802d277304b2f483eb61af3ae6b574a79f9..356667a434c1f51284e97ef7d93ea219f0b501f7 100644
(file)
--- 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,
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)