[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230628093500.68779-7-frank.li@vivo.com>
Date: Wed, 28 Jun 2023 17:35:00 +0800
From: Yangtao Li <frank.li@...o.com>
To: axboe@...nel.dk, song@...nel.org, viro@...iv.linux.org.uk,
brauner@...nel.org, xiang@...nel.org, chao@...nel.org,
huyue2@...lpad.com, jefflexu@...ux.alibaba.com, hch@...radead.org,
djwong@...nel.org
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-raid@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-erofs@...ts.ozlabs.org, linux-xfs@...r.kernel.org,
Yangtao Li <frank.li@...o.com>
Subject: [PATCH 7/7] erofs: Convert to bdev_logical_block_mask()
Use bdev_logical_block_mask() to simplify code.
Signed-off-by: Yangtao Li <frank.li@...o.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
Powered by blists - more mailing lists