commit | 438386853d4c0c48fe73bf05a7d61c70ca5a3bfb | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Mon Sep 07 15:46:24 2015 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Wed Sep 09 09:52:29 2015 +0300 |
tree | b760a610262df0e202e949cbb3b6f71726ff2c38 | |
parent | 55b0b31cbc09f80db384671e22cdc94b2aa26b29 [diff] |
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>