diff options
author | hongnanli | 2022-02-11 11:33:25 +0800 |
---|---|---|
committer | Ilya Dryomov | 2022-03-01 18:26:36 +0100 |
commit | 810313c5f3f5cff36c342d3e26c13f170c3af044 (patch) | |
tree | 99e05b8c7c82635187a79342b6f6307a9d83892b /fs/ceph/inode.c | |
parent | 370f0acf2c707a3973daf528a725f046c9528f6b (diff) |
ceph: fix comments mentioning i_mutex
inode->i_mutex has been replaced with inode->i_rwsem long ago. Fix
comments still mentioning i_mutex.
Signed-off-by: hongnanli <hongnan.li@linux.alibaba.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index ef4a980a7bf3..22adddb3d051 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -1201,7 +1201,7 @@ out_unlock: /* * splice a dentry to an inode. - * caller must hold directory i_mutex for this to be safe. + * caller must hold directory i_rwsem for this to be safe. */ static int splice_dentry(struct dentry **pdn, struct inode *in) { @@ -1598,7 +1598,7 @@ static int fill_readdir_cache(struct inode *dir, struct dentry *dn, return idx == 0 ? -ENOMEM : 0; } /* reading/filling the cache are serialized by - * i_mutex, no need to use page lock */ + * i_rwsem, no need to use page lock */ unlock_page(ctl->page); ctl->dentries = kmap(ctl->page); if (idx == 0) |