summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2006-09-28 03:05:46 +0200
committerTim Shimmin <tes@sgi.com>2006-09-28 03:05:46 +0200
commit7ae67d78e7518fba89e5f3a74bdcb68e48ae8858 (patch)
tree6582b0968c4c8554eeb16efb8d9b7018877671f1 /fs
parent[XFS] Reduce endian flipping in alloc_btree, same as was done for (diff)
downloadlinux-7ae67d78e7518fba89e5f3a74bdcb68e48ae8858.tar.xz
linux-7ae67d78e7518fba89e5f3a74bdcb68e48ae8858.zip
[XFS] standardize on one sema init macro
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/sema.h2
-rw-r--r--fs/xfs/xfs_iget.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/sema.h b/fs/xfs/linux-2.6/sema.h
index b25090094cca..2009e6d922ce 100644
--- a/fs/xfs/linux-2.6/sema.h
+++ b/fs/xfs/linux-2.6/sema.h
@@ -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)
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c
index e304ab078273..9b9379792f37 100644
--- a/fs/xfs/xfs_iget.c
+++ b/fs/xfs/xfs_iget.c
@@ -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");
}
/*