Skip to contentSkip to conversation

f2fs: fix a comment in f2fs_shrink_count()

PATCH In review Chengguang Xu via Linux-f2fs-devel 2 participants 3 messages Sep 28, 2019 – Sep 29, 2019 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: fix a comment in f2fs_shrink_count()

Fix a mismatched comment in f2fs_shrink_count().

---
 fs/f2fs/shrinker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/shrinker.c +1 -1
index a467aca29cfe..d66de5999a26 100644
@@ -58,7 +58,7 @@ unsigned long f2fs_shrink_count(struct shrinker *shrink,
 		/* count extent cache entries */
 		count += __count_extent_cache(sbi);
 
-		/* shrink clean nat cache entries */
+		/* count clean nat cache entries */
 		count += __count_nat_entries(sbi);
 
 		/* count free nids cache entries */
Signature · 10 lines
2.21.0





_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#1 lore raw

Hi Chengguang,

Thanks a lot for the patch, previously I've sent a patch to fix most inconsistent comments including below one, could you check that?

https://lore.kernel.org/linux-f2fs-devel/[email protected]/T/#u

Thanks,

Quoted 13 lines · On 2019/9/28 9:40, Chengguang Xu via Linux-f2fs-devel wrote:

Fix a mismatched comment in f2fs_shrink_count().

---
 fs/f2fs/shrinker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/shrinker.c +0 -0
index a467aca29cfe..d66de5999a26 100644

fs/f2fs/shrinker.c unsigned long f2fs_shrink_count(struct shrinker *shrink, · line 64

Quoted 8 lines
fs/f2fs/shrinker.c +1 -1
@@ -58,7 +58,7 @@ unsigned long f2fs_shrink_count(struct shrinker *shrink,
 		/* count extent cache entries */
 		count += __count_extent_cache(sbi);
 
-		/* shrink clean nat cache entries */
+		/* count clean nat cache entries */
 		count += __count_nat_entries(sbi);
 
 		/* count free nids cache entries */

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

#2 lore raw

---- 在 星期日, 2019-09-29 08:56:25 Chao Yu <[email protected]> 撰写 ----

Quoted 7 lines

Hi Chengguang,

Thanks a lot for the patch, previously I've sent a patch to fix most inconsistent comments including below one, could you check that?

https://lore.kernel.org/linux-f2fs-devel/[email protected]/T/#u

Hi Chao,

Sorry, I didn't notice that before, please just drop my patch.

Thanks,
Chengguang

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel