search for: sys_ftrun

Displaying 1 result from an estimated 1 matches for "sys_ftrun".

2009 Jan 28
2
[PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
...llocate(filp, arg); } return vfs_ioctl(filp, cmd, arg); Index: xfs/fs/open.c =================================================================== --- xfs.orig/fs/open.c 2009-01-21 21:03:27.740294372 +0100 +++ xfs/fs/open.c 2009-01-27 20:41:38.208298998 +0100 @@ -377,63 +377,63 @@ SYSCALL_ALIAS(sys_ftruncate64, SyS_ftrun #endif #endif /* BITS_PER_LONG == 32 */ -SYSCALL_DEFINE(fallocate)(int fd, int mode, loff_t offset, loff_t len) + +int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) { - struct file *file; - struct inode *inode; - long ret = -EINVAL; + struct inode *inode...