[PATCH] sem2mutex: HPFS
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
1d5599e397
commit
7bf6d78dd9
@@ -186,9 +186,9 @@ void hpfs_write_inode(struct inode *i)
|
||||
kfree(hpfs_inode->i_rddir_off);
|
||||
hpfs_inode->i_rddir_off = NULL;
|
||||
}
|
||||
down(&hpfs_inode->i_parent);
|
||||
mutex_lock(&hpfs_inode->i_parent_mutex);
|
||||
if (!i->i_nlink) {
|
||||
up(&hpfs_inode->i_parent);
|
||||
mutex_unlock(&hpfs_inode->i_parent_mutex);
|
||||
return;
|
||||
}
|
||||
parent = iget_locked(i->i_sb, hpfs_inode->i_parent_dir);
|
||||
@@ -199,14 +199,14 @@ void hpfs_write_inode(struct inode *i)
|
||||
hpfs_read_inode(parent);
|
||||
unlock_new_inode(parent);
|
||||
}
|
||||
down(&hpfs_inode->i_sem);
|
||||
mutex_lock(&hpfs_inode->i_mutex);
|
||||
hpfs_write_inode_nolock(i);
|
||||
up(&hpfs_inode->i_sem);
|
||||
mutex_unlock(&hpfs_inode->i_mutex);
|
||||
iput(parent);
|
||||
} else {
|
||||
mark_inode_dirty(i);
|
||||
}
|
||||
up(&hpfs_inode->i_parent);
|
||||
mutex_unlock(&hpfs_inode->i_parent_mutex);
|
||||
}
|
||||
|
||||
void hpfs_write_inode_nolock(struct inode *i)
|
||||
|
Reference in New Issue
Block a user