Merge tag 'statx-dioalign-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / include / linux / fscrypt.h
index 1f12ebb4a69daf0fa50cee78e6d9658bf7501d8c..cad78b569c7eff712f79698b021efb32c7d5b71e 100644 (file)
@@ -764,7 +764,7 @@ bool fscrypt_mergeable_bio(struct bio *bio, const struct inode *inode,
 bool fscrypt_mergeable_bio_bh(struct bio *bio,
                              const struct buffer_head *next_bh);
 
-bool fscrypt_dio_supported(struct kiocb *iocb, struct iov_iter *iter);
+bool fscrypt_dio_supported(struct inode *inode);
 
 u64 fscrypt_limit_io_blocks(const struct inode *inode, u64 lblk, u64 nr_blocks);
 
@@ -797,11 +797,8 @@ static inline bool fscrypt_mergeable_bio_bh(struct bio *bio,
        return true;
 }
 
-static inline bool fscrypt_dio_supported(struct kiocb *iocb,
-                                        struct iov_iter *iter)
+static inline bool fscrypt_dio_supported(struct inode *inode)
 {
-       const struct inode *inode = file_inode(iocb->ki_filp);
-
        return !fscrypt_needs_contents_encryption(inode);
 }