Linux-Fsdevel Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] exfat: use i_blocksize() to get blocksize
@ 2020-08-15 10:57 ` Xianting Tian
2020-08-17 23:48 ` Namjae Jeon
0 siblings, 1 reply; 2+ messages in thread
From: Xianting Tian @ 2020-08-15 10:57 UTC (permalink / raw)
To: namjae.jeon, sj1557.seo; +Cc: linux-fsdevel, linux-kernel, Xianting Tian
We alreday has the interface i_blocksize() to get blocksize,
so use it.
Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
---
fs/exfat/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/exfat/file.c b/fs/exfat/file.c
index a6a063830..163b599db 100644
--- a/fs/exfat/file.c
+++ b/fs/exfat/file.c
@@ -226,7 +226,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.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH] exfat: use i_blocksize() to get blocksize
2020-08-15 10:57 ` [PATCH] exfat: use i_blocksize() to get blocksize Xianting Tian
@ 2020-08-17 23:48 ` Namjae Jeon
0 siblings, 0 replies; 2+ messages in thread
From: Namjae Jeon @ 2020-08-17 23:48 UTC (permalink / raw)
To: 'Xianting Tian'; +Cc: linux-fsdevel, linux-kernel, sj1557.seo
> We alreday has the interface i_blocksize() to get blocksize, so use it.
>
> Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Pushed it into exfat #dev. Thanks for your patch!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-17 23:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20200815110400epcas1p409bc3055e7c3d7443b5fbf5409a43332@epcas1p4.samsung.com>
2020-08-15 10:57 ` [PATCH] exfat: use i_blocksize() to get blocksize Xianting Tian
2020-08-17 23:48 ` Namjae Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).