mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
exfat: use i_blocksize() to get blocksize
We alreday has the interface i_blocksize() to get blocksize, so use it. Signed-off-by: Xianting Tian <tian.xianting@h3c.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Git-commit: 45882a6a0dbd1189defae1a449152f8a8168c274 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: lixiang <lixiang@codeaurora.org>
This commit is contained in:
parent
567608aa74
commit
2d8566900e
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ void exfat_truncate(struct inode *inode, loff_t size)
|
|||
{
|
||||
struct super_block *sb = inode->i_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;
|
||||
int err;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue