]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nilfs2: do not call nilfs_mdt_bgl_lock() needlessly
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 21 Oct 2015 22:03:55 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:55 +0000 (09:03 +1100)
commit66a6c8a7c565233afbda6188194adbc0112947dd
tree2803cfbf600b16971ea8e6bb947dfbb374b4c1a4
parent7edfe28af0a782118f20689a0fc33c97b1c60f11
nilfs2: do not call nilfs_mdt_bgl_lock() needlessly

In the bitmap based allocator implementation, nilfs_mdt_bgl_lock() helper
is frequently used to get a spinlock protecting a target block group.
This reduces its usage and simplifies arguments of some related functions
by directly passing a pointer to the spinlock.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/alloc.c