diff options
-rw-r--r-- | fs/ceph/caps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 57d9b44a8820..726c8d445995 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c | |||
@@ -2550,9 +2550,8 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex, | |||
2550 | ci->i_cap_exporting_issued = cap->issued; | 2550 | ci->i_cap_exporting_issued = cap->issued; |
2551 | } | 2551 | } |
2552 | __ceph_remove_cap(cap); | 2552 | __ceph_remove_cap(cap); |
2553 | } else { | ||
2554 | WARN_ON(!cap); | ||
2555 | } | 2553 | } |
2554 | /* else, we already released it */ | ||
2556 | 2555 | ||
2557 | spin_unlock(&inode->i_lock); | 2556 | spin_unlock(&inode->i_lock); |
2558 | } | 2557 | } |