aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index e249b561ce8f..6887c412c61a 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -135,6 +135,7 @@ cifs_new_fileinfo(struct inode *newinode, __u16 fileHandle, struct file *file,
135 struct vfsmount *mnt, struct tcon_link *tlink, 135 struct vfsmount *mnt, struct tcon_link *tlink,
136 unsigned int oflags, __u32 oplock) 136 unsigned int oflags, __u32 oplock)
137{ 137{
138 struct dentry *dentry = file->f_path.dentry;
138 struct cifsFileInfo *pCifsFile; 139 struct cifsFileInfo *pCifsFile;
139 struct cifsInodeInfo *pCifsInode; 140 struct cifsInodeInfo *pCifsInode;
140 141
@@ -145,7 +146,7 @@ cifs_new_fileinfo(struct inode *newinode, __u16 fileHandle, struct file *file,
145 pCifsFile->netfid = fileHandle; 146 pCifsFile->netfid = fileHandle;
146 pCifsFile->pid = current->tgid; 147 pCifsFile->pid = current->tgid;
147 pCifsFile->uid = current_fsuid(); 148 pCifsFile->uid = current_fsuid();
148 pCifsFile->pInode = igrab(newinode); 149 pCifsFile->dentry = dget(dentry);
149 pCifsFile->mnt = mnt; 150 pCifsFile->mnt = mnt;
150 pCifsFile->pfile = file; 151 pCifsFile->pfile = file;
151 pCifsFile->invalidHandle = false; 152 pCifsFile->invalidHandle = false;