]> Pileus Git - ~andy/linux/commitdiff
constify touch_atime()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Jul 2013 14:15:46 +0000 (18:15 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Sep 2013 02:52:45 +0000 (22:52 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/inode.c
include/linux/fs.h

index d6dfb09c828083b8ba64d3e8aacb2b6a64581038..93a0625b46e490252c03dab43310919763a8eca9 100644 (file)
@@ -1525,7 +1525,7 @@ static int update_time(struct inode *inode, struct timespec *time, int flags)
  *     This function automatically handles read only file systems and media,
  *     as well as the "noatime" flag and inode specific "noatime" markers.
  */
-void touch_atime(struct path *path)
+void touch_atime(const struct path *path)
 {
        struct vfsmount *mnt = path->mnt;
        struct inode *inode = path->dentry->d_inode;
index 981874773e85adfe81c2d24d59daa79aea157114..65c9929cd340a2d9addfcc61118f8103cfd79934 100644 (file)
@@ -1804,7 +1804,7 @@ enum file_time_flags {
        S_VERSION = 8,
 };
 
-extern void touch_atime(struct path *);
+extern void touch_atime(const struct path *);
 static inline void file_accessed(struct file *file)
 {
        if (!(file->f_flags & O_NOATIME))