summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-03-10 11:08:19 +0800
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2023-07-03 00:21:21 +0400
commitf39244e2f21ee63dc26e57b2c909d9484924e24b (patch)
tree234e092a899ca9cc890b782c75593bebedbe6e9f /fs
parent3c675ddffb17a8b1e32efad5c983254af18b12c2 (diff)
fs/ntfs3: Use wrapper i_blocksize() in ntfs_zero_range()
Convert to use i_blocksize() for readability. Signed-off-by: Yangtao Li <frank.li@vivo.com> [almaz.alexandrovich@paragon-software.com: the patch has been partially accepted for performance reasons] Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs3/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c
index 9a3d55c367d9..c4983e028d90 100644
--- a/fs/ntfs3/file.c
+++ b/fs/ntfs3/file.c
@@ -179,7 +179,7 @@ static int ntfs_zero_range(struct inode *inode, u64 vbo, u64 vbo_to)
{
int err = 0;
struct address_space *mapping = inode->i_mapping;
- u32 blocksize = 1 << inode->i_blkbits;
+ u32 blocksize = i_blocksize(inode);
pgoff_t idx = vbo >> PAGE_SHIFT;
u32 from = vbo & (PAGE_SIZE - 1);
pgoff_t idx_end = (vbo_to + PAGE_SIZE - 1) >> PAGE_SHIFT;