diff options
author | hongnanli <hongnan.li@linux.alibaba.com> | 2022-01-21 08:06:11 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-02-03 16:57:53 +0100 |
commit | f340b3d9027485945d59f9c04f1e33070b02cae2 (patch) | |
tree | d7e4ce497f7150296c272d4143e04dc5b5a2c515 /fs/ext4/orphan.c | |
parent | ext4: fix incorrect type issue during replay_del_range (diff) | |
download | linux-f340b3d9027485945d59f9c04f1e33070b02cae2.tar.xz linux-f340b3d9027485945d59f9c04f1e33070b02cae2.zip |
fs/ext4: 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>
Link: https://lore.kernel.org/r/20220121070611.21618-1-hongnan.li@linux.alibaba.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/orphan.c')
-rw-r--r-- | fs/ext4/orphan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/orphan.c b/fs/ext4/orphan.c index 53adc8f570a3..7de0612eb42d 100644 --- a/fs/ext4/orphan.c +++ b/fs/ext4/orphan.c @@ -93,7 +93,7 @@ static int ext4_orphan_file_add(handle_t *handle, struct inode *inode) * At filesystem recovery time, we walk this list deleting unlinked * inodes and truncating linked inodes in ext4_orphan_cleanup(). * - * Orphan list manipulation functions must be called under i_mutex unless + * Orphan list manipulation functions must be called under i_rwsem unless * we are just creating the inode or deleting it. */ int ext4_orphan_add(handle_t *handle, struct inode *inode) @@ -119,7 +119,7 @@ int ext4_orphan_add(handle_t *handle, struct inode *inode) /* * Orphan handling is only valid for files with data blocks * being truncated, or files being unlinked. Note that we either - * hold i_mutex, or the inode can not be referenced from outside, + * hold i_rwsem, or the inode can not be referenced from outside, * so i_nlink should not be bumped due to race */ ASSERT((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |