Skip to contentSkip to conversation

ext4: fix comment in extents.c/ext4_ext_check_cache

PATCH New Wang Sheng-Hui 1 participant 1 message Jul 6, 2012 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: fix comment in extents.c/ext4_ext_check_cache

For the branch test, it means no valid data cached. Fix the comment here.

---
 fs/ext4/extents.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext4/extents.c +1 -1
index 91341ec..5207b7b 100644
@@ -2121,7 +2121,7 @@ static int ext4_ext_check_cache(struct inode *inode, ext4_lblk_t block,
 	cex = &EXT4_I(inode)->i_cached_extent;
 	sbi = EXT4_SB(inode->i_sb);
 
-	/* has cache valid data? */
+	/* do not cache valid data? */
 	if (cex->ec_len == 0)
 		goto errout;
 
Signature · 1 line
1.7.1