diff options
author | Maxim Patlasov <mpatlasov@parallels.com> | 2012-12-14 19:21:26 +0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-04-17 21:50:59 +0200 |
commit | 439ee5f0c5080d4fd15fda0c5bbee1fb3a57894e (patch) | |
tree | 457b85c7011dae6de9f64edd673b841a5a3a0596 /include/linux/gfp.h | |
parent | bcba24ccdc82f7415154cf87226c2577cea13a5c (diff) |
fuse: optimize short direct reads
If user requested direct read beyond EOF, we can skip sending fuse requests
for positions beyond EOF because userspace would ACK them with zero bytes read
anyway. We can trust to i_size in fuse_direct_IO for such cases because it's
called from fuse_file_aio_read() and the latter updates fuse attributes
including i_size.
Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/linux/gfp.h')
0 files changed, 0 insertions, 0 deletions