|
@@ -222,7 +222,7 @@ SYSCALL_DEFINE2(ftruncate64, unsigned int, fd, loff_t, length)
|
|
|
#endif /* BITS_PER_LONG == 32 */
|
|
|
|
|
|
|
|
|
-int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
|
|
|
+int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
|
|
|
{
|
|
|
struct inode *inode = file_inode(file);
|
|
|
long ret;
|
|
@@ -298,6 +298,7 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
|
|
|
sb_end_write(inode->i_sb);
|
|
|
return ret;
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(vfs_fallocate);
|
|
|
|
|
|
SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len)
|
|
|
{
|
|
@@ -305,7 +306,7 @@ SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len)
|
|
|
int error = -EBADF;
|
|
|
|
|
|
if (f.file) {
|
|
|
- error = do_fallocate(f.file, mode, offset, len);
|
|
|
+ error = vfs_fallocate(f.file, mode, offset, len);
|
|
|
fdput(f);
|
|
|
}
|
|
|
return error;
|