projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e456ae
)
exfat: use i_blocksize() to get blocksize
author
Xianting Tian
<tian.xianting@h3c.com>
Sat, 15 Aug 2020 10:57:07 +0000
(18:57 +0800)
committer
Namjae Jeon
<namjae.jeon@samsung.com>
Wed, 21 Oct 2020 23:29:10 +0000
(08:29 +0900)
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>
fs/exfat/file.c
patch
|
blob
|
history
diff --git
a/fs/exfat/file.c
b/fs/exfat/file.c
index f41f523a58ad4dab6f7c4d3edef6efce21348ce5..4831a39632a18d65ef4901d355f2dc58700b8e45 100644
(file)
--- 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;