Unionfs: add un/likely conditionals on headers
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 24 Sep 2007 05:09:14 +0000 (01:09 -0400)
committerErez 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

index a3859fd384eade48ab01df05407c1b3e64988928..c36a2b49dac11692f2517537e62ad5a4237ad79e 100644 (file)
@@ -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);