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;
}
out_unlock:
- mutex_unlock(&NCP_FINFO(inode)->open_mutex);
+ up(&NCP_FINFO(inode)->open_sem);
out:
return error;
}
return 0;
}
-const struct file_operations ncp_file_operations =
+struct file_operations ncp_file_operations =
{
.llseek = remote_llseek,
.read = ncp_file_read,