Whamcloud - gitweb
LU-3831 llite: Remove touch_atime() call in ll_readdir()
[fs/lustre-release.git] / lustre / llite / dir.c
index 27f23e4..136b9b3 100644 (file)
@@ -278,9 +278,6 @@ static int ll_readdir(struct file *filp, void *cookie, filldir_t filldir)
        struct md_op_data       *op_data;
        __u64                   pos;
        int                     rc;
-#ifdef HAVE_TOUCH_ATIME_1ARG
-       struct path             path;
-#endif
        ENTRY;
 
        if (lfd != NULL)
@@ -323,17 +320,6 @@ static int ll_readdir(struct file *filp, void *cookie, filldir_t filldir)
 
        ll_finish_md_op_data(op_data);
        filp->f_version = inode->i_version;
-#ifdef HAVE_TOUCH_ATIME_1ARG
-#ifdef HAVE_F_PATH_MNT
-       path.mnt = filp->f_path.mnt;
-#else
-       path.mnt = filp->f_vfsmnt;
-#endif
-       path.dentry = filp->f_dentry;
-       touch_atime(&path);
-#else
-       touch_atime(filp->f_vfsmnt, filp->f_dentry);
-#endif
 
 out:
        if (!rc)