Blame SOURCES/0056-exfat-use-i_blocksize-to-get-blocksize.patch

Kmods SIG 9e3ffb
From 45882a6a0dbd1189defae1a449152f8a8168c274 Mon Sep 17 00:00:00 2001
Kmods SIG 9e3ffb
From: Xianting Tian <tian.xianting@h3c.com>
Kmods SIG 9e3ffb
Date: Sat, 15 Aug 2020 18:57:07 +0800
Kmods SIG 9e3ffb
Subject: [Backport 45882a6a0dbd] exfat: use i_blocksize() to get blocksize
Kmods SIG 9e3ffb
Kmods SIG 9e3ffb
We alreday has the interface i_blocksize() to get blocksize,
Kmods SIG 9e3ffb
so use it.
Kmods SIG 9e3ffb
Kmods SIG 9e3ffb
Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Kmods SIG 9e3ffb
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Kmods SIG 9e3ffb
---
Kmods SIG 9e3ffb
 src/file.c | 2 +-
Kmods SIG 9e3ffb
 1 file changed, 1 insertion(+), 1 deletion(-)
Kmods SIG 9e3ffb
Kmods SIG 9e3ffb
diff --git a/src/file.c b/src/file.c
Kmods SIG 9e3ffb
index f41f523a58ad4dab6f7c4d3edef6efce21348ce5..4831a39632a18d65ef4901d355f2dc58700b8e45 100644
Kmods SIG 9e3ffb
--- a/src/file.c
Kmods SIG 9e3ffb
+++ b/src/file.c
Kmods SIG 9e3ffb
@@ -229,7 +229,7 @@ void exfat_truncate(struct inode *inode, loff_t size)
Kmods SIG 9e3ffb
 {
Kmods SIG 9e3ffb
 	struct super_block *sb = inode->i_sb;
Kmods SIG 9e3ffb
 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
Kmods SIG 9e3ffb
-	unsigned int blocksize = 1 << inode->i_blkbits;
Kmods SIG 9e3ffb
+	unsigned int blocksize = i_blocksize(inode);
Kmods SIG 9e3ffb
 	loff_t aligned_size;
Kmods SIG 9e3ffb
 	int err;
Kmods SIG 9e3ffb
 
Kmods SIG 9e3ffb
-- 
Kmods SIG 9e3ffb
2.31.1
Kmods SIG 9e3ffb