Linux NFS development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] nfs/nfsd: fix some comments
@ 2024-08-24  1:43 Li Lingfeng
  2024-08-24  1:43 ` [PATCH v2 1/2] nfs: fix the comment of nfs_get_root Li Lingfeng
  2024-08-24  1:43 ` [PATCH v2 2/2] nfsd: fix some spelling errors in comments Li Lingfeng
  0 siblings, 2 replies; 4+ messages in thread
From: Li Lingfeng @ 2024-08-24  1:43 UTC (permalink / raw)
  To: trondmy, anna, chuck.lever, jlayton, neilb, kolga, Dai.Ngo, tom
  Cc: linux-nfs, linux-kernel, yukuai1, houtao1, yi.zhang, yangerkun,
	lilingfeng, lilingfeng3

v1->v2:
  Change the title of [PATCH 1/4] since it is a NFS client patch, not a
  nfsd patch;
  Made a small change of [PATCH 2/4] to make the comments more
  syntactically;
  Remove [PATCH 3/4] since it's meaningless;
  Remove [PATCH 4/4] since it has been applied to nfsd-next for v6.12.

v1:
https://lore.kernel.org/all/20240823070049.3499625-1-lilingfeng3@huawei.com/

Li Lingfeng (2):
  nfs: fix the comment of nfs_get_root
  nfsd: fix some spelling errors in comments

 fs/nfs/getroot.c    | 2 +-
 fs/nfsd/nfs4state.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] nfs: fix the comment of nfs_get_root
  2024-08-24  1:43 [PATCH v2 0/2] nfs/nfsd: fix some comments Li Lingfeng
@ 2024-08-24  1:43 ` Li Lingfeng
  2024-08-24  1:43 ` [PATCH v2 2/2] nfsd: fix some spelling errors in comments Li Lingfeng
  1 sibling, 0 replies; 4+ messages in thread
From: Li Lingfeng @ 2024-08-24  1:43 UTC (permalink / raw)
  To: trondmy, anna, chuck.lever, jlayton, neilb, kolga, Dai.Ngo, tom
  Cc: linux-nfs, linux-kernel, yukuai1, houtao1, yi.zhang, yangerkun,
	lilingfeng, lilingfeng3

The comment for nfs_get_root() needs to be updated as it would also be
used by NFS4 as follows:
@x[
    nfs_get_root+1
    nfs_get_tree_common+1819
    nfs_get_tree+2594
    vfs_get_tree+73
    fc_mount+23
    do_nfs4_mount+498
    nfs4_try_get_tree+134
    nfs_get_tree+2562
    vfs_get_tree+73
    path_mount+2776
    do_mount+226
    __se_sys_mount+343
    __x64_sys_mount+106
    do_syscall_64+69
    entry_SYSCALL_64_after_hwframe+97
, mount.nfs4]: 1

Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
---
 fs/nfs/getroot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs/getroot.c b/fs/nfs/getroot.c
index 11ff2b2e060f..f13d25d95b85 100644
--- a/fs/nfs/getroot.c
+++ b/fs/nfs/getroot.c
@@ -62,7 +62,7 @@ static int nfs_superblock_set_dummy_root(struct super_block *sb, struct inode *i
 }
 
 /*
- * get an NFS2/NFS3 root dentry from the root filehandle
+ * get a root dentry from the root filehandle
  */
 int nfs_get_root(struct super_block *s, struct fs_context *fc)
 {
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] nfsd: fix some spelling errors in comments
  2024-08-24  1:43 [PATCH v2 0/2] nfs/nfsd: fix some comments Li Lingfeng
  2024-08-24  1:43 ` [PATCH v2 1/2] nfs: fix the comment of nfs_get_root Li Lingfeng
@ 2024-08-24  1:43 ` Li Lingfeng
  2024-08-24 15:54   ` Chuck Lever
  1 sibling, 1 reply; 4+ messages in thread
From: Li Lingfeng @ 2024-08-24  1:43 UTC (permalink / raw)
  To: trondmy, anna, chuck.lever, jlayton, neilb, kolga, Dai.Ngo, tom
  Cc: linux-nfs, linux-kernel, yukuai1, houtao1, yi.zhang, yangerkun,
	lilingfeng, lilingfeng3

Fix spelling errors in comments of nfsd4_release_lockowner and
nfs4_set_delegation.

Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
---
 fs/nfsd/nfs4state.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index a20c2c9d7d45..9046e39b0e5c 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -5856,7 +5856,7 @@ nfs4_set_delegation(struct nfsd4_open *open, struct nfs4_ol_stateid *stp,
 
 	/*
 	 * Now that the deleg is set, check again to ensure that nothing
-	 * raced in and changed the mode while we weren't lookng.
+	 * raced in and changed the mode while we weren't looking.
 	 */
 	status = nfsd4_verify_setuid_write(open, fp->fi_deleg_file);
 	if (status)
@@ -8335,7 +8335,7 @@ check_for_locks(struct nfs4_file *fp, struct nfs4_lockowner *lowner)
  * @cstate: NFSv4 COMPOUND state
  * @u: RELEASE_LOCKOWNER arguments
  *
- * Check if theree are any locks still held and if not - free the lockowner
+ * Check if there are any locks still held and if not, free the lockowner
  * and any lock state that is owned.
  *
  * Return values:
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 2/2] nfsd: fix some spelling errors in comments
  2024-08-24  1:43 ` [PATCH v2 2/2] nfsd: fix some spelling errors in comments Li Lingfeng
@ 2024-08-24 15:54   ` Chuck Lever
  0 siblings, 0 replies; 4+ messages in thread
From: Chuck Lever @ 2024-08-24 15:54 UTC (permalink / raw)
  To: Li Lingfeng
  Cc: trondmy@kernel.org, anna@kernel.org, jlayton@kernel.org,
	neilb@suse.de, kolga@netapp.com, Dai Ngo, tom@talpey.com,
	linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	yukuai1@huaweicloud.com, houtao1@huawei.com, yi.zhang@huawei.com,
	yangerkun@huawei.com, lilingfeng@huaweicloud.com

On Fri, Aug 23, 2024 at 09:43:36PM -0400, Li Lingfeng wrote:
> Fix spelling errors in comments of nfsd4_release_lockowner and
> nfs4_set_delegation.
> 
> Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
> ---
>  fs/nfsd/nfs4state.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> [...]

Applied to nfsd-next for v6.12, thanks!

[2/2] nfsd: fix some spelling errors in comments
      commit: 2a6dfb4ce8136b93e38e1101636af44ed82b3d3e


-- 
Chuck Lever

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-24 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-24  1:43 [PATCH v2 0/2] nfs/nfsd: fix some comments Li Lingfeng
2024-08-24  1:43 ` [PATCH v2 1/2] nfs: fix the comment of nfs_get_root Li Lingfeng
2024-08-24  1:43 ` [PATCH v2 2/2] nfsd: fix some spelling errors in comments Li Lingfeng
2024-08-24 15:54   ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox