[PATCH] sem2mutex: NCPFS
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
9746151861
commit
8e3f90459b
@@ -46,7 +46,7 @@ int ncp_make_open(struct inode *inode, int right)
|
||||
NCP_FINFO(inode)->volNumber,
|
||||
NCP_FINFO(inode)->dirEntNum);
|
||||
error = -EACCES;
|
||||
down(&NCP_FINFO(inode)->open_sem);
|
||||
mutex_lock(&NCP_FINFO(inode)->open_mutex);
|
||||
if (!atomic_read(&NCP_FINFO(inode)->opened)) {
|
||||
struct ncp_entry_info finfo;
|
||||
int result;
|
||||
@@ -93,7 +93,7 @@ int ncp_make_open(struct inode *inode, int right)
|
||||
}
|
||||
|
||||
out_unlock:
|
||||
up(&NCP_FINFO(inode)->open_sem);
|
||||
mutex_unlock(&NCP_FINFO(inode)->open_mutex);
|
||||
out:
|
||||
return error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user