ext2: introduce new helper ext2_group_last_block_no()
authorChengguang Xu <cgxu519@mykernel.net>
Mon, 4 Nov 2019 11:40:32 +0000 (19:40 +0800)
committerJan Kara <jack@suse.cz>
Wed, 6 Nov 2019 15:25:12 +0000 (16:25 +0100)
commiteb9e47fc230aafc3ac1e5eeae6d0d8d5e108bbae
treee7ff628531849c3402e3045576de90fa8a8ae7e1
parentdae82c7fd0926840c832151f3258ba751f73d348
ext2: introduce new helper ext2_group_last_block_no()

Introduce new helper ext2_group_last_block_no() to calculate
last block num for specific block group, we can replace open
coded logic by calling this common helper.

Link: https://lore.kernel.org/r/20191104114036.9893-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/ext2.h