Patchwork ext4: fix comment in extents.c/ext4_ext_check_cache

login
register
mail settings
Submitter Wang Sheng-Hui
Date July 6, 2012, 2:21 a.m.
Message ID <4FF64BC0.40607@gmail.com>
Download mbox | patch
Permalink /patch/169306/
State New
Headers show

Comments

Wang Sheng-Hui - July 6, 2012, 2:21 a.m.
For the branch test, it means no valid data cached.
Fix the comment here.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 fs/ext4/extents.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 91341ec..5207b7b 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -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;