summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/udmabuf.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-20 13:10:13 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2022-09-01 17:45:20 -0400
commitff58105a47ede2e9f3fe6f45e9b1185dcfde7762 (patch)
treec61f2a1e22021ede1684c54706cc6954afbfbf0f /drivers/dma-buf/udmabuf.c
parent1f24cd31c28178415158366b676c2e18be812940 (diff)
downloadlinux-ff58105a47ede2e9f3fe6f45e9b1185dcfde7762.tar.gz
linux-ff58105a47ede2e9f3fe6f45e9b1185dcfde7762.tar.bz2
linux-ff58105a47ede2e9f3fe6f45e9b1185dcfde7762.zip
dma_buf: no need to bother with file_inode()->i_mapping
->f_mapping will do just fine Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/dma-buf/udmabuf.c')
-rw-r--r--drivers/dma-buf/udmabuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 38e8767ec371..210473d927d8 100644
--- a/drivers/dma-buf/udmabuf.c
+++ b/drivers/dma-buf/udmabuf.c
@@ -210,7 +210,7 @@ static long udmabuf_create(struct miscdevice *device,
memfd = fget(list[i].memfd);
if (!memfd)
goto err;
- mapping = file_inode(memfd)->i_mapping;
+ mapping = memfd->f_mapping;
if (!shmem_mapping(mapping) && !is_file_hugepages(memfd))
goto err;
seals = memfd_fcntl(memfd, F_GET_SEALS, 0);