git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
fs
/
coda
/
cnode.c
diff --git
a/fs/coda/cnode.c
b/fs/coda/cnode.c
index
6bf72eb
..
4c9fecb
100644
(file)
--- a/
fs/coda/cnode.c
+++ b/
fs/coda/cnode.c
@@
-11,7
+11,7
@@
#include <linux/coda_fs_i.h>
#include <linux/coda_psdev.h>
#include <linux/coda_fs_i.h>
#include <linux/coda_psdev.h>
-inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2)
+
static
inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2)
{
return memcmp(fid1, fid2, sizeof(*fid1)) == 0;
}
{
return memcmp(fid1, fid2, sizeof(*fid1)) == 0;
}
@@
-120,8
+120,7
@@
void coda_replace_fid(struct inode *inode, struct CodaFid *oldfid,
cii = ITOC(inode);
cii = ITOC(inode);
- if (!coda_fideq(&cii->c_fid, oldfid))
- BUG();
+ BUG_ON(!coda_fideq(&cii->c_fid, oldfid));
/* replace fid and rehash inode */
/* XXX we probably need to hold some lock here! */
/* replace fid and rehash inode */
/* XXX we probably need to hold some lock here! */