aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/aops.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-03-23 11:57:48 -0500
committerAnton Altaparmakov <aia21@cantab.net>2006-03-23 11:57:48 -0500
commit4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92 (patch)
treefdd2fd4ef26dc758b28dfb13d56075129a2cbdec /fs/ntfs/aops.c
parent834ba600cefe6847acaebe5e8e984476dfeebf55 (diff)
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:
1278 1278
1279 tni = locked_nis[nr_locked_nis]; 1279 tni = locked_nis[nr_locked_nis];
1280 /* Get the base inode. */ 1280 /* Get the base inode. */
1281 down(&tni->extent_lock); 1281 mutex_lock(&tni->extent_lock);
1282 if (tni->nr_extents >= 0) 1282 if (tni->nr_extents >= 0)
1283 base_tni = tni; 1283 base_tni = tni;
1284 else { 1284 else {
1285 base_tni = tni->ext.base_ntfs_ino; 1285 base_tni = tni->ext.base_ntfs_ino;
1286 BUG_ON(!base_tni); 1286 BUG_ON(!base_tni);
1287 } 1287 }
1288 up(&tni->extent_lock); 1288 mutex_unlock(&tni->extent_lock);
1289 ntfs_debug("Unlocking %s inode 0x%lx.", 1289 ntfs_debug("Unlocking %s inode 0x%lx.",
1290 tni == base_tni ? "base" : "extent", 1290 tni == base_tni ? "base" : "extent",
1291 tni->mft_no); 1291 tni->mft_no);
1292 up(&tni->mrec_lock); 1292 mutex_unlock(&tni->mrec_lock);
1293 atomic_dec(&tni->count); 1293 atomic_dec(&tni->count);
1294 iput(VFS_I(base_tni)); 1294 iput(VFS_I(base_tni));
1295 } 1295 }