git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
fs
/
ncpfs
/
file.c
diff --git
a/fs/ncpfs/file.c
b/fs/ncpfs/file.c
index
e6b7c67
..
973b444
100644
(file)
--- a/
fs/ncpfs/file.c
+++ b/
fs/ncpfs/file.c
@@
-46,7
+46,7
@@
int ncp_make_open(struct inode *inode, int right)
NCP_FINFO(inode)->volNumber,
NCP_FINFO(inode)->dirEntNum);
error = -EACCES;
NCP_FINFO(inode)->volNumber,
NCP_FINFO(inode)->dirEntNum);
error = -EACCES;
-
mutex_lock(&NCP_FINFO(inode)->open_mutex
);
+
down(&NCP_FINFO(inode)->open_sem
);
if (!atomic_read(&NCP_FINFO(inode)->opened)) {
struct ncp_entry_info finfo;
int result;
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:
}
out_unlock:
-
mutex_unlock(&NCP_FINFO(inode)->open_mutex
);
+
up(&NCP_FINFO(inode)->open_sem
);
out:
return error;
}
out:
return error;
}
@@
-283,7
+283,7
@@
static int ncp_release(struct inode *inode, struct file *file) {
return 0;
}
return 0;
}
-
const
struct file_operations ncp_file_operations =
+struct file_operations ncp_file_operations =
{
.llseek = remote_llseek,
.read = ncp_file_read,
{
.llseek = remote_llseek,
.read = ncp_file_read,