commit | 4ea0043a29c82ca52ca54728d837314563bec574 | [log] [tgz] |
---|---|---|
author | Sage Weil <sage@newdream.net> | Tue Mar 16 10:36:40 2010 -0700 |
committer | Sage Weil <sage@newdream.net> | Tue Mar 23 07:46:52 2010 -0700 |
tree | df7e9859f54d0ae1b20d07647886a313cd9da9fb | |
parent | 12eadc190038e68b5884a4aa313b6ab89ba60f5e [diff] [blame] |
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 <sage@newdream.net>
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 57d9b44..726c8d4 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c
@@ -2550,9 +2550,8 @@ 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); }