On Wed, Aug 06, 2014 at 03:14:51PM -0400, Jeff Layton wrote: > Now that they are a distinct lease type, show them as such. Makes sense, thanks! --b. > > Cc: J. Bruce Fields <bfields@xxxxxxxxxxxx> > Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxxxxxxx> > --- > fs/locks.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fs/locks.c b/fs/locks.c > index 717fbc404e6b..51cdc9d3fafa 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, > 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) > -- > 1.9.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html