Commit 45882a6a authored by Xianting Tian's avatar Xianting Tian Committed by Namjae Jeon

exfat: use i_blocksize() to get blocksize

We alreday has the interface i_blocksize() to get blocksize,
so use it.
Signed-off-by: default avatarXianting Tian <tian.xianting@h3c.com>
Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
parent 9e456aea
...@@ -229,7 +229,7 @@ void exfat_truncate(struct inode *inode, loff_t size) ...@@ -229,7 +229,7 @@ void exfat_truncate(struct inode *inode, loff_t size)
{ {
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
struct exfat_sb_info *sbi = EXFAT_SB(sb); struct exfat_sb_info *sbi = EXFAT_SB(sb);
unsigned int blocksize = 1 << inode->i_blkbits; unsigned int blocksize = i_blocksize(inode);
loff_t aligned_size; loff_t aligned_size;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment