···1/*2- * Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved.3 *4 * This program is free software; you can redistribute it and/or modify it5 * under the terms of version 2 of the GNU General Public License as···58 __s32 ocount; /* output count pointer */59} xfs_fsop_bulkreq32_t;6061-static unsigned long62-xfs_ioctl32_bulkstat(unsigned long arg)063{64 xfs_fsop_bulkreq32_t __user *p32 = (void __user *)arg;65 xfs_fsop_bulkreq_t __user *p = compat_alloc_user_space(sizeof(*p));···79}80#endif8182-static long83-__xfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)84{85 int error;86- struct inode *inode = f->f_dentry->d_inode;87 vnode_t *vp = LINVFS_GET_VP(inode);8889 switch (cmd) {···153 return error;154}155156-long xfs_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg)0000157{158- return __xfs_compat_ioctl(0, f, cmd, arg);159}160161-long xfs_compat_invis_ioctl(struct file *f, unsigned cmd, unsigned long arg)0000162{163- return __xfs_compat_ioctl(IO_INVIS, f, cmd, arg);164}
···1/*2+ * Copyright (c) 2004-2005 Silicon Graphics, Inc. All Rights Reserved.3 *4 * This program is free software; you can redistribute it and/or modify it5 * under the terms of version 2 of the GNU General Public License as···58 __s32 ocount; /* output count pointer */59} xfs_fsop_bulkreq32_t;6061+STATIC unsigned long62+xfs_ioctl32_bulkstat(63+ unsigned long arg)64{65 xfs_fsop_bulkreq32_t __user *p32 = (void __user *)arg;66 xfs_fsop_bulkreq_t __user *p = compat_alloc_user_space(sizeof(*p));···78}79#endif8081+STATIC long82+__linvfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)83{84 int error;85+ struct inode *inode = f->f_dentry->d_inode;86 vnode_t *vp = LINVFS_GET_VP(inode);8788 switch (cmd) {···152 return error;153}154155+long156+linvfs_compat_ioctl(157+ struct file *f,158+ unsigned cmd,159+ unsigned long arg)160{161+ return __linvfs_compat_ioctl(0, f, cmd, arg);162}163164+long165+linvfs_compat_invis_ioctl(166+ struct file *f,167+ unsigned cmd,168+ unsigned long arg)169{170+ return __linvfs_compat_ioctl(IO_INVIS, f, cmd, arg);171}
+3-3
fs/xfs/linux-2.6/xfs_ioctl32.h
···1/*2- * Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved.3 *4 * This program is free software; you can redistribute it and/or modify it5 * under the terms of version 2 of the GNU General Public License as···30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/31 */3233-long xfs_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg);34-long xfs_compat_invis_ioctl(struct file *f, unsigned cmd, unsigned long arg);
···1/*2+ * Copyright (c) 2004-2005 Silicon Graphics, Inc. All Rights Reserved.3 *4 * This program is free software; you can redistribute it and/or modify it5 * under the terms of version 2 of the GNU General Public License as···30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/31 */3233+long linvfs_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg);34+long linvfs_compat_invis_ioctl(struct file *f, unsigned cmd, unsigned long arg);
+1-2
fs/xfs/linux-2.6/xfs_super.c
···1/*2- * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.3 *4 * This program is free software; you can redistribute it and/or modify it5 * under the terms of version 2 of the GNU General Public License as···66#include "xfs_buf_item.h"67#include "xfs_utils.h"68#include "xfs_version.h"69-#include "xfs_ioctl32.h"7071#include <linux/namei.h>72#include <linux/init.h>
···1/*2+ * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.3 *4 * This program is free software; you can redistribute it and/or modify it5 * under the terms of version 2 of the GNU General Public License as···66#include "xfs_buf_item.h"67#include "xfs_utils.h"68#include "xfs_version.h"06970#include <linux/namei.h>71#include <linux/init.h>
+3-1
fs/xfs/xfs_iomap.c
···278 switch (flags & (BMAPI_WRITE|BMAPI_ALLOCATE|BMAPI_UNWRITTEN)) {279 case BMAPI_WRITE:280 /* If we found an extent, return it */281- if (nimaps && (imap.br_startblock != HOLESTARTBLOCK)) {00282 xfs_iomap_map_trace(XFS_IOMAP_WRITE_MAP, io,283 offset, count, iomapp, &imap, flags);284 break;
···278 switch (flags & (BMAPI_WRITE|BMAPI_ALLOCATE|BMAPI_UNWRITTEN)) {279 case BMAPI_WRITE:280 /* If we found an extent, return it */281+ if (nimaps &&282+ (imap.br_startblock != HOLESTARTBLOCK) && 283+ (imap.br_startblock != DELAYSTARTBLOCK)) {284 xfs_iomap_map_trace(XFS_IOMAP_WRITE_MAP, io,285 offset, count, iomapp, &imap, flags);286 break;