diff options
author | Xianting Tian <tian.xianting@h3c.com> | 2020-08-15 18:57:07 +0800 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-10-22 08:29:10 +0900 |
commit | 45882a6a0dbd1189defae1a449152f8a8168c274 (patch) | |
tree | 202a8a4fe374c641e39289e828a94c6f3c3e838a /fs | |
parent | 9e456aeaacb6b44c5d8f858800d53c1958daad3d (diff) | |
download | linux-45882a6a0dbd1189defae1a449152f8a8168c274.tar.bz2 |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exfat/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/file.c b/fs/exfat/file.c index f41f523a58ad..4831a39632a1 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/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; |