summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/internal.h1
-rw-r--r--fs/open.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h
index c797480cbd6f..980d005b21b4 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -119,6 +119,7 @@ extern struct file *do_filp_open(int dfd, struct filename *pathname,
119extern struct file *do_file_open_root(struct dentry *, struct vfsmount *, 119extern struct file *do_file_open_root(struct dentry *, struct vfsmount *,
120 const char *, const struct open_flags *); 120 const char *, const struct open_flags *);
121 121
122long do_sys_ftruncate(unsigned int fd, loff_t length, int small);
122long do_faccessat(int dfd, const char __user *filename, int mode); 123long do_faccessat(int dfd, const char __user *filename, int mode);
123int do_fchmodat(int dfd, const char __user *filename, umode_t mode); 124int do_fchmodat(int dfd, const char __user *filename, umode_t mode);
124int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, 125int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group,
diff --git a/fs/open.c b/fs/open.c
index 7b2eccb541f2..b3f3b2cd9f19 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -162,7 +162,7 @@ COMPAT_SYSCALL_DEFINE2(truncate, const char __user *, path, compat_off_t, length
162} 162}
163#endif 163#endif
164 164
165static long do_sys_ftruncate(unsigned int fd, loff_t length, int small) 165long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
166{ 166{
167 struct inode *inode; 167 struct inode *inode;
168 struct dentry *dentry; 168 struct dentry *dentry;