exfat: file: fix build with kernel < 4.4.72

`i_blocksize` did not exist on kernel 4.4 until 4.4.72 was released [1].

1. https://lwn.net/Articles/725371/

Signed-off-by: Tianling Shen <i@cnsztl.eu.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Tianling Shen 2022-02-28 14:20:29 +08:00 committed by Namjae Jeon
parent 54607fbd70
commit 8d7603af65

2
file.c
View File

@ -241,7 +241,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);
struct exfat_inode_info *ei = EXFAT_I(inode);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 72)
unsigned int blocksize = i_blocksize(inode);
#else
unsigned int blocksize = 1 << inode->i_blkbits;