projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12eadc1
)
ceph: drop unnecessary WARN_ON in caps migration
author
Sage Weil
<sage@newdream.net>
Tue, 16 Mar 2010 17:36:40 +0000
(10:36 -0700)
committer
Sage Weil
<sage@newdream.net>
Tue, 23 Mar 2010 14:46:52 +0000
(07:46 -0700)
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>
fs/ceph/caps.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/caps.c
b/fs/ceph/caps.c
index 57d9b44a8820cee3ce3fbb5ce37ebbb57260d1c0..726c8d445995fd5d7feea276b595779871823c22 100644
(file)
--- 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);
}