diff options
-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) |