mirror of https://github.com/OpenIPC/firmware.git
22 lines
729 B
Diff
22 lines
729 B
Diff
diff -drupN a/fs/ext4/page-io.c b/fs/ext4/page-io.c
|
|
--- a/fs/ext4/page-io.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/fs/ext4/page-io.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -24,7 +24,6 @@
|
|
#include <linux/slab.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/backing-dev.h>
|
|
-#include <linux/fscrypto.h>
|
|
|
|
#include "ext4_jbd2.h"
|
|
#include "xattr.h"
|
|
@@ -470,7 +469,8 @@ int ext4_bio_write_page(struct ext4_io_s
|
|
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) {
|