|
@@ -1030,6 +1030,8 @@ static void drop_inode_snap_realm(struct ceph_inode_info *ci)
|
|
|
list_del_init(&ci->i_snap_realm_item);
|
|
list_del_init(&ci->i_snap_realm_item);
|
|
|
ci->i_snap_realm_counter++;
|
|
ci->i_snap_realm_counter++;
|
|
|
ci->i_snap_realm = NULL;
|
|
ci->i_snap_realm = NULL;
|
|
|
|
|
+ if (realm->ino == ci->i_vino.ino)
|
|
|
|
|
+ realm->inode = NULL;
|
|
|
spin_unlock(&realm->inodes_with_caps_lock);
|
|
spin_unlock(&realm->inodes_with_caps_lock);
|
|
|
ceph_put_snap_realm(ceph_sb_to_client(ci->vfs_inode.i_sb)->mdsc,
|
|
ceph_put_snap_realm(ceph_sb_to_client(ci->vfs_inode.i_sb)->mdsc,
|
|
|
realm);
|
|
realm);
|