Commit d46db45
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>1 parent 4de8514 commit d46db45
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3651 | 3651 | | |
3652 | 3652 | | |
3653 | 3653 | | |
| 3654 | + | |
3654 | 3655 | | |
3655 | 3656 | | |
3656 | 3657 | | |
3657 | 3658 | | |
3658 | 3659 | | |
| 3660 | + | |
| 3661 | + | |
3659 | 3662 | | |
3660 | | - | |
| 3663 | + | |
3661 | 3664 | | |
3662 | | - | |
| 3665 | + | |
3663 | 3666 | | |
3664 | 3667 | | |
3665 | 3668 | | |
3666 | 3669 | | |
3667 | 3670 | | |
3668 | 3671 | | |
3669 | | - | |
| 3672 | + | |
3670 | 3673 | | |
3671 | 3674 | | |
3672 | 3675 | | |
| |||
0 commit comments