Re: [PATCH] md: only calculate blocksize once and use i_blocksize()

2020-08-19 Thread Song Liu
On Mon, Aug 17, 2020 at 10:49 PM Xianting Tian wrote: > > 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 Thanks for the patch. Applied to md-next.

[PATCH] md: only calculate blocksize once and use i_blocksize()

2020-08-17 Thread Xianting Tian
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 --- drivers/md/md-bitmap.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git