diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2011-05-14 12:06:36 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2011-05-14 12:06:36 +0200 | 
| commit | a18f22a968de17b29f2310cdb7ba69163e65ec15 (patch) | |
| tree | a7d56d88fad5e444d7661484109758a2f436129e /fs/xfs/linux-2.6/xfs_ioctl.c | |
| parent | a1c57e0fec53defe745e64417eacdbd3618c3e66 (diff) | |
| parent | 798778b8653f64b7b2162ac70eca10367cff6ce8 (diff) | |
Merge branch 'consolidate-clksrc-i8253' of master.kernel.org:~rmk/linux-2.6-arm into timers/clocksource
Conflicts:
	arch/ia64/kernel/cyclone.c
	arch/mips/kernel/i8253.c
	arch/x86/kernel/i8253.c
Reason: Resolve conflicts so further cleanups do not conflict further
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl.c')
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 15 | 
1 files changed, 12 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index f5e2a19e0f8e..acca2c5ca3fa 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c @@ -624,6 +624,10 @@ xfs_ioc_space(  	if (filp->f_flags & (O_NDELAY|O_NONBLOCK))  		attr_flags |= XFS_ATTR_NONBLOCK; + +	if (filp->f_flags & O_DSYNC) +		attr_flags |= XFS_ATTR_SYNC; +  	if (ioflags & IO_INVIS)  		attr_flags |= XFS_ATTR_DMI; @@ -695,14 +699,19 @@ xfs_ioc_fsgeometry_v1(  	xfs_mount_t		*mp,  	void			__user *arg)  { -	xfs_fsop_geom_v1_t	fsgeo; +	xfs_fsop_geom_t         fsgeo;  	int			error; -	error = xfs_fs_geometry(mp, (xfs_fsop_geom_t *)&fsgeo, 3); +	error = xfs_fs_geometry(mp, &fsgeo, 3);  	if (error)  		return -error; -	if (copy_to_user(arg, &fsgeo, sizeof(fsgeo))) +	/* +	 * Caller should have passed an argument of type +	 * xfs_fsop_geom_v1_t.  This is a proper subset of the +	 * xfs_fsop_geom_t that xfs_fs_geometry() fills in. +	 */ +	if (copy_to_user(arg, &fsgeo, sizeof(xfs_fsop_geom_v1_t)))  		return -XFS_ERROR(EFAULT);  	return 0;  }  | 
