diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-20 11:44:05 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-01 17:43:29 -0400 |
commit | 235185b8ed77fd930c252b415973d9a4d50a8700 (patch) | |
tree | 319e78b85bdefe9dd6affedb12dc8ae21eb3e725 /arch/x86/kernel | |
parent | 703e3e9a9cb1221e59a088745482c02f863d7999 (diff) | |
download | linux-235185b8ed77fd930c252b415973d9a4d50a8700.tar.gz linux-235185b8ed77fd930c252b415973d9a4d50a8700.tar.bz2 linux-235185b8ed77fd930c252b415973d9a4d50a8700.zip |
sgx: use ->f_mapping...
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/sgx/encl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/sgx/encl.c b/arch/x86/kernel/cpu/sgx/encl.c index 24c1bb8eb196..6de17468ca16 100644 --- a/arch/x86/kernel/cpu/sgx/encl.c +++ b/arch/x86/kernel/cpu/sgx/encl.c @@ -906,8 +906,7 @@ const cpumask_t *sgx_encl_cpumask(struct sgx_encl *encl) static struct page *sgx_encl_get_backing_page(struct sgx_encl *encl, pgoff_t index) { - struct inode *inode = encl->backing->f_path.dentry->d_inode; - struct address_space *mapping = inode->i_mapping; + struct address_space *mapping = encl->backing->f_mapping; gfp_t gfpmask = mapping_gfp_mask(mapping); return shmem_read_mapping_page_gfp(mapping, index, gfpmask); |