aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ext4/page-io.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2016-11-13 22:02:22 -0500
committerTheodore Ts'o <tytso@mit.edu>2016-11-13 22:02:22 -0500
commit6da22013bb7907b33c87968c25034b409a6161a2 (patch)
treef23cd3da57b7188241f7e2c9d2390fbc672ce3d4 /fs/ext4/page-io.c
parentMerge branch 'dax-4.10-iomap-pmd' into origin (diff)
parentfscrypto: don't use on-stack buffer for key derivation (diff)
downloadwireguard-linux-6da22013bb7907b33c87968c25034b409a6161a2.tar.xz
wireguard-linux-6da22013bb7907b33c87968c25034b409a6161a2.zip
Merge branch 'fscrypt' into origin
Diffstat (limited to 'fs/ext4/page-io.c')
-rw-r--r--fs/ext4/page-io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
index 0094923e5ebf..902a3e3059b3 100644
--- a/fs/ext4/page-io.c
+++ b/fs/ext4/page-io.c
@@ -470,7 +470,8 @@ int ext4_bio_write_page(struct ext4_io_submit *io,
gfp_t gfp_flags = GFP_NOFS;
retry_encrypt:
- data_page = fscrypt_encrypt_page(inode, page, gfp_flags);
+ data_page = fscrypt_encrypt_page(inode, page, PAGE_SIZE, 0,
+ page->index, gfp_flags);
if (IS_ERR(data_page)) {
ret = PTR_ERR(data_page);
if (ret == -ENOMEM && wbc->sync_mode == WB_SYNC_ALL) {