diff options
author | Dwight Engen <dwight.engen@oracle.com> | 2013-08-15 14:08:01 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-15 15:22:40 -0400 |
commit | 7aab1b28879d2280c9a0e50000e4ae153cfac55a (patch) | |
tree | e30dfe89a43849a9eecece13e721e89528ff13ce /fs/xfs/xfs_quota.h | |
parent | fd5e2aa8653665ae1cc60f7aca1069abdbcad3f6 (diff) |
xfs: convert kuid_t to/from uid_t for internal structures
Use uint32 from init_user_ns for xfs internal uid/gid
representation in xfs_icdinode, xfs_dqid_t.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_quota.h')
-rw-r--r-- | fs/xfs/xfs_quota.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h index fc2fed67a58d..66522da04d6e 100644 --- a/fs/xfs/xfs_quota.h +++ b/fs/xfs/xfs_quota.h | |||
@@ -87,8 +87,9 @@ extern int xfs_trans_reserve_quota_bydquots(struct xfs_trans *, | |||
87 | struct xfs_mount *, struct xfs_dquot *, | 87 | struct xfs_mount *, struct xfs_dquot *, |
88 | struct xfs_dquot *, struct xfs_dquot *, long, long, uint); | 88 | struct xfs_dquot *, struct xfs_dquot *, long, long, uint); |
89 | 89 | ||
90 | extern int xfs_qm_vop_dqalloc(struct xfs_inode *, uid_t, gid_t, prid_t, uint, | 90 | extern int xfs_qm_vop_dqalloc(struct xfs_inode *, xfs_dqid_t, xfs_dqid_t, |
91 | struct xfs_dquot **, struct xfs_dquot **, struct xfs_dquot **); | 91 | prid_t, uint, struct xfs_dquot **, struct xfs_dquot **, |
92 | struct xfs_dquot **); | ||
92 | extern void xfs_qm_vop_create_dqattach(struct xfs_trans *, struct xfs_inode *, | 93 | extern void xfs_qm_vop_create_dqattach(struct xfs_trans *, struct xfs_inode *, |
93 | struct xfs_dquot *, struct xfs_dquot *, struct xfs_dquot *); | 94 | struct xfs_dquot *, struct xfs_dquot *, struct xfs_dquot *); |
94 | extern int xfs_qm_vop_rename_dqattach(struct xfs_inode **); | 95 | extern int xfs_qm_vop_rename_dqattach(struct xfs_inode **); |
@@ -109,9 +110,9 @@ extern void xfs_qm_unmount_quotas(struct xfs_mount *); | |||
109 | 110 | ||
110 | #else | 111 | #else |
111 | static inline int | 112 | static inline int |
112 | xfs_qm_vop_dqalloc(struct xfs_inode *ip, uid_t uid, gid_t gid, prid_t prid, | 113 | xfs_qm_vop_dqalloc(struct xfs_inode *ip, xfs_dqid_t uid, xfs_dqid_t gid, |
113 | uint flags, struct xfs_dquot **udqp, struct xfs_dquot **gdqp, | 114 | prid_t prid, uint flags, struct xfs_dquot **udqp, |
114 | struct xfs_dquot **pdqp) | 115 | struct xfs_dquot **gdqp, struct xfs_dquot **pdqp) |
115 | { | 116 | { |
116 | *udqp = NULL; | 117 | *udqp = NULL; |
117 | *gdqp = NULL; | 118 | *gdqp = NULL; |