[f2fs-dev] [PATCH v4] f2fs: fix to flush all dirty inodes recovered in readonly fs

2018-08-22 Thread Chao Yu
generic/417 reported as blow: [ cut here ] kernel BUG at /home/yuchao/git/devf2fs/inode.c:695! invalid opcode: [#1] PREEMPT SMP CPU: 1 PID: 21697 Comm: umount Tainted: GW O 4.18.0-rc2+ #39 Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox

[f2fs-dev] [PATCH v3] f2fs: guarantee journalled quota data by checkpoint

2018-08-22 Thread Chao Yu
For journalled quota mode, let checkpoint to flush dquot dirty data and quota file data to keep all file quota info are consisting in last checkpoint, so that we can avoid quota file being corrupted after SPO. The implementation is that: 1. add a global state SBI_QUOTA_NEED_FLUSH to indicate that

[f2fs-dev] [PATCH v2] Revert "f2fs: use printk_ratelimited for f2fs_msg"

2018-08-22 Thread Chao Yu
Don't limit printing log, so that we will not miss any key messages. This reverts commit a36c106dffb616250117efb1cab271c19a8f94ff. In addition, we use printk_ratelimited to avoid too many log prints. - error injection - discard submission failure Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h|