]> git.baikalelectronics.ru Git - kernel.git/commit
splice: remove detritus from generic_file_splice_read()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Nov 2016 23:32:13 +0000 (18:32 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Nov 2016 23:32:13 +0000 (18:32 -0500)
commit8586ce007afdae32a8fec8fdcb652c090adab28d
tree57ed4eac0972a837383976c451fe76a3003bce0f
parente23b6adee53be51a80b32119973a142966b9ab5c
splice: remove detritus from generic_file_splice_read()

i_size check is a leftover from the horrors that used to play with
the page cache in that function.  With the switch to ->read_iter(),
it's neither needed nor correct - for gfs2 it ends up being buggy,
since i_size is not guaranteed to be correct until later (inside
->read_iter()).

Spotted-by: Abhi Das <adas@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/splice.c