commit | 439ee5f0c5080d4fd15fda0c5bbee1fb3a57894e | [log] [tgz] |
---|---|---|
author | Maxim Patlasov <mpatlasov@parallels.com> | Fri Dec 14 19:21:26 2012 +0400 |
committer | Miklos Szeredi <mszeredi@suse.cz> | Wed Apr 17 21:50:59 2013 +0200 |
tree | 457b85c7011dae6de9f64edd673b841a5a3a0596 | |
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>