···11/*22- * Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved.22+ * Copyright (c) 2004-2005 Silicon Graphics, Inc. All Rights Reserved.33 *44 * This program is free software; you can redistribute it and/or modify it55 * under the terms of version 2 of the GNU General Public License as···5858 __s32 ocount; /* output count pointer */5959} xfs_fsop_bulkreq32_t;60606161-static unsigned long6262-xfs_ioctl32_bulkstat(unsigned long arg)6161+STATIC unsigned long6262+xfs_ioctl32_bulkstat(6363+ unsigned long arg)6364{6465 xfs_fsop_bulkreq32_t __user *p32 = (void __user *)arg;6566 xfs_fsop_bulkreq_t __user *p = compat_alloc_user_space(sizeof(*p));···7978}8079#endif81808282-static long8383-__xfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)8181+STATIC long8282+__linvfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)8483{8584 int error;8686- struct inode *inode = f->f_dentry->d_inode;8585+ struct inode *inode = f->f_dentry->d_inode;8786 vnode_t *vp = LINVFS_GET_VP(inode);88878988 switch (cmd) {···153152 return error;154153}155154156156-long xfs_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg)155155+long156156+linvfs_compat_ioctl(157157+ struct file *f,158158+ unsigned cmd,159159+ unsigned long arg)157160{158158- return __xfs_compat_ioctl(0, f, cmd, arg);161161+ return __linvfs_compat_ioctl(0, f, cmd, arg);159162}160163161161-long xfs_compat_invis_ioctl(struct file *f, unsigned cmd, unsigned long arg)164164+long165165+linvfs_compat_invis_ioctl(166166+ struct file *f,167167+ unsigned cmd,168168+ unsigned long arg)162169{163163- return __xfs_compat_ioctl(IO_INVIS, f, cmd, arg);170170+ return __linvfs_compat_ioctl(IO_INVIS, f, cmd, arg);164171}
+3-3
fs/xfs/linux-2.6/xfs_ioctl32.h
···11/*22- * Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved.22+ * Copyright (c) 2004-2005 Silicon Graphics, Inc. All Rights Reserved.33 *44 * This program is free software; you can redistribute it and/or modify it55 * under the terms of version 2 of the GNU General Public License as···3030 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/3131 */32323333-long xfs_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg);3434-long xfs_compat_invis_ioctl(struct file *f, unsigned cmd, unsigned long arg);3333+long linvfs_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg);3434+long linvfs_compat_invis_ioctl(struct file *f, unsigned cmd, unsigned long arg);
+1-2
fs/xfs/linux-2.6/xfs_super.c
···11/*22- * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.22+ * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.33 *44 * This program is free software; you can redistribute it and/or modify it55 * under the terms of version 2 of the GNU General Public License as···6666#include "xfs_buf_item.h"6767#include "xfs_utils.h"6868#include "xfs_version.h"6969-#include "xfs_ioctl32.h"70697170#include <linux/namei.h>7271#include <linux/init.h>
+3-1
fs/xfs/xfs_iomap.c
···278278 switch (flags & (BMAPI_WRITE|BMAPI_ALLOCATE|BMAPI_UNWRITTEN)) {279279 case BMAPI_WRITE:280280 /* If we found an extent, return it */281281- if (nimaps && (imap.br_startblock != HOLESTARTBLOCK)) {281281+ if (nimaps &&282282+ (imap.br_startblock != HOLESTARTBLOCK) && 283283+ (imap.br_startblock != DELAYSTARTBLOCK)) {282284 xfs_iomap_map_trace(XFS_IOMAP_WRITE_MAP, io,283285 offset, count, iomapp, &imap, flags);284286 break;