aboutsummaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/util.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2020-12-14 15:26:14 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2020-12-14 15:26:14 +0100
commit82a763e61e2b601309d696d4fa514c77d64ee1be (patch)
treedd3bf6ba2a1f5adca8c5e82bb3609505c97c6438 /fs/overlayfs/util.c
parentovl: make ioctl() safe (diff)
downloadlinux-dev-82a763e61e2b601309d696d4fa514c77d64ee1be.tar.xz
linux-dev-82a763e61e2b601309d696d4fa514c77d64ee1be.zip
ovl: simplify file splice
generic_file_splice_read() and iter_file_splice_write() will call back into f_op->iter_read() and f_op->iter_write() respectively. These already do the real file lookup and cred override. So the code in ovl_splice_read() and ovl_splice_write() is redundant. In addition the ovl_file_accessed() call in ovl_splice_write() is incorrect, though probably harmless. Fix by calling generic_file_splice_read() and iter_file_splice_write() directly. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/util.c')
0 files changed, 0 insertions, 0 deletions