[f2fs-dev] [PATCH 1/2] f2fs: fix the potential mismatch between dir's i_size and i_blocks

2014-02-03 Thread Jaegeuk Kim
This is the erroneous scenario. i_sizeon-disk i_sizei_blocks __f2fs_add_link() 4096 4096 2 get_new_data_page8192 4096 3 -ENOSPC = init_inode_metadata checkpoint -

[f2fs-dev] [PATCH 2/2] f2fs: clean up with a macro

2014-02-03 Thread Jaegeuk Kim
This patch adds GET_BLKOFF_FROM_SEG0 to clean up some codes. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/recovery.c | 3 +-- fs/f2fs/segment.c | 11 --- fs/f2fs/segment.h | 3 +++ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/fs/f2fs/recovery.c