diff options
-rw-r--r-- | fs/xfs/linux-2.6/sema.h | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_iget.c | 2 |
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 @@ | |||
29 | 29 | ||
30 | typedef struct semaphore sema_t; | 30 | typedef struct semaphore sema_t; |
31 | 31 | ||
32 | #define init_sema(sp, val, c, d) sema_init(sp, val) | ||
33 | #define initsema(sp, val) sema_init(sp, val) | ||
34 | #define initnsema(sp, val, name) sema_init(sp, val) | 32 | #define initnsema(sp, val, name) sema_init(sp, val) |
35 | #define psema(sp, b) down(sp) | 33 | #define psema(sp, b) down(sp) |
36 | #define vsema(sp) up(sp) | 34 | #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( | |||
546 | mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", vp->v_number); | 546 | mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", vp->v_number); |
547 | init_waitqueue_head(&ip->i_ipin_wait); | 547 | init_waitqueue_head(&ip->i_ipin_wait); |
548 | atomic_set(&ip->i_pincount, 0); | 548 | atomic_set(&ip->i_pincount, 0); |
549 | init_sema(&ip->i_flock, 1, "xfsfino", vp->v_number); | 549 | initnsema(&ip->i_flock, 1, "xfsfino"); |
550 | } | 550 | } |
551 | 551 | ||
552 | /* | 552 | /* |