Commit 8041ac64 authored by Chunguang Xu's avatar Chunguang Xu Committed by Theodore Ts'o

ext4: update ext4_data_block_valid related comments

Since ext4_data_block_valid() has been renamed to ext4_inode_block_valid(),
the related comments need to be updated.
Signed-off-by: default avatarChunguang Xu <brookxu@tencent.com>
Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/1604764698-4269-5-git-send-email-brookxu@tencent.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent ce3cca33
...@@ -206,7 +206,7 @@ static void ext4_destroy_system_zone(struct rcu_head *rcu) ...@@ -206,7 +206,7 @@ static void ext4_destroy_system_zone(struct rcu_head *rcu)
* *
* The update of system_blks pointer in this function is protected by * The update of system_blks pointer in this function is protected by
* sb->s_umount semaphore. However we have to be careful as we can be * sb->s_umount semaphore. However we have to be careful as we can be
* racing with ext4_data_block_valid() calls reading system_blks rbtree * racing with ext4_inode_block_valid() calls reading system_blks rbtree
* protected only by RCU. That's why we first build the rbtree and then * protected only by RCU. That's why we first build the rbtree and then
* swap it in place. * swap it in place.
*/ */
...@@ -258,7 +258,7 @@ int ext4_setup_system_zone(struct super_block *sb) ...@@ -258,7 +258,7 @@ int ext4_setup_system_zone(struct super_block *sb)
/* /*
* System blks rbtree complete, announce it once to prevent racing * System blks rbtree complete, announce it once to prevent racing
* with ext4_data_block_valid() accessing the rbtree at the same * with ext4_inode_block_valid() accessing the rbtree at the same
* time. * time.
*/ */
rcu_assign_pointer(sbi->s_system_blks, system_blks); rcu_assign_pointer(sbi->s_system_blks, system_blks);
...@@ -278,7 +278,7 @@ int ext4_setup_system_zone(struct super_block *sb) ...@@ -278,7 +278,7 @@ int ext4_setup_system_zone(struct super_block *sb)
* *
* The update of system_blks pointer in this function is protected by * The update of system_blks pointer in this function is protected by
* sb->s_umount semaphore. However we have to be careful as we can be * sb->s_umount semaphore. However we have to be careful as we can be
* racing with ext4_data_block_valid() calls reading system_blks rbtree * racing with ext4_inode_block_valid() calls reading system_blks rbtree
* protected only by RCU. So we first clear the system_blks pointer and * protected only by RCU. So we first clear the system_blks pointer and
* then free the rbtree only after RCU grace period expires. * then free the rbtree only after RCU grace period expires.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment