https://github.com/torvalds/linux
Revision e519e7774784f3fa7728657d780863805ed1c983 authored by Al Viro on 10 November 2016, 23:32:13 UTC, committed by Al Viro on 10 November 2016, 23:32:13 UTC
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>
1 parent 6d6d36b
History
Tip revision: e519e7774784f3fa7728657d780863805ed1c983 authored by Al Viro on 10 November 2016, 23:32:13 UTC
splice: remove detritus from generic_file_splice_read()
Tip revision: e519e77
File Mode Size
Makefile -rw-r--r-- 377 bytes
compat.c -rw-r--r-- 19.1 KB
compat_mq.c -rw-r--r-- 3.9 KB
ipc_sysctl.c -rw-r--r-- 5.4 KB
mq_sysctl.c -rw-r--r-- 2.9 KB
mqueue.c -rw-r--r-- 35.7 KB
msg.c -rw-r--r-- 23.3 KB
msgutil.c -rw-r--r-- 3.6 KB
namespace.c -rw-r--r-- 4.5 KB
sem.c -rw-r--r-- 56.3 KB
shm.c -rw-r--r-- 33.3 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 21.1 KB
util.h -rw-r--r-- 6.4 KB

back to top