Files
kernel_xiaomi_sm8250/fs
Eric Biggers 2edab9e36a fscrypt: simplify bounce page handling
Currently, bounce page handling for writes to encrypted files is
unnecessarily complicated.  A fscrypt_ctx is allocated along with each
bounce page, page_private(bounce_page) points to this fscrypt_ctx, and
fscrypt_ctx::w::control_page points to the original pagecache page.

However, because writes don't use the fscrypt_ctx for anything else,
there's no reason why page_private(bounce_page) can't just point to the
original pagecache page directly.

Therefore, this patch makes this change.  In the process, it also cleans
up the API exposed to filesystems that allows testing whether a page is
a bounce page, getting the pagecache page from a bounce page, and
freeing a bounce page.

Reviewed-by: Chandan Rajendra <chandan@linux.ibm.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
2019-08-30 09:08:07 -07:00
..
2018-10-15 15:31:47 +02:00
2018-08-21 23:54:17 -04:00
2018-08-17 16:20:28 -07:00
2018-08-17 16:20:27 -07:00
2018-10-13 09:31:02 +02:00
2018-07-03 16:44:45 -04:00
2018-06-11 08:22:34 -07:00