[PATCH] nilfs2: use bgl_lock_ptr()

2015-02-08 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 1/2] nilfs2: do not use async write flag for segment summary buffers

2015-02-08 Thread Ryusuke Konishi
The async write flag is introduced to nilfs2 in the commit 7f42ec3941 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 the

[PATCH 2/2] nilfs2: use set_mask_bits() for operations on buffer state bitmap

2015-02-08 Thread Ryusuke Konishi
nilfs_forget_buffer(), nilfs_clear_dirty_page(), and nilfs_segctor_complete_write() are using a bunch of atomic bit operations against buffer state bitmap. This reduces the number of them by utilizing set_mask_bits() macro. BH_Dirty bit is excluded from this aggregation since a Test-and-Set bit

[PATCH 0/2] nilfs2: simplify atomic bit operations on buffer state bitmap

2015-02-08 Thread Ryusuke Konishi
This series reduces the number of atomic bit operations for buffer state bitmap in nilfs2. Ryusuke Konishi -- Ryusuke Konishi (2): nilfs2: do not use async write flag for segment summary buffers nilfs2: use set_mask_bits() for operations on buffer state bitmap fs/nilfs2/page.c|