diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-23 11:57:48 -0500 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2006-03-23 11:57:48 -0500 |
commit | 4e5e529ad684f1b3fba957f5dd4eb7c2b534ee92 (patch) | |
tree | fdd2fd4ef26dc758b28dfb13d56075129a2cbdec /fs/ntfs/inode.c | |
parent | 834ba600cefe6847acaebe5e8e984476dfeebf55 (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/inode.c')
-rw-r--r-- | fs/ntfs/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c index 73791b2d949..4c86b7e1d1e 100644 --- a/fs/ntfs/inode.c +++ b/fs/ntfs/inode.c | |||
@@ -388,7 +388,7 @@ void __ntfs_init_inode(struct super_block *sb, ntfs_inode *ni) | |||
388 | atomic_set(&ni->count, 1); | 388 | atomic_set(&ni->count, 1); |
389 | ni->vol = NTFS_SB(sb); | 389 | ni->vol = NTFS_SB(sb); |
390 | ntfs_init_runlist(&ni->runlist); | 390 | ntfs_init_runlist(&ni->runlist); |
391 | init_MUTEX(&ni->mrec_lock); | 391 | mutex_init(&ni->mrec_lock); |
392 | ni->page = NULL; | 392 | ni->page = NULL; |
393 | ni->page_ofs = 0; | 393 | ni->page_ofs = 0; |
394 | ni->attr_list_size = 0; | 394 | ni->attr_list_size = 0; |
@@ -400,7 +400,7 @@ void __ntfs_init_inode(struct super_block *sb, ntfs_inode *ni) | |||
400 | ni->itype.index.collation_rule = 0; | 400 | ni->itype.index.collation_rule = 0; |
401 | ni->itype.index.block_size_bits = 0; | 401 | ni->itype.index.block_size_bits = 0; |
402 | ni->itype.index.vcn_size_bits = 0; | 402 | ni->itype.index.vcn_size_bits = 0; |
403 | init_MUTEX(&ni->extent_lock); | 403 | mutex_init(&ni->extent_lock); |
404 | ni->nr_extents = 0; | 404 | ni->nr_extents = 0; |
405 | ni->ext.base_ntfs_ino = NULL; | 405 | ni->ext.base_ntfs_ino = NULL; |
406 | } | 406 | } |
@@ -3066,7 +3066,7 @@ int ntfs_write_inode(struct inode *vi, int sync) | |||
3066 | */ | 3066 | */ |
3067 | if (modified) { | 3067 | if (modified) { |
3068 | flush_dcache_mft_record_page(ctx->ntfs_ino); | 3068 | flush_dcache_mft_record_page(ctx->ntfs_ino); |
3069 | if (!NInoTestSetDirty(ctx->ntfs_ino)) { | 3069 | if (!NInoTestSetDirty(ctx->ntfs_ino)) |
3070 | mark_ntfs_record_dirty(ctx->ntfs_ino->page, | 3070 | mark_ntfs_record_dirty(ctx->ntfs_ino->page, |
3071 | ctx->ntfs_ino->page_ofs); | 3071 | ctx->ntfs_ino->page_ofs); |
3072 | } | 3072 | } |
@@ -3075,7 +3075,7 @@ int ntfs_write_inode(struct inode *vi, int sync) | |||
3075 | if (NInoDirty(ni)) | 3075 | if (NInoDirty(ni)) |
3076 | err = write_mft_record(ni, m, sync); | 3076 | err = write_mft_record(ni, m, sync); |
3077 | /* Write all attached extent mft records. */ | 3077 | /* Write all attached extent mft records. */ |
3078 | down(&ni->extent_lock); | 3078 | mutex_lock(&ni->extent_lock); |
3079 | if (ni->nr_extents > 0) { | 3079 | if (ni->nr_extents > 0) { |
3080 | ntfs_inode **extent_nis = ni->ext.extent_ntfs_inos; | 3080 | ntfs_inode **extent_nis = ni->ext.extent_ntfs_inos; |
3081 | int i; | 3081 | int i; |
@@ -3102,7 +3102,7 @@ int ntfs_write_inode(struct inode *vi, int sync) | |||
3102 | } | 3102 | } |
3103 | } | 3103 | } |
3104 | } | 3104 | } |
3105 | up(&ni->extent_lock); | 3105 | mutex_unlock(&ni->extent_lock); |
3106 | unmap_mft_record(ni); | 3106 | unmap_mft_record(ni); |
3107 | if (unlikely(err)) | 3107 | if (unlikely(err)) |
3108 | goto err_out; | 3108 | goto err_out; |