diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-12-26 12:49:48 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-01-06 16:42:20 +0900 |
commit | 1e1bb4baf10be371f72150e2801d97a04d40b3b9 (patch) | |
tree | 708ae4f4d93b05f063aa1c50538c53cdcbae5350 /fs/f2fs/file.c | |
parent | 0dbdc2ae9bba0a358816cc4a22e41a6ef16db8a2 (diff) | |
download | op-kernel-dev-1e1bb4baf10be371f72150e2801d97a04d40b3b9.zip op-kernel-dev-1e1bb4baf10be371f72150e2801d97a04d40b3b9.tar.gz |
f2fs: add inline_data recovery routine
This patch adds a inline_data recovery routine with the following policy.
[prev.] [next] of inline_data flag
o o -> recover inline_data
o x -> remove inline_data, and then recover data blocks
x o -> remove inline_data, and then recover inline_data
x x -> recover data blocks
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 68dd7bf..c77ad4d 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -251,7 +251,7 @@ static void truncate_partial_data_page(struct inode *inode, u64 from) f2fs_put_page(page, 1); } -static int truncate_blocks(struct inode *inode, u64 from) +int truncate_blocks(struct inode *inode, u64 from) { struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); unsigned int blocksize = inode->i_sb->s_blocksize; |