Message ID | 20220302085402.64740-3-xiubli@redhat.com |
---|---|
State | New |
Headers | show |
Series | ceph: misc fixes | expand |
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 0b36020207fd..0762b55fdbcb 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -4303,7 +4303,6 @@ void ceph_handle_caps(struct ceph_mds_session *session, /* lookup ino */ inode = ceph_find_inode(mdsc->fsc->sb, vino); - ci = ceph_inode(inode); dout(" op %s ino %llx.%llx inode %p\n", ceph_cap_op_name(op), vino.ino, vino.snap, inode); @@ -4333,6 +4332,7 @@ void ceph_handle_caps(struct ceph_mds_session *session, } goto flush_cap_releases; } + ci = ceph_inode(inode); /* these will work even if we don't have a cap yet */ switch (op) {