diff options
author | Al Viro | 2022-08-20 13:10:13 -0400 |
---|---|---|
committer | Al Viro | 2022-09-01 17:45:20 -0400 |
commit | ff58105a47ede2e9f3fe6f45e9b1185dcfde7762 (patch) | |
tree | c61f2a1e22021ede1684c54706cc6954afbfbf0f /drivers/dma-buf | |
parent | 1f24cd31c28178415158366b676c2e18be812940 (diff) |
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')
-rw-r--r-- | drivers/dma-buf/udmabuf.c | 2 |
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); |