Thread (13 messages) 13 messages, 5 authors, 2023-06-29
STALE1091d

[PATCH 7/7] erofs: Convert to bdev_logical_block_mask()

From: Yangtao Li <frank.li@vivo.com>
Date: 2023-06-28 09:48:14
Also in: linux-block, linux-fsdevel, linux-xfs, lkml
Subsystem: erofs file system, filesystems (vfs and infrastructure), the rest · Maintainers: Gao Xiang, Chao Yu, Alexander Viro, Christian Brauner, Linus Torvalds

Use bdev_logical_block_mask() to simplify code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 fs/erofs/data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/erofs/data.c b/fs/erofs/data.c
index db5e4b7636ec..13bd185ef3b3 100644
--- a/fs/erofs/data.c
+++ b/fs/erofs/data.c
@@ -387,7 +387,7 @@ static ssize_t erofs_file_read_iter(struct kiocb *iocb, struct iov_iter *to)
 		unsigned int blksize_mask;
 
 		if (bdev)
-			blksize_mask = bdev_logical_block_size(bdev) - 1;
+			blksize_mask = bdev_logical_block_mask(bdev);
 		else
 			blksize_mask = i_blocksize(inode) - 1;
 
-- 
2.39.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help