From: Yan, Zheng Date: Mon, 7 Sep 2015 07:46:24 +0000 (+0800) Subject: ceph: improve readahead for file holes X-Git-Tag: omap-for-v4.3/fixes-rc1~31^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=438386853d4c0c48fe73bf05a7d61c70ca5a3bfb;p=pandora-kernel.git 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 --- Reading git-diff-tree failed