From 45882a6a0dbd1189defae1a449152f8a8168c274 Mon Sep 17 00:00:00 2001 From: Xianting Tian Date: Sat, 15 Aug 2020 18:57:07 +0800 Subject: [Backport 45882a6a0dbd] 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 Signed-off-by: Namjae Jeon --- src/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.c b/src/file.c index f41f523a58ad4dab6f7c4d3edef6efce21348ce5..4831a39632a18d65ef4901d355f2dc58700b8e45 100644 --- a/src/file.c +++ b/src/file.c @@ -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; -- 2.31.1