aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 240b6dea5441..79d986dbf5af 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3631,7 +3631,7 @@ static int ext4_ext_convert_to_initialized(handle_t *handle,
3631 max_zeroout = sbi->s_extent_max_zeroout_kb >> 3631 max_zeroout = sbi->s_extent_max_zeroout_kb >>
3632 (inode->i_sb->s_blocksize_bits - 10); 3632 (inode->i_sb->s_blocksize_bits - 10);
3633 3633
3634 if (ext4_encrypted_inode(inode)) 3634 if (IS_ENCRYPTED(inode))
3635 max_zeroout = 0; 3635 max_zeroout = 0;
3636 3636
3637 /* 3637 /*
@@ -4818,7 +4818,7 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
4818 * leave it disabled for encrypted inodes for now. This is a 4818 * leave it disabled for encrypted inodes for now. This is a
4819 * bug we should fix.... 4819 * bug we should fix....
4820 */ 4820 */
4821 if (ext4_encrypted_inode(inode) && 4821 if (IS_ENCRYPTED(inode) &&
4822 (mode & (FALLOC_FL_COLLAPSE_RANGE | FALLOC_FL_INSERT_RANGE | 4822 (mode & (FALLOC_FL_COLLAPSE_RANGE | FALLOC_FL_INSERT_RANGE |
4823 FALLOC_FL_ZERO_RANGE))) 4823 FALLOC_FL_ZERO_RANGE)))
4824 return -EOPNOTSUPP; 4824 return -EOPNOTSUPP;