]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ceph/cache.c
ceph: hung on ceph fscache invalidate in some cases
[karo-tx-linux.git] / fs / ceph / cache.c
index 6bfe65e0b03831280b0e66e96d616be9ee55e6b1..360b622b0be035e8e6b7a10c9e01d02024246e94 100644 (file)
@@ -324,6 +324,9 @@ void ceph_invalidate_fscache_page(struct inode* inode, struct page *page)
 {
        struct ceph_inode_info *ci = ceph_inode(inode);
 
+       if (!PageFsCache(page))
+               return;
+
        fscache_wait_on_page_write(ci->fscache, page);
        fscache_uncache_page(ci->fscache, page);
 }