Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5172465rwb; Mon, 21 Nov 2022 18:04:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf4guPaaoqUZiL3tVXNCT2CSHZRknJcrjgdrWskoCzdZl/RxeLpNTAdr+Uy/Q+fJPj/yG1Be X-Received: by 2002:a17:902:bd83:b0:17d:6603:8e45 with SMTP id q3-20020a170902bd8300b0017d66038e45mr5006412pls.173.1669082666517; Mon, 21 Nov 2022 18:04:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669082666; cv=none; d=google.com; s=arc-20160816; b=OtMQRqdPByIzY20q8MkvQgX4nSpXVnhGG1gJhm/ygKobya5roueJHGcMW1XrJbQiPY nB3W8SaP+O+92DpvbLTT7EdRIRmnpYBWy8UAxW85tVO160k6u98XLxccqmAeuGn1iZnL bXuV6EfvUF2fK4w8xXrzOBR2hmukZ4Rc6XKnq2xomai7oGeqZlJ0zQf1X2nZTVpzDC8k piTkqUCycbWRuh5L4WlHCPEzsBn1/+10aaDqE9X0rRTldnpFZ0G0I6Uokg9Gh0cN8/QK 10VUqtICcaUPlHiyZjzgZtuYDTa9UcmIK32+zT0bWvQbQ6clAE7EDjEDbQvuUkbgvn0L 8GwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=3w+kq2K/7OTXrUJ9MJct9wsI415NHl2R1cWgGgDpxfk=; b=bD6mlTZgBIX4hPnKlZjfYbuoBAV3SSLqkTzjQYgEUqLFLPXM2BKUhGvfxtwECp6tvk Tniny83NxGaP5uY7ALjWNiwX3pH9Rq03nP0kc8ysXI9OIMRBWJwhgwkV2roonYezUgcu QvnZB7UiBKBvoJhTrfX5gVqa8pFPXx4v/yyS+hvgYEuZUX1GLB77xuO1eDIG+lsQbDre RQHrXXAGdyz/yk9aQavNwY+rQ6CLyeF63g1LdsG5/6ZY0j0Uu1/zbTfptszgpQ1PWKmq UVdqbce4jdcUTTHbHp3PtypYQ0uHC8sivG0RGG2vMRINfo1w+5JEQWBsyB5Q/eKV0+Sp +d0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170902e80f00b0017a0e7aaf6bsi13976735plg.128.2022.11.21.18.04.03; Mon, 21 Nov 2022 18:04:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbiKVBvp (ORCPT + 99 others); Mon, 21 Nov 2022 20:51:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231661AbiKVBvo (ORCPT ); Mon, 21 Nov 2022 20:51:44 -0500 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 123FCE123B; Mon, 21 Nov 2022 17:51:41 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=joseph.qi@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0VVPgoyJ_1669081895; Received: from 30.222.0.245(mailfrom:joseph.qi@linux.alibaba.com fp:SMTPD_---0VVPgoyJ_1669081895) by smtp.aliyun-inc.com; Tue, 22 Nov 2022 09:51:37 +0800 Message-ID: <0c6a44ff-409e-99b2-eaa9-fd6e87a9e104@linux.alibaba.com> Date: Tue, 22 Nov 2022 09:51:35 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] filelock: move file locking definitions to separate header file Content-Language: en-US To: Jeff Layton , Mark Fasheh , Joel Becker Cc: hch@lst.de, linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, ocfs2-devel@oss.oracle.com, devel@lists.orangefs.org, linux-xfs@vger.kernel.org References: <20221120210004.381842-1-jlayton@kernel.org> From: Joseph Qi In-Reply-To: <20221120210004.381842-1-jlayton@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, On 11/21/22 4:59 AM, Jeff Layton wrote: > The file locking definitions have lived in fs.h since the dawn of time, > but they are only used by a small subset of the source files that > include it. > > Move the file locking definitions to a new header file, and add the > appropriate #include directives to the source files that need them. By > doing this we trim down fs.h a bit and limit the amount of rebuilding > that has to be done when we make changes to the file locking APIs. > > Signed-off-by: Jeff Layton > --- > fs/9p/vfs_file.c | 1 + > fs/afs/internal.h | 1 + > fs/attr.c | 1 + > fs/ceph/locks.c | 1 + > fs/cifs/cifsfs.c | 1 + > fs/cifs/cifsglob.h | 1 + > fs/cifs/cifssmb.c | 1 + > fs/cifs/file.c | 1 + > fs/cifs/smb2file.c | 1 + > fs/dlm/plock.c | 1 + > fs/fcntl.c | 1 + > fs/file_table.c | 1 + > fs/fuse/file.c | 1 + > fs/gfs2/file.c | 1 + > fs/inode.c | 1 + > fs/ksmbd/smb2pdu.c | 1 + > fs/ksmbd/vfs.c | 1 + > fs/ksmbd/vfs_cache.c | 1 + > fs/lockd/clntproc.c | 1 + > fs/lockd/netns.h | 1 + > fs/locks.c | 1 + > fs/namei.c | 1 + > fs/nfs/nfs4_fs.h | 1 + > fs/nfs_common/grace.c | 1 + > fs/nfsd/netns.h | 1 + > fs/ocfs2/locks.c | 1 + > fs/ocfs2/stack_user.c | 1 + Seems it misses the related changes in: fs/ocfs2/stackglue.c Thanks, Joseph > fs/open.c | 1 + > fs/orangefs/file.c | 1 + > fs/proc/fd.c | 1 + > fs/utimes.c | 1 + > fs/xattr.c | 1 + > fs/xfs/xfs_buf.h | 1 + > fs/xfs/xfs_file.c | 1 + > fs/xfs/xfs_inode.c | 1 + > include/linux/filelock.h | 428 ++++++++++++++++++++++++++++++++++++++ > include/linux/fs.h | 421 ------------------------------------- > include/linux/lockd/xdr.h | 1 + > 38 files changed, 464 insertions(+), 421 deletions(-) > create mode 100644 include/linux/filelock.h > > Unless anyone has objections, I'll plan to merge this in via the file > locking tree for v6.3. I'd appreciate Acked-bys or Reviewed-bys from > maintainers, however. >