diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-23 19:57:48 +0300 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2006-03-23 19:57:48 +0300 |
commit | 4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92 (patch) | |
tree | fdd2fd4ef26dc758b28dfb13d56075129a2cbdec /fs/ntfs/aops.c | |
parent | 834ba600cefe6847acaebe5e8e984476dfeebf55 (diff) | |
download | linux-4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92.tar.xz |
NTFS: Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/aops.c')
-rw-r--r-- | fs/ntfs/aops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ntfs/aops.c b/fs/ntfs/aops.c index 1cf105b99202..580412d330cb 100644 --- a/fs/ntfs/aops.c +++ b/fs/ntfs/aops.c @@ -1278,18 +1278,18 @@ unm_done: tni = locked_nis[nr_locked_nis]; /* Get the base inode. */ - down(&tni->extent_lock); + mutex_lock(&tni->extent_lock); if (tni->nr_extents >= 0) base_tni = tni; else { base_tni = tni->ext.base_ntfs_ino; BUG_ON(!base_tni); } - up(&tni->extent_lock); + mutex_unlock(&tni->extent_lock); ntfs_debug("Unlocking %s inode 0x%lx.", tni == base_tni ? "base" : "extent", tni->mft_no); - up(&tni->mrec_lock); + mutex_unlock(&tni->mrec_lock); atomic_dec(&tni->count); iput(VFS_I(base_tni)); } |