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