diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-01-22 17:48:28 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-02-11 20:04:34 -0500 |
commit | bc4a1f873b9db010f5b0971ee5f2987d9be32c36 (patch) | |
tree | d5f3767f28c87dd55c6a14d0a85ce4de562f8fb7 /fs/f2fs | |
parent | 1601839e9e5bd5726d744c9c5919f87dc808bbcc (diff) |
f2fs: leave comment for code readability
During the recovery, any xattr blocks should not be found, since they are
written into cold log, not the warm node chain.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/recovery.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index c4211a5862df..57603a7127f7 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c | |||
@@ -346,6 +346,10 @@ static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode, | |||
346 | if (IS_INODE(page)) { | 346 | if (IS_INODE(page)) { |
347 | recover_inline_xattr(inode, page); | 347 | recover_inline_xattr(inode, page); |
348 | } else if (f2fs_has_xattr_block(ofs_of_node(page))) { | 348 | } else if (f2fs_has_xattr_block(ofs_of_node(page))) { |
349 | /* | ||
350 | * Deprecated; xattr blocks should be found from cold log. | ||
351 | * But, we should remain this for backward compatibility. | ||
352 | */ | ||
349 | recover_xattr_data(inode, page, blkaddr); | 353 | recover_xattr_data(inode, page, blkaddr); |
350 | goto out; | 354 | goto out; |
351 | } | 355 | } |