diff options
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 9638233964fc..d2a833999bcc 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -299,7 +299,7 @@ cifs_get_file_info_unix(struct file *filp) | |||
299 | unsigned int xid; | 299 | unsigned int xid; |
300 | FILE_UNIX_BASIC_INFO find_data; | 300 | FILE_UNIX_BASIC_INFO find_data; |
301 | struct cifs_fattr fattr; | 301 | struct cifs_fattr fattr; |
302 | struct inode *inode = filp->f_path.dentry->d_inode; | 302 | struct inode *inode = file_inode(filp); |
303 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); | 303 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); |
304 | struct cifsFileInfo *cfile = filp->private_data; | 304 | struct cifsFileInfo *cfile = filp->private_data; |
305 | struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); | 305 | struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); |
@@ -568,7 +568,7 @@ cifs_get_file_info(struct file *filp) | |||
568 | unsigned int xid; | 568 | unsigned int xid; |
569 | FILE_ALL_INFO find_data; | 569 | FILE_ALL_INFO find_data; |
570 | struct cifs_fattr fattr; | 570 | struct cifs_fattr fattr; |
571 | struct inode *inode = filp->f_path.dentry->d_inode; | 571 | struct inode *inode = file_inode(filp); |
572 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); | 572 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); |
573 | struct cifsFileInfo *cfile = filp->private_data; | 573 | struct cifsFileInfo *cfile = filp->private_data; |
574 | struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); | 574 | struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); |
@@ -1688,7 +1688,7 @@ cifs_invalidate_mapping(struct inode *inode) | |||
1688 | int cifs_revalidate_file_attr(struct file *filp) | 1688 | int cifs_revalidate_file_attr(struct file *filp) |
1689 | { | 1689 | { |
1690 | int rc = 0; | 1690 | int rc = 0; |
1691 | struct inode *inode = filp->f_path.dentry->d_inode; | 1691 | struct inode *inode = file_inode(filp); |
1692 | struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; | 1692 | struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; |
1693 | 1693 | ||
1694 | if (!cifs_inode_needs_reval(inode)) | 1694 | if (!cifs_inode_needs_reval(inode)) |
@@ -1745,7 +1745,7 @@ out: | |||
1745 | int cifs_revalidate_file(struct file *filp) | 1745 | int cifs_revalidate_file(struct file *filp) |
1746 | { | 1746 | { |
1747 | int rc; | 1747 | int rc; |
1748 | struct inode *inode = filp->f_path.dentry->d_inode; | 1748 | struct inode *inode = file_inode(filp); |
1749 | 1749 | ||
1750 | rc = cifs_revalidate_file_attr(filp); | 1750 | rc = cifs_revalidate_file_attr(filp); |
1751 | if (rc) | 1751 | if (rc) |