]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ceph: improve readahead for file holes
authorYan, Zheng <zyan@redhat.com>
Mon, 7 Sep 2015 07:46:24 +0000 (15:46 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 8 Sep 2015 20:14:30 +0000 (23:14 +0300)
commit8dbd263de1cba18100a9fb30fed606e6d7939b9d
treeb760a610262df0e202e949cbb3b6f71726ff2c38
parentb9abfcf80021b9ab52e24e733df3558eb6cdcc96
ceph: improve readahead for file holes

When readahead encounters file holes, osd reply returns error -ENOENT,
finish_read() skips adding pages to the the page cache. So readahead
does not work for file holes. The fix is adding zero pages to the
page cache when -ENOENT is returned.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c