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
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
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
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
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
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
'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
+++