aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/f2fs_fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-12-23 19:26:31 -0500
committerJaegeuk Kim <jaegeuk@kernel.org>2015-01-09 20:02:25 -0500
commit09eb483e895f36fd002e88c878e9578c359aa468 (patch)
tree8237cf3cae658a3cb1e79728617bb1ecfa2fadb1 /include/linux/f2fs_fs.h
parentb9a2c252071d44d4a22082611db84272be1f3b49 (diff)
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 {
224 OFFSET_BIT_SHIFT 224 OFFSET_BIT_SHIFT
225}; 225};
226 226
227#define OFFSET_BIT_MASK (0x07) /* (0x01 << OFFSET_BIT_SHIFT) - 1 */
228
227struct node_footer { 229struct node_footer {
228 __le32 nid; /* node id */ 230 __le32 nid; /* node id */
229 __le32 ino; /* inode nunmber */ 231 __le32 ino; /* inode nunmber */