projects
/
unionfs-2.6.18.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a7458
)
Unionfs: add un/likely conditionals on headers
author
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 24 Sep 2007 05:09:14 +0000
(
01:09
-0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 24 Sep 2007 05:09:14 +0000
(
01:09
-0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/union.h
patch
|
blob
|
history
diff --git
a/fs/unionfs/union.h
b/fs/unionfs/union.h
index a3859fd384eade48ab01df05407c1b3e64988928..c36a2b49dac11692f2517537e62ad5a4237ad79e 100644
(file)
--- a/
fs/unionfs/union.h
+++ b/
fs/unionfs/union.h
@@
-479,7
+479,7
@@
static inline struct vfsmount *unionfs_mntget(struct dentry *dentry,
mnt = mntget(unionfs_lower_mnt_idx(dentry, bindex));
#ifdef CONFIG_UNION_FS_DEBUG
- if (
!mnt
)
+ if (
unlikely(!mnt)
)
printk(KERN_DEBUG "unionfs_mntget: mnt=%p bindex=%d\n",
mnt, bindex);
#endif /* CONFIG_UNION_FS_DEBUG */
@@
-491,7
+491,7
@@
static inline void unionfs_mntput(struct dentry *dentry, int bindex)
{
struct vfsmount *mnt;
- if (
!dentry && bindex < 0
)
+ if (
unlikely(!dentry && bindex < 0)
)
return;
BUG_ON(!dentry || bindex < 0);