[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
@@ -291,7 +291,7 @@ ncp_make_closed(struct inode *inode)
|
||||
int err;
|
||||
|
||||
err = 0;
|
||||
down(&NCP_FINFO(inode)->open_sem);
|
||||
mutex_lock(&NCP_FINFO(inode)->open_mutex);
|
||||
if (atomic_read(&NCP_FINFO(inode)->opened) == 1) {
|
||||
atomic_set(&NCP_FINFO(inode)->opened, 0);
|
||||
err = ncp_close_file(NCP_SERVER(inode), NCP_FINFO(inode)->file_handle);
|
||||
@@ -301,7 +301,7 @@ ncp_make_closed(struct inode *inode)
|
||||
NCP_FINFO(inode)->volNumber,
|
||||
NCP_FINFO(inode)->dirEntNum, err);
|
||||
}
|
||||
up(&NCP_FINFO(inode)->open_sem);
|
||||
mutex_unlock(&NCP_FINFO(inode)->open_mutex);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user