|
@@ -374,8 +374,12 @@ out:
|
|
|
|
|
|
void ceph_queue_revalidate(struct inode *inode)
|
|
void ceph_queue_revalidate(struct inode *inode)
|
|
{
|
|
{
|
|
|
|
+ struct ceph_fs_client *fsc = ceph_sb_to_client(inode->i_sb);
|
|
struct ceph_inode_info *ci = ceph_inode(inode);
|
|
struct ceph_inode_info *ci = ceph_inode(inode);
|
|
|
|
|
|
|
|
+ if (fsc->revalidate_wq == NULL || ci->fscache == NULL)
|
|
|
|
+ return;
|
|
|
|
+
|
|
ihold(inode);
|
|
ihold(inode);
|
|
|
|
|
|
if (queue_work(ceph_sb_to_client(inode->i_sb)->revalidate_wq,
|
|
if (queue_work(ceph_sb_to_client(inode->i_sb)->revalidate_wq,
|