]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nilfs2: get rid of nilfs_palloc_group_is_in()
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)
commitc32a9c8574077462c0d5aa9e8a8784079f4381d0
treecfc151b368253ecfa75b06a4c9c44167fa922d70
parentc593a643e8ebb5752f0b620a923479bf1646382c
nilfs2: get rid of nilfs_palloc_group_is_in()

This unfolds nilfs_palloc_group_is_in() helper function into
nilfs_palloc_freev() function to simplify a range check and an index
calculation repeatedy performed in a loop of the function.

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