Skip to content

Commit f39244e

Browse files
bbkzzaalexandrovich
authored andcommitted
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>
1 parent 3c675dd commit f39244e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ntfs3/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static int ntfs_zero_range(struct inode *inode, u64 vbo, u64 vbo_to)
179179
{
180180
int err = 0;
181181
struct address_space *mapping = inode->i_mapping;
182-
u32 blocksize = 1 << inode->i_blkbits;
182+
u32 blocksize = i_blocksize(inode);
183183
pgoff_t idx = vbo >> PAGE_SHIFT;
184184
u32 from = vbo & (PAGE_SIZE - 1);
185185
pgoff_t idx_end = (vbo_to + PAGE_SIZE - 1) >> PAGE_SHIFT;

0 commit comments

Comments
 (0)