ceph: fix race during filling readdir cache
authorYan, Zheng <zyan@redhat.com>
Fri, 26 Feb 2016 08:27:13 +0000 (16:27 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 25 Mar 2016 17:51:53 +0000 (18:51 +0100)
commitaf5e5eb574776cdf1b756a27cc437bff257e22fe
treec96a1b12b10744491f89d19ac1bfe21f6a519747
parent89f081730c49a1d3b46359aa0054e6b3b80f47e4
ceph: fix race during filling readdir cache

Readdir cache uses page cache to save dentry pointers. When adding
dentry pointers to middle of a page, we need to make sure the page
already exists. Otherwise the beginning part of the page will be
invalid pointers.

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