[f2fs-dev] [PATCH 01/11] f2fs: introduce macros for proc entries

2016-05-03 Thread Jaegeuk Kim
This adds macros to be used multiple proc entries. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 19a85cf..b006de6 100644 ---

[f2fs-dev] [PATCH 10/11] f2fs: fix leak of orphan inode objects

2016-05-03 Thread Jaegeuk Kim
When unmounting filesystem, we should release all the ino entries. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 6 +++--- fs/f2fs/f2fs.h | 2 +- fs/f2fs/super.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/checkpoint.c

[f2fs-dev] [PATCH 06/11] f2fs: inject kmalloc failure

2016-05-03 Thread Jaegeuk Kim
This patch injects kmalloc failure given a fault injection rate. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 29 + fs/f2fs/super.c | 6 ++ 2 files changed, 35 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index

[f2fs-dev] [PATCH 11/11] f2fs: retry to truncate blocks in -ENOMEM case

2016-05-03 Thread Jaegeuk Kim
This patch modifies to retry truncating node blocks in -ENOMEM case. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inode.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index f4ac851..5cccd7a 100644 --- a/fs/f2fs/inode.c

[f2fs-dev] [PATCH 04/11] f2fs: use f2fs_grab_cache_page instead of grab_cache_page

2016-05-03 Thread Jaegeuk Kim
This patch converts grab_cache_page to f2fs_grab_cache_page. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 7 --- fs/f2fs/inline.c | 4 ++-- fs/f2fs/node.c | 8 3 files changed, 10 insertions(+), 9 deletions(-) diff --git

[f2fs-dev] [PATCH 02/11] f2fs: add proc entry to show valid block bitmap

2016-05-03 Thread Jaegeuk Kim
This patch adds a new proc entry to show segment information in more detail. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index

[f2fs-dev] [PATCH 08/11] f2fs: inject ENOSPC failures

2016-05-03 Thread Jaegeuk Kim
This patch injects ENOSPC failures. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 7 +++ fs/f2fs/dir.c| 4 fs/f2fs/f2fs.h | 10 ++ fs/f2fs/node.c | 4 fs/f2fs/super.c | 4 5 files changed, 29 insertions(+) diff

[f2fs-dev] [PATCH 07/11] f2fs: inject page allocation failures

2016-05-03 Thread Jaegeuk Kim
This patch adds page allocation failures. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 9 + fs/f2fs/super.c | 1 + 2 files changed, 10 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 60098df..02c2c96 100644 --- a/fs/f2fs/f2fs.h +++

[f2fs-dev] [PATCH 05/11] f2fs: add mount option to select fault injection ratio

2016-05-03 Thread Jaegeuk Kim
This patch adds a mount option to select fault ratio. Signed-off-by: Jaegeuk Kim --- fs/f2fs/Kconfig | 8 fs/f2fs/f2fs.h | 1 + fs/f2fs/super.c | 16 3 files changed, 25 insertions(+) diff --git a/fs/f2fs/Kconfig b/fs/f2fs/Kconfig index

[f2fs-dev] [PATCH 09/11] f2fs: revisit error handling flows

2016-05-03 Thread Jaegeuk Kim
This patch fixes a couple of bugs regarding to orphan inodes when handling errors. This tries to - call alloc_nid_done with add_orphan_inode in handle_failed_inode - let truncate blocks in f2fs_evict_inode - not make a bad inode due to i_mode change Signed-off-by: Jaegeuk Kim

[f2fs-dev] [PATCH 03/11] f2fs: introduce f2fs_kmalloc to wrap kmalloc

2016-05-03 Thread Jaegeuk Kim
This patch adds f2fs_kmalloc. Signed-off-by: Jaegeuk Kim --- fs/f2fs/acl.c| 4 ++-- fs/f2fs/dir.c| 2 +- fs/f2fs/f2fs.h | 5 + fs/f2fs/gc.c | 2 +- fs/f2fs/inline.c | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/acl.c

Re: [f2fs-dev] [PATCH 00/42] v7: separate operations from flags in the bio/request structs

2016-05-03 Thread Jeff Moyer
mchri...@redhat.com writes: > The following patches begin to cleanup the request->cmd_flags and > bio->bi_rw mess. We currently use cmd_flags to specify the operation, > attributes and state of the request. For bi_rw we use it for similar > info and also the priority but then also have another

Re: [f2fs-dev] [PATCH 0/2] scop GFP_NOFS api

2016-05-03 Thread Michal Hocko
Hi, On Sun 01-05-16 07:55:31, NeilBrown wrote: [...] > One particular problem with your process-context idea is that it isn't > inherited across threads. > Steve Whitehouse's example in gfs shows how allocation dependencies can > even cross into user space. Hmm, I am still not sure I understand