f2fs: call bdev_zone_sectors() only once on init_blkz_info()
authorLuis Chamberlain <mcgrof@kernel.org>
Wed, 27 Apr 2022 16:02:53 +0000 (18:02 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 May 2022 17:18:11 +0000 (10:18 -0700)
commitd46db4595be680bf9facb783fb95cf03b85f1d05
tree309c32731de9f6b6293e003ce903f5d471ec620e
parent4de851459ea65ac8cf4313af648ec9cf16b72562
f2fs: call bdev_zone_sectors() only once on init_blkz_info()

Instead of calling bdev_zone_sectors() multiple times, call
it once and cache the value locally. This will make the
subsequent change easier to read.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c