diff options
author | Sage Weil <sage@newdream.net> | 2010-03-16 18:36:40 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-03-23 15:46:52 +0100 |
commit | 4ea0043a29c82ca52ca54728d837314563bec574 (patch) | |
tree | df7e9859f54d0ae1b20d07647886a313cd9da9fb /fs | |
parent | ceph: fix null pointer deref of r_osd in debug output (diff) | |
download | linux-4ea0043a29c82ca52ca54728d837314563bec574.tar.xz linux-4ea0043a29c82ca52ca54728d837314563bec574.zip |
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>
Diffstat (limited to 'fs')
-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, 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); } |