[CIFS] cleanup sparse and compile errors in previous fix

Signed-off-by: Steve French (sfrench@us.ibm.com)
This commit is contained in:
Steve French
2005-10-05 19:32:49 -07:00
parent 4a77118cd5
commit dd99cd803d
2 changed files with 3 additions and 4 deletions

View File

@@ -907,9 +907,10 @@ static ssize_t cifs_write(struct file *file, const char *write_data,
return total_written;
}
static struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *cifs_inode)
struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *cifs_inode)
{
struct cifsFileInfo *open_file;
int rc;
read_lock(&GlobalSMBSeslock);
list_for_each_entry(open_file, &cifs_inode->openFileList, flist) {
@@ -920,7 +921,7 @@ static struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *cifs_inode)
(open_file->pfile->f_flags & O_WRONLY))) {
read_unlock(&GlobalSMBSeslock);
if(open_file->invalidHandle) {
rc = cifs_reopen_file(cifs_inode->vfs_inode,
rc = cifs_reopen_file(&cifs_inode->vfs_inode,
open_file->pfile, FALSE);
/* if it fails, try another handle - might be */
/* dangerous to hold up writepages with retry */