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-08-17 17:27:58 -07:00
2018-08-22 10:52:51 -07:00
2018-10-15 15:31:47 +02:00
2018-08-22 12:34:08 -07:00
2018-06-15 18:10:01 -03:00
2018-09-06 09:04:45 -07:00
2018-10-18 11:32:21 +02:00
2018-09-06 16:18:04 +02:00
2018-10-02 18:54:09 -05:00
2018-07-17 06:14:07 -07:00
2018-06-15 07:31:07 +09:00
2019-08-30 09:08:07 -07:00
2018-06-12 20:52:16 -07:00
2018-08-21 23:54:17 -04:00
2018-06-12 16:19:22 -07:00
2018-07-22 14:13:44 +02:00
2018-07-24 14:43:20 -06:00
2018-09-19 15:03:04 +02:00
2019-08-30 09:08:07 -07:00
2019-08-30 09:08:07 -07:00
2018-10-13 09:31:03 +02:00
2018-10-18 11:32:21 +02:00
2018-08-21 18:47:36 -07:00
2018-10-12 17:14:42 +02:00
2018-08-23 18:48:42 -07:00
2018-08-23 18:48:42 -07:00
2018-08-17 16:20:28 -07:00
2018-08-25 12:42:33 -07:00
2018-08-22 10:52:44 -07:00
2018-08-21 11:37:41 +02:00
2018-07-29 15:51:47 -04:00
2018-07-18 16:44:01 +02:00
2018-08-15 22:47:23 -07:00
2018-08-18 11:44:53 -07:00
2018-08-09 16:11:21 -04:00
2018-09-14 19:25:28 -10:00
2018-09-24 10:54:01 +02:00
2018-09-04 16:45:02 -07:00
2018-09-03 14:57:41 +02:00
2018-08-17 16:20:27 -07:00
2018-10-13 09:31:02 +02:00
2018-08-14 12:07:14 -04:00
2018-10-04 14:49:10 +02:00
2018-10-05 16:32:05 -07:00
2018-09-30 10:15:41 -07:00
2018-08-22 18:17:48 +02:00
2018-08-22 10:52:50 -07:00
2018-08-02 09:34:02 -07:00
2018-08-18 11:44:53 -07:00
2018-08-22 10:52:51 -07:00
2018-07-31 11:32:44 -04:00
2019-07-30 09:58:48 -07:00
2018-08-24 11:13:32 +02:00
2018-08-17 16:20:27 -07:00
2018-10-06 11:44:39 +10:00
2018-08-13 20:56:23 -07:00
2018-07-12 10:04:27 -04:00
2018-07-03 16:44:45 -04:00
2018-07-12 10:04:20 -04:00
2018-06-12 16:19:22 -07:00
2018-08-13 19:24:32 -07:00
2018-07-10 23:29:03 -04:00
2018-08-14 10:23:25 -07:00
2018-08-30 12:56:40 +02:00
2018-07-30 16:21:49 -04:00
2018-10-08 11:38:44 -07:00
2019-07-30 09:55:43 -07:00
2018-06-28 10:40:47 -07:00
2018-08-22 10:52:49 -07:00
2018-08-21 13:47:29 -07:00
2018-08-15 23:03:20 -05:00
2018-08-21 18:19:09 -07:00
2019-07-30 13:43:58 -07:00
2018-08-21 18:19:09 -07:00
2018-09-24 10:54:01 +02:00
2018-09-29 13:51:01 +10:00
2018-06-11 08:22:34 -07:00
2018-08-02 08:06:55 +09:00
2018-08-21 18:19:09 -07:00
2018-06-11 08:22:34 -07:00
2018-06-12 16:19:22 -07:00
2018-08-17 16:20:29 -07:00
2019-07-30 09:56:21 -07:00
2018-08-26 11:48:42 -07:00
2018-08-21 18:19:09 -07:00
2018-08-13 19:58:36 -07:00
2018-09-24 10:54:01 +02:00
2018-06-28 10:40:47 -07:00
2018-08-17 16:20:28 -07:00
2018-06-16 16:21:50 +09:00
2018-06-16 16:21:50 +09:00
2018-07-12 14:49:48 +01:00
2018-08-26 11:48:42 -07:00
2018-08-13 20:56:23 -07:00
2018-08-23 18:48:44 -07:00
2018-09-18 07:30:48 -04:00