aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/f2fs_fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-12-23 16:26:31 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-01-09 17:02:25 -0800
commit09eb483e895f36fd002e88c878e9578c359aa468 (patch)
tree8237cf3cae658a3cb1e79728617bb1ecfa2fadb1 /include/linux/f2fs_fs.h
parentf2fs: add block count by in-place-update in stat info (diff)
downloadlinux-dev-09eb483e895f36fd002e88c878e9578c359aa468.tar.xz
linux-dev-09eb483e895f36fd002e88c878e9578c359aa468.zip
f2fs: fix missing cold bit during recovery
In do_recover_data, we find and update previous node pages after updating its new block addresses. After then, we call fill_node_footer without reset field, we erase its cold bit so that this new cold node block is written to wrong log area. This patch fixes not to miss its old flag. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/f2fs_fs.h')
-rw-r--r--include/linux/f2fs_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index 87f14e90e984..e993b0bc9abf 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -224,6 +224,8 @@ enum {
OFFSET_BIT_SHIFT
};
+#define OFFSET_BIT_MASK (0x07) /* (0x01 << OFFSET_BIT_SHIFT) - 1 */
+
struct node_footer {
__le32 nid; /* node id */
__le32 ino; /* inode nunmber */