[XFS] Fix merge failures
authorLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Mon, 29 Dec 2008 05:47:18 +0000 (16:47 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Mon, 29 Dec 2008 05:47:18 +0000 (16:47 +1100)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6

Conflicts:

fs/xfs/linux-2.6/xfs_cred.h
fs/xfs/linux-2.6/xfs_globals.h
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/xfs_vnodeops.h

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
1  2 
fs/xfs/linux-2.6/xfs_cred.h
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_vnodeops.h
include/linux/fs.h

  /*
   * Credentials
   */
- typedef struct cred {
-        /* EMPTY */
- } cred_t;
+ typedef const struct cred cred_t;
  
 -extern cred_t *sys_cred;
 -
 -/* this is a hack.. (assumes sys_cred is the only cred_t in the system) */
 -static inline int capable_cred(cred_t *cr, int cid)
 -{
 -      return (cr == sys_cred) ? 1 : capable(cid);
 -}
 -
  #endif  /* __XFS_CRED_H__ */
@@@ -314,7 -322,7 +315,7 @@@ xfs_open_by_handle
        mntget(parfilp->f_path.mnt);
  
        /* Create file pointer. */
-       filp = dentry_open(dentry, parfilp->f_path.mnt, hreq->oflags);
 -      filp = dentry_open(dentry, parfilp->f_path.mnt, hreq.oflags, cred);
++      filp = dentry_open(dentry, parfilp->f_path.mnt, hreq->oflags, cred);
        if (IS_ERR(filp)) {
                put_unused_fd(new_fd);
                return -XFS_ERROR(-PTR_ERR(filp));
@@@ -502,9 -490,19 +502,9 @@@ void              xfs_ireclaim(xfs_inode_t *)
  /*
   * xfs_inode.c prototypes.
   */
 -int           xfs_itobp(struct xfs_mount *, struct xfs_trans *,
 -                        xfs_inode_t *, struct xfs_dinode **, struct xfs_buf **,
 -                        xfs_daddr_t, uint, uint);
 -int           xfs_iread(struct xfs_mount *, struct xfs_trans *, xfs_ino_t,
 -                        xfs_inode_t **, xfs_daddr_t, uint);
 -int           xfs_iread_extents(struct xfs_trans *, xfs_inode_t *, int);
  int           xfs_ialloc(struct xfs_trans *, xfs_inode_t *, mode_t,
-                          xfs_nlink_t, xfs_dev_t, struct cred *, xfs_prid_t,
+                          xfs_nlink_t, xfs_dev_t, cred_t *, xfs_prid_t,
                           int, struct xfs_buf **, boolean_t *, xfs_inode_t **);
 -void          xfs_dinode_from_disk(struct xfs_icdinode *,
 -                                   struct xfs_dinode_core *);
 -void          xfs_dinode_to_disk(struct xfs_dinode_core *,
 -                                 struct xfs_icdinode *);
  
  uint          xfs_ip2xflags(struct xfs_inode *);
  uint          xfs_dic2xflags(struct xfs_dinode *);
Simple merge
Simple merge