f2fs: update start nid only once each circle
PATCH 1/5 f2fs: update start nid only once each circle
--- fs/f2fs/node.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
fs/f2fs/node.c +5 -1
@@ -1875,11 +1875,15 @@ void destroy_node_manager(struct f2fs_sb_info *sbi)while ((found =__gang_lookup_nat_cache (nm_i, nid,NATVEC_SIZE , natvec))) {unsigned idx; + + nid =nat_get_nid (natvec[found -1 ]) +1 ; +for (idx =0 ; idx < found; idx++) {struct nat_entry *e = natvec[idx]; - nid =nat_get_nid (e) +1 ; +__del_from_nat_cache (nm_i, e); } + }f2fs_bug_on (nm_i->nat_cnt);write_unlock (&nm_i->nat_tree_lock);
Signature · 9 lines
1.7.7 ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
Hi Gu,
Quoted 9 lines
-----Original Message-----
From: Gu Zheng [mailto:[email protected]]
Sent: Friday, March 07, 2014 6:43 PM
To: Kim
Cc: linux-kernel; f2fs
Subject: [f2fs-dev] [PATCH 1/5] f2fs: update start nid only once each circleSigned-off-by Gu Zheng <[email protected]>
Quoted 9 lines
--- fs/f2fs/node.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)fs/f2fs/node.c +0
-0
fs/f2fs/node.c void destroy_node_manager(struct f2fs_sb_info *sbi) · line 1882
Quoted 8 lines
fs/f2fs/node.c +3
-0@@ -1875,11 +1875,15 @@ void destroy_node_manager(struct f2fs_sb_info *sbi)while ((found =__gang_lookup_nat_cache (nm_i, nid,NATVEC_SIZE , natvec))) {unsigned idx; + + nid =nat_get_nid (natvec[found -1 ]) +1 ; +for (idx =0 ; idx < found; idx++) {struct nat_entry *e = natvec[idx];
Could we replace argument 'e' with 'natvec[idx]'? then we could remove 'e' and brace here.
Thanks.
Quoted 22 lines
fs/f2fs/node.c +2
-2- nid =nat_get_nid (e) +1 ; +__del_from_nat_cache (nm_i, e); } + }f2fs_bug_on (nm_i->nat_cnt);write_unlock (&nm_i->nat_tree_lock); --1.7.7
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 18 lines · Chao Yu
Hi Gu,
Quoted 9 lines
-----Original Message-----
From: Gu Zheng [mailto:[email protected]]
Sent: Friday, March 07, 2014 6:43 PM
To: Kim
Cc: linux-kernel; f2fs
Subject: [f2fs-dev] [PATCH 1/5] f2fs: update start nid only once each circleSigned-off-by Gu Zheng <[email protected]>Reviewed-by Chao Yu <[email protected]>Quoted 4 lines
--- fs/f2fs/node.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
Quoted 16 lines
fs/f2fs/node.c void destroy_node_manager(struct f2fs_sb_info *sbi) · line 1882
Quoted 13 lines
fs/f2fs/node.c +3
-0@@ -1875,11 +1875,15 @@ void destroy_node_manager(struct f2fs_sb_info *sbi)while ((found =__gang_lookup_nat_cache (nm_i, nid,NATVEC_SIZE , natvec))) {unsigned idx; + + nid =nat_get_nid (natvec[found -1 ]) +1 ; +for (idx =0 ; idx < found; idx++) {struct nat_entry *e = natvec[idx];Could we replace argument 'e' with 'natvec[idx]'? then we could remove 'e' and brace here.
Agree. More neat with this cleanup.
Regards,
Gu
Quoted 27 lines
Thanks.
Quoted 22 lines
fs/f2fs/node.c +2
-2- nid =nat_get_nid (e) +1 ; +__del_from_nat_cache (nm_i, e); } + }f2fs_bug_on (nm_i->nat_cnt);write_unlock (&nm_i->nat_tree_lock); --1.7.7
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi all,
I'll handle them all by myself.
Thank you for the contribution. :)
2014-03-10 (월), 09:32 +0800, Gu Zheng:
Quoted 76 lines · Chao Yu
Quoted 19 lines
Hi Gu,
Quoted 9 lines
-----Original Message-----
From: Gu Zheng [mailto:[email protected]]
Sent: Friday, March 07, 2014 6:43 PM
To: Kim
Cc: linux-kernel; f2fs
Subject: [f2fs-dev] [PATCH 1/5] f2fs: update start nid only once each circleSigned-off-by Gu Zheng <[email protected]>Reviewed-by Chao Yu <[email protected]>Quoted 4 lines
--- fs/f2fs/node.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)Quoted 16 lines
fs/f2fs/node.c void destroy_node_manager(struct f2fs_sb_info *sbi) · line 1882
Quoted 13 lines
fs/f2fs/node.c +3
-0@@ -1875,11 +1875,15 @@ void destroy_node_manager(struct f2fs_sb_info *sbi)while ((found =__gang_lookup_nat_cache (nm_i, nid,NATVEC_SIZE , natvec))) {unsigned idx; + + nid =nat_get_nid (natvec[found -1 ]) +1 ; +for (idx =0 ; idx < found; idx++) {struct nat_entry *e = natvec[idx];Could we replace argument 'e' with 'natvec[idx]'? then we could remove 'e' and brace here.
Agree. More neat with this cleanup.
Regards,
GuQuoted 15 lines
Thanks.
Quoted 12 lines
fs/f2fs/node.c +2
-2- nid =nat_get_nid (e) +1 ; +__del_from_nat_cache (nm_i, e); } + }f2fs_bug_on (nm_i->nat_cnt);write_unlock (&nm_i->nat_tree_lock); --1.7.7
Quoted 12 lines
Quoted 10 lines
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
Jaegeuk Kim Samsung