diff options
author | Xianting Tian <tian.xianting@h3c.com> | 2020-08-15 12:57:07 +0200 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-10-22 01:29:10 +0200 |
commit | 45882a6a0dbd1189defae1a449152f8a8168c274 (patch) | |
tree | 202a8a4fe374c641e39289e828a94c6f3c3e838a /fs/exfat | |
parent | exfat: fix misspellings using codespell tool (diff) | |
download | linux-45882a6a0dbd1189defae1a449152f8a8168c274.tar.xz linux-45882a6a0dbd1189defae1a449152f8a8168c274.zip |
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/exfat')
-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; |