From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753752AbaIDMjn (ORCPT ); Thu, 4 Sep 2014 08:39:43 -0400 Received: from mail-qa0-f47.google.com ([209.85.216.47]:33728 "EHLO mail-qa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753534AbaIDMjX (ORCPT ); Thu, 4 Sep 2014 08:39:23 -0400 From: Jeff Layton To: linux-fsdevel@vger.kernel.org Cc: linux-nfs@vger.kernel.org, Christoph Hellwig , "J. Bruce Fields" , linux-kernel@vger.kernel.org Subject: [PATCH v2 17/17] locks: clean up comments over fl_owner_t definition Date: Thu, 4 Sep 2014 08:38:43 -0400 Message-Id: <1409834323-7171-18-git-send-email-jlayton@primarydata.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1409834323-7171-1-git-send-email-jlayton@primarydata.com> References: <1409834323-7171-1-git-send-email-jlayton@primarydata.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The contents of an fl_owner_t have morphed a bit over the years, fix up the comments to account for the changes. Signed-off-by: Jeff Layton --- include/linux/fs.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index ed4e1897099c..a51be79b7dc3 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -852,11 +852,19 @@ static inline struct file *get_file(struct file *f) #define FILE_LOCK_DEFERRED 1 /* - * The POSIX file lock owner is determined by - * the "struct files_struct" in the thread group - * (or NULL for no owner - BSD locks). + * A generic "file lock owner" value. This is set differently for different + * types of locks. * - * Lockd stuffs a "host" pointer into this. + * The POSIX file lock owner is determined by the "struct files_struct" in the + * thread group. + * + * Flock (BSD) locks, OFD locks and leases set the fl_owner to the + * file description pointer. + * + * lockd stuffs a "host" pointer into this + * + * nfsd stuffs a * nfs4_file pointer into this for leases, and a lockowner + * pointer into it for v4 locks. */ typedef void *fl_owner_t; -- 1.9.3