summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/aops.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-03-23 16:57:48 +0000
committerAnton Altaparmakov <aia21@cantab.net>2006-03-23 16:57:48 +0000
commit4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92 (patch)
treefdd2fd4ef26dc758b28dfb13d56075129a2cbdec /fs/ntfs/aops.c
parent834ba600cefe6847acaebe5e8e984476dfeebf55 (diff)
downloadlinux-4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92.tar.gz
linux-4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92.tar.bz2
linux-4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92.zip
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.c6
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));
}