diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-10-15 15:34:01 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-17 21:07:20 -0400 |
commit | 2e396b83f6087b78dac5a18d6d0cf9f8426a00b3 (patch) | |
tree | 890c0af098920fe79e85f475a25fcc2f0d8c00bc /fs/cifs/dir.c | |
parent | 7da4b49a0ec481239d9cd51f7053aa8e4e191fa7 (diff) |
cifs: eliminate pfile pointer from cifsFileInfo
All the remaining users of cifsFileInfo->pfile just use it to get
at the f_flags/f_mode. Now that we store that separately in the
cifsFileInfo, there's no need to consult the pfile at all from
a cifsFileInfo pointer.
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/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 3c23d882a44c..600eac18cb21 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -148,7 +148,6 @@ cifs_new_fileinfo(__u16 fileHandle, struct file *file, | |||
148 | pCifsFile->uid = current_fsuid(); | 148 | pCifsFile->uid = current_fsuid(); |
149 | pCifsFile->dentry = dget(dentry); | 149 | pCifsFile->dentry = dget(dentry); |
150 | pCifsFile->f_flags = file->f_flags; | 150 | pCifsFile->f_flags = file->f_flags; |
151 | pCifsFile->pfile = file; | ||
152 | pCifsFile->invalidHandle = false; | 151 | pCifsFile->invalidHandle = false; |
153 | pCifsFile->closePend = false; | 152 | pCifsFile->closePend = false; |
154 | pCifsFile->tlink = cifs_get_tlink(tlink); | 153 | pCifsFile->tlink = cifs_get_tlink(tlink); |