diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-10-15 21:33:59 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-18 03:04:19 +0200 |
commit | 15886177e412db00aa86155fe72608c4ebf5a08f (patch) | |
tree | eb4ac34ee40ae499ae2a68c44f71effe657b4504 /fs/cifs/cifsglob.h | |
parent | cifs: eliminate the inode argument from cifs_new_fileinfo (diff) | |
download | linux-15886177e412db00aa86155fe72608c4ebf5a08f.tar.xz linux-15886177e412db00aa86155fe72608c4ebf5a08f.zip |
cifs: clean up cifs_reopen_file
Add a f_flags field that holds the f_flags field from the filp. We'll
need this info in case the filp ever goes away before the cifsFileInfo
does. Have cifs_reopen_file use that value instead of filp->f_flags
too and have it take a cifsFileInfo arg instead of a filp.
While we're at it, get rid of some bogus cargo-cult NULL pointer
checks in that function and reduce the level of indentation.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Acked-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 6c69bd762498..b746dec88396 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -390,6 +390,7 @@ struct cifsFileInfo { /* lock scope id (0 if none) */ struct file *pfile; /* needed for writepage */ struct dentry *dentry; + unsigned int f_flags; struct tcon_link *tlink; struct mutex lock_mutex; struct list_head llist; /* list of byte range locks we have. */ |