exfat: fix build error with i_blocksize

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
This commit is contained in:
Namjae Jeon 2020-12-06 16:32:57 +09:00
parent b7bc67c802
commit 99471fdd69

4
file.c
View File

@ -244,7 +244,11 @@ void exfat_truncate(struct inode *inode, loff_t size)
{
struct super_block *sb = inode->i_sb;
struct exfat_sb_info *sbi = EXFAT_SB(sb);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
unsigned int blocksize = i_blocksize(inode);
#else
unsigned int blocksize = 1 << inode->i_blkbits;
#endif
loff_t aligned_size;
int err;