]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xfs: propagate umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 06:50:15 +0000 (02:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:55:00 +0000 (22:55 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_ialloc.h
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_iops.c
fs/xfs/xfs_utils.c
fs/xfs/xfs_utils.h
fs/xfs/xfs_vnodeops.c
fs/xfs/xfs_vnodeops.h

index 169380e66057940c43de0366500f246b3580b6ce..dad1a31aa4fca504c8f4103e85e4b027793d791a 100644 (file)
@@ -447,7 +447,7 @@ STATIC xfs_buf_t *                  /* allocation group buffer */
 xfs_ialloc_ag_select(
        xfs_trans_t     *tp,            /* transaction pointer */
        xfs_ino_t       parent,         /* parent directory inode number */
-       mode_t          mode,           /* bits set to indicate file type */
+       umode_t         mode,           /* bits set to indicate file type */
        int             okalloc)        /* ok to allocate more space */
 {
        xfs_buf_t       *agbp;          /* allocation group header buffer */
@@ -640,7 +640,7 @@ int
 xfs_dialloc(
        xfs_trans_t     *tp,            /* transaction pointer */
        xfs_ino_t       parent,         /* parent inode (directory) */
-       mode_t          mode,           /* mode bits for new inode */
+       umode_t         mode,           /* mode bits for new inode */
        int             okalloc,        /* ok to allocate more space */
        xfs_buf_t       **IO_agbp,      /* in/out ag header's buffer */
        boolean_t       *alloc_done,    /* true if we needed to replenish
index bb5385475e1f904b74bf24ec533b2640e96b867e..666a037398d6a1e530ae9e9af1b946043a13772c 100644 (file)
@@ -81,7 +81,7 @@ int                                   /* error */
 xfs_dialloc(
        struct xfs_trans *tp,           /* transaction pointer */
        xfs_ino_t       parent,         /* parent inode (directory) */
-       mode_t          mode,           /* mode bits for new inode */
+       umode_t         mode,           /* mode bits for new inode */
        int             okalloc,        /* ok to allocate more space */
        struct xfs_buf  **agbp,         /* buf for a.g. inode header */
        boolean_t       *alloc_done,    /* an allocation was done to replenish
index 755ee8164880fe4122bac9de94119f1c7086a9b7..9dda7cc328485014eb86baf48a013f3833faf27f 100644 (file)
@@ -961,7 +961,7 @@ int
 xfs_ialloc(
        xfs_trans_t     *tp,
        xfs_inode_t     *pip,
-       mode_t          mode,
+       umode_t         mode,
        xfs_nlink_t     nlink,
        xfs_dev_t       rdev,
        prid_t          prid,
@@ -1002,7 +1002,7 @@ xfs_ialloc(
                return error;
        ASSERT(ip != NULL);
 
-       ip->i_d.di_mode = (__uint16_t)mode;
+       ip->i_d.di_mode = mode;
        ip->i_d.di_onlink = 0;
        ip->i_d.di_nlink = nlink;
        ASSERT(ip->i_d.di_nlink == nlink);
index b4cd4739f98e74b2e256295b48fe64e285b320b0..f0e6b151ba37e4d0c8cc92f12a84ac03848dd0a1 100644 (file)
@@ -481,7 +481,7 @@ void                xfs_inode_free(struct xfs_inode *ip);
 /*
  * xfs_inode.c prototypes.
  */
-int            xfs_ialloc(struct xfs_trans *, xfs_inode_t *, mode_t,
+int            xfs_ialloc(struct xfs_trans *, xfs_inode_t *, umode_t,
                           xfs_nlink_t, xfs_dev_t, prid_t, int,
                           struct xfs_buf **, boolean_t *, xfs_inode_t **);
 
index c2cf9bb608631d56732b89306d6c4f7a0aee3679..f9babd17922377e422024ac07d9910cb78bc1708 100644 (file)
@@ -366,7 +366,7 @@ xfs_vn_symlink(
        struct xfs_inode *cip = NULL;
        struct xfs_name name;
        int             error;
-       mode_t          mode;
+       umode_t         mode;
 
        mode = S_IFLNK |
                (irix_symlink_mode ? 0777 & ~current_umask() : S_IRWXUGO);
index 8b32d1a4c5a1c168043eaeced7949872bf19536b..89dbb4a50872b46c4c72b118e3dea102422b6a58 100644 (file)
@@ -53,7 +53,7 @@ xfs_dir_ialloc(
                                           output: may be a new transaction. */
        xfs_inode_t     *dp,            /* directory within whose allocate
                                           the inode. */
-       mode_t          mode,
+       umode_t         mode,
        xfs_nlink_t     nlink,
        xfs_dev_t       rdev,
        prid_t          prid,           /* project id */
index 456fca314933241bdc90c12e07f03d0c6a8efcd9..5eeab4690cfe19a5f9cdb92f94fe9b04dd34fe8b 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef __XFS_UTILS_H__
 #define __XFS_UTILS_H__
 
-extern int xfs_dir_ialloc(xfs_trans_t **, xfs_inode_t *, mode_t, xfs_nlink_t,
+extern int xfs_dir_ialloc(xfs_trans_t **, xfs_inode_t *, umode_t, xfs_nlink_t,
                                xfs_dev_t, prid_t, int, xfs_inode_t **, int *);
 extern int xfs_droplink(xfs_trans_t *, xfs_inode_t *);
 extern int xfs_bumplink(xfs_trans_t *, xfs_inode_t *);
index ce9268a2f56be487a161b950d36fc88590877c29..f2fea868d4db5da562804b2a0a9bd212608af058 100644 (file)
@@ -822,7 +822,7 @@ int
 xfs_create(
        xfs_inode_t             *dp,
        struct xfs_name         *name,
-       mode_t                  mode,
+       umode_t                 mode,
        xfs_dev_t               rdev,
        xfs_inode_t             **ipp)
 {
@@ -1481,7 +1481,7 @@ xfs_symlink(
        xfs_inode_t             *dp,
        struct xfs_name         *link_name,
        const char              *target_path,
-       mode_t                  mode,
+       umode_t                 mode,
        xfs_inode_t             **ipp)
 {
        xfs_mount_t             *mp = dp->i_mount;
index 35d3d513e1e98f24ea6b93895daf3bf197d50f86..0c877cbde142f8427690fd519264c68951c10b18 100644 (file)
@@ -26,7 +26,7 @@ int xfs_release(struct xfs_inode *ip);
 int xfs_inactive(struct xfs_inode *ip);
 int xfs_lookup(struct xfs_inode *dp, struct xfs_name *name,
                struct xfs_inode **ipp, struct xfs_name *ci_name);
-int xfs_create(struct xfs_inode *dp, struct xfs_name *name, mode_t mode,
+int xfs_create(struct xfs_inode *dp, struct xfs_name *name, umode_t mode,
                xfs_dev_t rdev, struct xfs_inode **ipp);
 int xfs_remove(struct xfs_inode *dp, struct xfs_name *name,
                struct xfs_inode *ip);
@@ -35,7 +35,7 @@ int xfs_link(struct xfs_inode *tdp, struct xfs_inode *sip,
 int xfs_readdir(struct xfs_inode       *dp, void *dirent, size_t bufsize,
                       xfs_off_t *offset, filldir_t filldir);
 int xfs_symlink(struct xfs_inode *dp, struct xfs_name *link_name,
-               const char *target_path, mode_t mode, struct xfs_inode **ipp);
+               const char *target_path, umode_t mode, struct xfs_inode **ipp);
 int xfs_set_dmattrs(struct xfs_inode *ip, u_int evmask, u_int16_t state);
 int xfs_change_file_space(struct xfs_inode *ip, int cmd,
                xfs_flock64_t *bf, xfs_off_t offset, int attr_flags);