X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fncpfs%2Ffile.c;fp=fs%2Fncpfs%2Ffile.c;h=973b444d691427cd05fc1e4ed8105606e04e1143;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=e6b7c67cf057765f86921cf2220fee385eaaee38;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/fs/ncpfs/file.c b/fs/ncpfs/file.c index e6b7c67cf..973b444d6 100644 --- 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; - 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; @@ -93,7 +93,7 @@ int ncp_make_open(struct inode *inode, int right) } out_unlock: - mutex_unlock(&NCP_FINFO(inode)->open_mutex); + up(&NCP_FINFO(inode)->open_sem); out: return error; } @@ -283,7 +283,7 @@ static int ncp_release(struct inode *inode, struct file *file) { return 0; } -const struct file_operations ncp_file_operations = +struct file_operations ncp_file_operations = { .llseek = remote_llseek, .read = ncp_file_read,