diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-21 02:21:57 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-26 20:16:25 -0400 |
commit | 953a3e27e10fc6acb480801ea47197d0270d735e (patch) | |
tree | 8ff66198318ee79464b9ac47e8ee091acf140c20 /fs/f2fs/f2fs.h | |
parent | fa37241743ac26ba0ac6f54579158c2fae310a5c (diff) |
f2fs: fix to give correct parent inode number for roll forward
When we recover fsync'ed data after power-off-recovery, we should guarantee
that any parent inode number should be correct for each direct inode blocks.
So, let's make the following rules.
- The fsync should do checkpoint to all the inodes that were experienced hard
links.
- So, the only normal files can be recovered by roll-forward.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 380e2b3cdac7..77e2eb061bfa 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -148,6 +148,7 @@ struct extent_info { | |||
148 | * i_advise uses FADVISE_XXX_BIT. We can add additional hints later. | 148 | * i_advise uses FADVISE_XXX_BIT. We can add additional hints later. |
149 | */ | 149 | */ |
150 | #define FADVISE_COLD_BIT 0x01 | 150 | #define FADVISE_COLD_BIT 0x01 |
151 | #define FADVISE_CP_BIT 0x02 | ||
151 | 152 | ||
152 | struct f2fs_inode_info { | 153 | struct f2fs_inode_info { |
153 | struct inode vfs_inode; /* serve a vfs inode */ | 154 | struct inode vfs_inode; /* serve a vfs inode */ |
@@ -825,7 +826,6 @@ static inline int f2fs_clear_bit(unsigned int nr, char *addr) | |||
825 | /* used for f2fs_inode_info->flags */ | 826 | /* used for f2fs_inode_info->flags */ |
826 | enum { | 827 | enum { |
827 | FI_NEW_INODE, /* indicate newly allocated inode */ | 828 | FI_NEW_INODE, /* indicate newly allocated inode */ |
828 | FI_NEED_CP, /* need to do checkpoint during fsync */ | ||
829 | FI_INC_LINK, /* need to increment i_nlink */ | 829 | FI_INC_LINK, /* need to increment i_nlink */ |
830 | FI_ACL_MODE, /* indicate acl mode */ | 830 | FI_ACL_MODE, /* indicate acl mode */ |
831 | FI_NO_ALLOC, /* should not allocate any blocks */ | 831 | FI_NO_ALLOC, /* should not allocate any blocks */ |