commit f50341ad3b04e49a6c5d7f661a7c10ca1be23d33
Author: Erez Zadok <[EMAIL PROTECTED]>
Date: Mon Sep 24 01:09:14 2007 -0400
Unionfs: add un/likely conditionals on headers
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index a3859fd..c36a2b4 100644
--- 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);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs