[PATCH] sem2mutex: UDF
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: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
8e3f90459b
commit
1e7933defd
@@ -42,7 +42,7 @@ void udf_free_inode(struct inode * inode)
|
||||
|
||||
clear_inode(inode);
|
||||
|
||||
down(&sbi->s_alloc_sem);
|
||||
mutex_lock(&sbi->s_alloc_mutex);
|
||||
if (sbi->s_lvidbh) {
|
||||
if (S_ISDIR(inode->i_mode))
|
||||
UDF_SB_LVIDIU(sb)->numDirs =
|
||||
@@ -53,7 +53,7 @@ void udf_free_inode(struct inode * inode)
|
||||
|
||||
mark_buffer_dirty(sbi->s_lvidbh);
|
||||
}
|
||||
up(&sbi->s_alloc_sem);
|
||||
mutex_unlock(&sbi->s_alloc_mutex);
|
||||
|
||||
udf_free_blocks(sb, NULL, UDF_I_LOCATION(inode), 0, 1);
|
||||
}
|
||||
@@ -83,7 +83,7 @@ struct inode * udf_new_inode (struct inode *dir, int mode, int * err)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
down(&sbi->s_alloc_sem);
|
||||
mutex_lock(&sbi->s_alloc_mutex);
|
||||
UDF_I_UNIQUE(inode) = 0;
|
||||
UDF_I_LENEXTENTS(inode) = 0;
|
||||
UDF_I_NEXT_ALLOC_BLOCK(inode) = 0;
|
||||
@@ -148,7 +148,7 @@ struct inode * udf_new_inode (struct inode *dir, int mode, int * err)
|
||||
UDF_I_CRTIME(inode) = current_fs_time(inode->i_sb);
|
||||
insert_inode_hash(inode);
|
||||
mark_inode_dirty(inode);
|
||||
up(&sbi->s_alloc_sem);
|
||||
mutex_unlock(&sbi->s_alloc_mutex);
|
||||
|
||||
if (DQUOT_ALLOC_INODE(inode))
|
||||
{
|
||||
|
Reference in New Issue
Block a user