From: Al Viro Date: Tue, 16 Jul 2013 14:15:46 +0000 (+0400) Subject: constify touch_atime() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=badcf2b7b816130a60152d9f5a06705176596925;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git constify touch_atime() Signed-off-by: Al Viro --- diff --git a/fs/inode.c b/fs/inode.c index d6dfb09c8280..93a0625b46e4 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -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; diff --git a/include/linux/fs.h b/include/linux/fs.h index 981874773e85..65c9929cd340 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -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))