* [PATCH] fsck.f2fs: use mem nat info directly
@ 2018-01-22 12:03 Yunlei He
2018-01-24 15:39 ` Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Yunlei He @ 2018-01-22 12:03 UTC (permalink / raw)
To: jaegeuk, yuchao0, linux-f2fs-devel; +Cc: ning.jia, heyunlei
Use mem nat info directly for we built in fsck init.
Signed-off-by: Yunlei He <heyunlei@huawei.com>
---
fsck/mount.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fsck/mount.c b/fsck/mount.c
index 0a5b986..fe0d510 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -1591,8 +1591,14 @@ void update_nat_blkaddr(struct f2fs_sb_info *sbi, nid_t ino,
void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, struct node_info *ni)
{
struct f2fs_nat_entry raw_nat;
- get_nat_entry(sbi, nid, &raw_nat);
+
ni->nid = nid;
+ if (c.func == FSCK) {
+ node_info_from_raw_nat(ni, &(F2FS_FSCK(sbi)->entries[nid]));
+ return;
+ }
+
+ get_nat_entry(sbi, nid, &raw_nat);
node_info_from_raw_nat(ni, &raw_nat);
}
--
1.9.1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fsck.f2fs: use mem nat info directly
2018-01-22 12:03 [PATCH] fsck.f2fs: use mem nat info directly Yunlei He
@ 2018-01-24 15:39 ` Chao Yu
0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2018-01-24 15:39 UTC (permalink / raw)
To: Yunlei He, jaegeuk, yuchao0, linux-f2fs-devel; +Cc: ning.jia
On 2018/1/22 20:03, Yunlei He wrote:
> Use mem nat info directly for we built in fsck init.
>
> Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-24 15:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-22 12:03 [PATCH] fsck.f2fs: use mem nat info directly Yunlei He
2018-01-24 15:39 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).