summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 14:33:15 +0000
committerAlex Elder <aelder@sgi.com>2010-10-18 15:09:09 -0500
commita731cd116c9334e01bcf3e676c0c621fe7de6ce4 (patch)
tree33113c64bd92edc448398e7325983317ce5a55a1 /fs/xfs
parent6743099ce57a40509a86849a22317ed4b7516911 (diff)
downloadlinux-a731cd116c9334e01bcf3e676c0c621fe7de6ce4.tar.bz2
xfs: semaphore cleanup
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. (Ported to current XFS code by <aelder@sgi.com>.) Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 47ef97f46fe9..52785189212f 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -189,7 +189,7 @@ _xfs_buf_initialize(
init_completion(&bp->b_iowait);
INIT_LIST_HEAD(&bp->b_list);
RB_CLEAR_NODE(&bp->b_rbnode);
- init_MUTEX_LOCKED(&bp->b_sema); /* held, no waiters */
+ sema_init(&bp->b_sema, 0); /* held, no waiters */
XB_SET_OWNER(bp);
bp->b_target = target;
bp->b_file_offset = range_base;