Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d7603af authored by Tianling Shen's avatar Tianling Shen Committed by Namjae Jeon
Browse files

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: default avatarTianling Shen <i@cnsztl.eu.org>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent 54607fbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;