]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit828d393de130cc6aa12cec6d53126b6146b8a83a
tree309c32731de9f6b6293e003ce903f5d471ec620e
parent985c3a3c627b13042589fd773497b2e715f45357
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