search for: space_resv

Displaying 3 results from an estimated 3 matches for "space_resv".

2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
...inux/falloc.h | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/fs/ioctl.c b/fs/ioctl.c index 1d9b9fc..234e26f 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -422,7 +422,7 @@ EXPORT_SYMBOL(generic_block_fiemap); * Only the l_start, l_len and l_whence fields of the 'struct space_resv' * are used here, rest are ignored. */ -int ioctl_preallocate(struct file *filp, void __user *argp) +int ioctl_preallocate(struct file *filp, void __user *argp, int mode) { struct inode *inode = filp->f_path.dentry->d_inode; struct space_resv sr; @@ -443,7 +443,7 @@ int ioctl_pre...
2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
...inux/falloc.h | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/fs/ioctl.c b/fs/ioctl.c index 1d9b9fc..234e26f 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -422,7 +422,7 @@ EXPORT_SYMBOL(generic_block_fiemap); * Only the l_start, l_len and l_whence fields of the 'struct space_resv' * are used here, rest are ignored. */ -int ioctl_preallocate(struct file *filp, void __user *argp) +int ioctl_preallocate(struct file *filp, void __user *argp, int mode) { struct inode *inode = filp->f_path.dentry->d_inode; struct space_resv sr; @@ -443,7 +443,7 @@ int ioctl_pre...
2009 Jan 28
2
[PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
...01-21 21:03:26.217449883 +0100 +++ xfs/fs/compat_ioctl.c 2009-01-27 20:36:59.189424147 +0100 @@ -2765,6 +2765,26 @@ static void compat_ioctl_error(struct fi free_page((unsigned long)path); } +#ifdef BROKEN_X86_ALIGNMENT +/* just account for different alignment */ +static unsigned long copy_to_space_resv(unsigned long arg) +{ + struct space_resv_32 __user *p32 = (void __user *)arg; + struct space_resv __user *p = compat_alloc_user_space(sizeof(*p)); + + if (copy_in_user(&p->l_type, &p32->l_type, sizeof(s16)) || + copy_in_user(&p->l_whence, &p32->l_whence, sizeof(s16...