diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -222,7 +222,7 @@ SYSCALL_DEFINE2(ftruncate64, unsigned int, fd, loff_t, length) | |||
222 | #endif /* BITS_PER_LONG == 32 */ | 222 | #endif /* BITS_PER_LONG == 32 */ |
223 | 223 | ||
224 | 224 | ||
225 | int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) | 225 | int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len) |
226 | { | 226 | { |
227 | struct inode *inode = file_inode(file); | 227 | struct inode *inode = file_inode(file); |
228 | long ret; | 228 | long ret; |
@@ -298,6 +298,7 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) | |||
298 | sb_end_write(inode->i_sb); | 298 | sb_end_write(inode->i_sb); |
299 | return ret; | 299 | return ret; |
300 | } | 300 | } |
301 | EXPORT_SYMBOL_GPL(vfs_fallocate); | ||
301 | 302 | ||
302 | SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) | 303 | SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) |
303 | { | 304 | { |
@@ -305,7 +306,7 @@ SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) | |||
305 | int error = -EBADF; | 306 | int error = -EBADF; |
306 | 307 | ||
307 | if (f.file) { | 308 | if (f.file) { |
308 | error = do_fallocate(f.file, mode, offset, len); | 309 | error = vfs_fallocate(f.file, mode, offset, len); |
309 | fdput(f); | 310 | fdput(f); |
310 | } | 311 | } |
311 | return error; | 312 | return error; |