diff options
| author | Luis Chamberlain <[email protected]> | 2023-03-09 23:05:41 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-03-28 23:20:15 +0000 |
| commit | 8ccee8c19c605a7d74f02413c59d4d3a822827d5 (patch) | |
| tree | ec68e95acf85c706fee736e61cd184d59f405193 /mm/vmalloc.c | |
| parent | shmem: remove check for folio lock on writepage() (diff) | |
| download | kernel-8ccee8c19c605a7d74f02413c59d4d3a822827d5.tar.gz kernel-8ccee8c19c605a7d74f02413c59d4d3a822827d5.zip | |
shmem: set shmem_writepage() variables early
shmem_writepage() sets up variables typically used *after* a possible huge
page split. However even if that does happen the address space mapping
should not change, and the inode does not change either. So it should be
safe to set that from the very beginning.
This commit makes no functional changes.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Luis Chamberlain <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Tested-by: Xin Hao <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Cc: Adam Manzanares <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Pankaj Raghav <[email protected]>
Cc: Yosry Ahmed <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
