[f2fs-dev] [RFC PATCH v2 4/4] f2fs: move fault injection to sysfs

2016-05-11 Thread Sheng Yong
Replace mount option "f2fs_injection" by injection attributes in sysfs. Signed-off-by: Sheng Yong --- fs/f2fs/f2fs.h | 24 ++-- fs/f2fs/super.c | 18 -- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/fs/f2fs/f2fs.h

[f2fs-dev] [PATCH 2/2] f2fs: avoid f2fs_bug_on during recovery

2016-05-11 Thread Jaegeuk Kim
We don't need to use f2fs_bug_on() to treat with any error case when allocating a block during recovery. Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index

[f2fs-dev] [PATCH 1/2] f2fs: show # of orphan inodes

2016-05-11 Thread Jaegeuk Kim
This adds debug information for # of orphan inodes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 5 - fs/f2fs/f2fs.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 818064b..37615b2 100644 ---

[f2fs-dev] [RFC PATCH 2/4] f2fs: introduce f2fs_fault_info for fault injection

2016-05-11 Thread Sheng Yong
This patch introduces a new struct f2fs_fault_info and a global f2fs_fault to save fault injection status. Signed-off-by: Sheng Yong --- fs/f2fs/f2fs.h | 12 fs/f2fs/super.c | 1 + 2 files changed, 13 insertions(+) diff --git a/fs/f2fs/f2fs.h

[f2fs-dev] [RFC PATCH 4/4] f2fs: move fault injection to sysfs

2016-05-11 Thread Sheng Yong
Replace mount option "f2fs_injection" by injection attributes in sysfs. Signed-off-by: Sheng Yong --- fs/f2fs/f2fs.h | 24 ++-- fs/f2fs/super.c | 15 --- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/fs/f2fs/f2fs.h

[f2fs-dev] [RFC PATCH 1/4] f2fs: correct return value type of f2fs_fill_super

2016-05-11 Thread Sheng Yong
Signed-off-by: Sheng Yong --- fs/f2fs/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 28c8992..0e54e84 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1417,7 +1417,7 @@ static int