aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r--fs/cifs/readdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index cdd6ff48246b..7255b0c7aa7e 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -505,7 +505,7 @@ static int cifs_entry_is_dot(struct cifs_dirent *de, bool is_unicode)
505 whether we can use the cached search results from the previous search */ 505 whether we can use the cached search results from the previous search */
506static int is_dir_changed(struct file *file) 506static int is_dir_changed(struct file *file)
507{ 507{
508 struct inode *inode = file->f_path.dentry->d_inode; 508 struct inode *inode = file_inode(file);
509 struct cifsInodeInfo *cifsInfo = CIFS_I(inode); 509 struct cifsInodeInfo *cifsInfo = CIFS_I(inode);
510 510
511 if (cifsInfo->time == 0) 511 if (cifsInfo->time == 0)
@@ -778,7 +778,7 @@ int cifs_readdir(struct file *file, void *direntry, filldir_t filldir)
778 switch ((int) file->f_pos) { 778 switch ((int) file->f_pos) {
779 case 0: 779 case 0:
780 if (filldir(direntry, ".", 1, file->f_pos, 780 if (filldir(direntry, ".", 1, file->f_pos,
781 file->f_path.dentry->d_inode->i_ino, DT_DIR) < 0) { 781 file_inode(file)->i_ino, DT_DIR) < 0) {
782 cERROR(1, "Filldir for current dir failed"); 782 cERROR(1, "Filldir for current dir failed");
783 rc = -ENOMEM; 783 rc = -ENOMEM;
784 break; 784 break;