From: Sage Weil Date: Tue, 16 Mar 2010 17:36:40 +0000 (-0700) Subject: ceph: drop unnecessary WARN_ON in caps migration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ea0043a29c82ca52ca54728d837314563bec574;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ceph: drop unnecessary WARN_ON in caps migration If we don't have the exported cap it's because we already released it. No need to WARN. Signed-off-by: Sage Weil --- 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, ci->i_cap_exporting_issued = cap->issued; } __ceph_remove_cap(cap); - } else { - WARN_ON(!cap); } + /* else, we already released it */ spin_unlock(&inode->i_lock); }