Merge "ext4 crypto: added support for O_DIRECT flag"
This commit is contained in:
commit
260fe22a72
1 changed files with 6 additions and 2 deletions
|
@ -3253,7 +3253,9 @@ static ssize_t ext4_ext_direct_IO(struct kiocb *iocb, struct iov_iter *iter,
|
||||||
get_block_func = ext4_get_block_write;
|
get_block_func = ext4_get_block_write;
|
||||||
dio_flags = DIO_LOCKING;
|
dio_flags = DIO_LOCKING;
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_EXT4_FS_ENCRYPTION
|
#if defined(CONFIG_EXT4_FS_ENCRYPTION) && \
|
||||||
|
!defined(CONFIG_EXT4_FS_ICE_ENCRYPTION)
|
||||||
|
|
||||||
BUG_ON(ext4_encrypted_inode(inode) && S_ISREG(inode->i_mode));
|
BUG_ON(ext4_encrypted_inode(inode) && S_ISREG(inode->i_mode));
|
||||||
#endif
|
#endif
|
||||||
if (IS_DAX(inode))
|
if (IS_DAX(inode))
|
||||||
|
@ -3320,7 +3322,9 @@ static ssize_t ext4_direct_IO(struct kiocb *iocb, struct iov_iter *iter,
|
||||||
size_t count = iov_iter_count(iter);
|
size_t count = iov_iter_count(iter);
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
|
|
||||||
#ifdef CONFIG_EXT4_FS_ENCRYPTION
|
#if defined(CONFIG_EXT4_FS_ENCRYPTION) && \
|
||||||
|
!defined(CONFIG_EXT4_FS_ICE_ENCRYPTION)
|
||||||
|
|
||||||
if (ext4_encrypted_inode(inode) && S_ISREG(inode->i_mode))
|
if (ext4_encrypted_inode(inode) && S_ISREG(inode->i_mode))
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue