[PATCH 3/7] nilfs2: use bgl_lock_ptr()

2015-03-12 Thread Ryusuke Konishi
Simplify nilfs_mdt_bgl_lock() by utilizing bgl_lock_ptr() helper in linux/blockgroup_lock.h. Signed-off-by: Ryusuke Konishi konishi.ryus...@lab.ntt.co.jp --- fs/nilfs2/mdt.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/nilfs2/mdt.h b/fs/nilfs2/mdt.h index

[PATCH 4/7] nilfs2: unify type of key arguments in bmap interface

2015-03-12 Thread Ryusuke Konishi
The type of key arguments in block mapping interface varies depending on function. For instance, nilfs_bmap_lookup_at_level() takes __u64 for its key argument whereas nilfs_bmap_lookup() takes unsigned long. This fits them to __u64 to eliminate the variation. Signed-off-by: Ryusuke Konishi

[PATCH 1/7] nilfs2: do not use async write flag for segment summary buffers

2015-03-12 Thread Ryusuke Konishi
The async write flag is introduced to nilfs2 in the commit 7f42ec394156 (nilfs2: fix issue with race condition of competition between segments for dirty blocks), but the flag only makes sense for data buffers and btree node buffers. It is not needed for segment summary buffers. This gits rid of

Re: [PATCH 0/9] nilfs2: implementation of cost-benefit GC policy

2015-03-12 Thread Ryusuke Konishi
Hi Andreas, On Tue, 10 Mar 2015 21:37:50 +0100, Andreas Rohner wrote: Hi Ryusuke, Thanks for your thorough review. On 2015-03-10 06:21, Ryusuke Konishi wrote: Hi Andreas, I looked through whole kernel patches and a part of util patches. Overall comments are as follows: [Algorithm]