[f2fs-dev] [PATCH] fsck: refactor build_nat_area_bitmap to speed up fsck

2016-11-07 Thread Junling Zheng
Refactor build_nat_area_bitmap, move out lookup_nat_in_journal from the dual loops. Instead of looking up all nids in journals, we traverse nat journals, whose entries are used to replace the NAT entries with the corresponding nid to reduce the time build_nat_area_bitmap costs. For "fsck -p 1",

Re: [f2fs-dev] [PATCH 2/2] fscrypto: don't use on-stack buffer for key derivation

2016-11-07 Thread Richard Weinberger
On 03.11.2016 23:03, Eric Biggers wrote: > With the new (in 4.9) option to use a virtually-mapped stack > (CONFIG_VMAP_STACK), stack buffers cannot be used as input/output for > the scatterlist crypto API because they may not be directly mappable to > struct page. get_crypt_info() was using a

[f2fs-dev] [PATCH] resize.f2fs: modify condition for resize

2016-11-07 Thread Yunlei He
it better to decide resize or not by sector num. Signed-off-by: Yunlei He --- fsck/main.c | 4 ++-- fsck/resize.c | 5 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/fsck/main.c b/fsck/main.c index 7e8fdf3..64537cc 100644 --- a/fsck/main.c +++

Re: [f2fs-dev] [PATCH 1/2] fscrypto: don't use on-stack buffer for filename encryption

2016-11-07 Thread Richard Weinberger
On 03.11.2016 23:03, Eric Biggers wrote: > With the new (in 4.9) option to use a virtually-mapped stack > (CONFIG_VMAP_STACK), stack buffers cannot be used as input/output for > the scatterlist crypto API because they may not be directly mappable to > struct page. For short filenames,

[f2fs-dev] [PATCH v4] f2fs:return directly if block has been removed from the victim

2016-11-07 Thread Yunlei He
If one block has been to written to a new place, just return in move data process. This patch check it again with holding page lock. Signed-off-by: Yunlei He --- fs/f2fs/gc.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/gc.c

Re: [f2fs-dev] [PATCH v3] f2fs:return directly if block has been removed from the victim

2016-11-07 Thread Chao Yu
On 2016/11/3 10:06, Yunlei He wrote: > If one block has been to written to a new place, just return > in move data process. This patch check it again with holding > page lock. > > Signed-off-by: Yunlei He > --- > fs/f2fs/gc.c | 16 > 1 file changed, 12