ntfs: use sb_bdev_nr_blocks
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Oct 2021 10:11:28 +0000 (12:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:43:23 +0000 (14:43 -0600)
commitab70041731a6c2f153120e47746fb303aa6f237a
treecb546cfe9303d6fb8540969c2d63967e777594a5
parentdd0c0bdf97a44c2e2b5541e9febde0643a9d0dbf
ntfs: use sb_bdev_nr_blocks

Use the sb_bdev_nr_blocks helper instead of open coding it and clean up
ntfs_fill_super a bit by moving an assignment a little earlier that has
no negative side effects.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Anton Altaparmakov <anton@tuxera.com>
Link: https://lore.kernel.org/r/20211018101130.1838532-29-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/ntfs/super.c