]> err.no Git - linux-2.6/commitdiff
[XFS] standardize on one sema init macro
authorEric Sandeen <sandeen@sandeen.net>
Thu, 28 Sep 2006 01:05:46 +0000 (11:05 +1000)
committerTim Shimmin <tes@sgi.com>
Thu, 28 Sep 2006 01:05:46 +0000 (11:05 +1000)
One sema to rule them all, one sema to find them...

SGI-PV: 907752
SGI-Modid: xfs-linux-melb:xfs-kern:26911a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/sema.h
fs/xfs/xfs_iget.c

index b25090094cca73d97a350b141f12114327fc3405..2009e6d922ce5161304813b82a7ea7ca47c2351a 100644 (file)
@@ -29,8 +29,6 @@
 
 typedef struct semaphore sema_t;
 
-#define init_sema(sp, val, c, d)       sema_init(sp, val)
-#define initsema(sp, val)              sema_init(sp, val)
 #define initnsema(sp, val, name)       sema_init(sp, val)
 #define psema(sp, b)                   down(sp)
 #define vsema(sp)                      up(sp)
index e304ab078273c46e90aa5158f18d843f42c3144f..9b9379792f37064920094ddd98dd89d273e4ca6c 100644 (file)
@@ -546,7 +546,7 @@ xfs_inode_lock_init(
        mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", vp->v_number);
        init_waitqueue_head(&ip->i_ipin_wait);
        atomic_set(&ip->i_pincount, 0);
-       init_sema(&ip->i_flock, 1, "xfsfino", vp->v_number);
+       initnsema(&ip->i_flock, 1, "xfsfino");
 }
 
 /*