]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ceph/mds_client.c
ceph: don't mark dirty caps when there is no auth cap
[karo-tx-linux.git] / fs / ceph / mds_client.c
index 0122491d947cdc8f4324ec3ec70be7bc88ffce61..0cfc2d16354917e00ab3ca42dc831b2faedaf48c 100644 (file)
@@ -1098,7 +1098,7 @@ static int remove_session_caps_cb(struct inode *inode, struct ceph_cap *cap,
             cap, ci, &ci->vfs_inode);
        spin_lock(&ci->i_ceph_lock);
        __ceph_remove_cap(cap, false);
-       if (!__ceph_is_any_real_caps(ci)) {
+       if (!ci->i_auth_cap) {
                struct ceph_mds_client *mdsc =
                        ceph_sb_to_client(inode->i_sb)->mdsc;