aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/open.c b/fs/open.c
index 8701d2e2961f..93ae3cdee4ab 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -65,7 +65,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
65 return ret; 65 return ret;
66} 66}
67 67
68long vfs_truncate(struct path *path, loff_t length) 68long vfs_truncate(const struct path *path, loff_t length)
69{ 69{
70 struct inode *inode; 70 struct inode *inode;
71 long error; 71 long error;
@@ -499,7 +499,7 @@ out:
499 return error; 499 return error;
500} 500}
501 501
502static int chmod_common(struct path *path, umode_t mode) 502static int chmod_common(const struct path *path, umode_t mode)
503{ 503{
504 struct inode *inode = path->dentry->d_inode; 504 struct inode *inode = path->dentry->d_inode;
505 struct inode *delegated_inode = NULL; 505 struct inode *delegated_inode = NULL;
@@ -564,7 +564,7 @@ SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode)
564 return sys_fchmodat(AT_FDCWD, filename, mode); 564 return sys_fchmodat(AT_FDCWD, filename, mode);
565} 565}
566 566
567static int chown_common(struct path *path, uid_t user, gid_t group) 567static int chown_common(const struct path *path, uid_t user, gid_t group)
568{ 568{
569 struct inode *inode = path->dentry->d_inode; 569 struct inode *inode = path->dentry->d_inode;
570 struct inode *delegated_inode = NULL; 570 struct inode *delegated_inode = NULL;