iomap: directly use logical block size
authorKeith Busch <kbusch@kernel.org>
Mon, 14 Nov 2022 18:35:32 +0000 (10:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 14 Nov 2022 18:35:32 +0000 (10:35 -0800)
commitf1bd37a4735286585751dbd9db330b48525cb193
tree1a2f682d0216f8070b2f79143103dc79a3acd8f2
parentf0c4d9fc9cc9462659728d168387191387e903cc
iomap: directly use logical block size

Don't transform the logical block size to a bit shift only to shift it
back to the original block size. Just use the size.

Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/iomap/direct-io.c