From: "J. Bruce Fields" Subject: Re: [PATCH] locks: show delegations as "DELEG" in /proc/locks Date: Wed, 6 Aug 2014 17:06:17 -0400 Message-ID: <20140806210617.GA4971@fieldses.org> References: <1407352491-12224-1-git-send-email-jlayton@primarydata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, bfields@vger.kernel.org To: Jeff Layton Return-path: Received: from fieldses.org ([174.143.236.118]:36572 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752723AbaHFVGS (ORCPT ); Wed, 6 Aug 2014 17:06:18 -0400 Content-Disposition: inline In-Reply-To: <1407352491-12224-1-git-send-email-jlayton@primarydata.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 > Signed-off-by: Jeff Layton > --- > 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@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html