mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
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>
This commit is contained in:
parent
3c675ddffb
commit
f39244e2f2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user