[f2fs-dev] [PATCH] f2fs: remove repeated f2fs_bug_on

2017-11-25 Thread Zhikang Zhang
f2fs: remove repeated f2fs_bug_on which has already existed in function invalidate_blocks. Signed-off-by: Zhikang Zhang --- fs/f2fs/node.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index d332275..804c542 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs

[f2fs-dev] [PATCH] f2fs: check cur_valid_map_mir & raw_sit block count when flush sit entries

2018-04-08 Thread Zhikang Zhang
We should check valid_map_mir and block count to ensure the flushed raw_sit is correct. Signed-off-by: Zhikang Zhang Signed-off-by: Yunlei He --- fs/f2fs/segment.c | 9 + 1 file changed, 9 insertions(+) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 5854cc4..c2dc7da 100644

[f2fs-dev] [PATCH] f2fs: change le32 to le16 of f2fs_inode->i_extra_size

2018-04-13 Thread Zhikang Zhang
In the structure of f2fs_inode, i_extra_size's type is __le16, so we should keep type consistent when using it. Signed-off-by: Zhikang Zhang Signed-off-by: Yunlei He --- fs/f2fs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/in

[f2fs-dev] [PATCH] f2fs: remove sleep from atomic lock in __try_update_largest_extent

2018-09-07 Thread Zhikang Zhang
wb_check_old_data_flush+0x1bc/0x1c8 wb_workfn+0x554/0xf74 process_one_work+0x440/0x118c worker_thread+0xac/0x974 kthread+0x1a0/0x1c8 ret_from_fork+0x10/0x1c Signed-off-by: Zhikang Zhang --- fs/f2fs/extent_cache.c | 22 -- fs/f2fs/f2fs.h

[f2fs-dev] [PATCH v2] f2fs: remove sleep from atomic lock

2018-09-08 Thread Zhikang Zhang
In the call trace below, we might sleep in function dput(). So in order to avoid sleeping in atomic lock, we remove f2fs_mark_inode_dirty_sync in __try_update_largest_extent && __drop_largest_extent. BUG: sleeping function called from invalid context at fs/dcache.c:796 Call trace: dump_b

[f2fs-dev] [PATCH v3] f2fs: avoid sleeping under spin_lock

2018-09-10 Thread Zhikang Zhang
In the call trace below, we might sleep in function dput(). So in order to avoid sleeping under spin_lock, we remove f2fs_mark_inode_dirty_sync from __try_update_largest_extent && __drop_largest_extent. BUG: sleeping function called from invalid context at fs/dcache.c:796 Call trace: dum

[f2fs-dev] [PATCH] f2fs: fix compile warnings: 'struct *' declared inside parameter list

2019-01-03 Thread Zhikang Zhang
'struct f2fs_sb_info' declared inside parameter list Signed-off-by: Zhikang Zhang --- include/trace/events/f2fs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 3ec73f1..8a28a2b 100644 --- a/include/trace/events/f2fs.h +++