aboutsummaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-01-31 10:34:57 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-02-07 15:05:04 +0100
commitbfe219d373cadab761373aeea4c70406bc27ea2c (patch)
tree781b1664565d45394b4272cc783932b857de67cf /fs/splice.c
parentvfs: deny copy_file_range() for non regular files (diff)
downloadlinux-dev-bfe219d373cadab761373aeea4c70406bc27ea2c.tar.xz
linux-dev-bfe219d373cadab761373aeea4c70406bc27ea2c.zip
vfs: wrap write f_ops with file_{start,end}_write()
Before calling write f_ops, call file_start_write() instead of sb_start_write(). Replace {sb,file}_start_write() for {copy,clone}_file_range() and for fallocate(). Beyond correct semantics, this avoids freeze protection to sb when operating on special inodes, such as fallocate() on a blockdev. Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions