exfat: fix build error with i_blocksize
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
This commit is contained in:
parent
b7bc67c802
commit
99471fdd69
4
file.c
4
file.c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user