]> git.baikalelectronics.ru Git - kernel.git/commit
md: only calculate blocksize once and use i_blocksize()
authorXianting Tian <tian.xianting@h3c.com>
Tue, 18 Aug 2020 05:42:06 +0000 (13:42 +0800)
committerSong Liu <songliubraving@fb.com>
Thu, 24 Sep 2020 23:44:44 +0000 (16:44 -0700)
commit0367b0d2568d9c563ad3781051761ace46f05ebd
treeb7de3d05d4a9a14a9e779667beb79d4cf8911c60
parentafea5a83dcd52b9875cfc650fe223fd4ef0c3a2c
md: only calculate blocksize once and use i_blocksize()

We alreday has the interface i_blocksize(), which can be used
to get blocksize, so use it.
Only calculate blocksize once and use it within read_page().

Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md-bitmap.c