]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ed179f4c1e6ff82cfe585260bf5cf51f9348fb5
treec96a1b12b10744491f89d19ac1bfe21f6a519747
parent4df431e1117710e55f729e8954dd52601a580754
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