aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/aops.c
diff options
context:
space:
mode:
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 }