Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8144f1f6 authored by Jeff Layton's avatar Jeff Layton
Browse files

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: default avatarJeff Layton <jlayton@primarydata.com>
parent c8d6637d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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)) {
		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)