aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/include/linux/lvfs.h
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2013-07-15 22:27:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 12:24:04 -0700
commit4b1a25f06b30b203b35c227b163c8191b091dad8 (patch)
tree96a98f1c2c315f3237602913b64403dc708241c7 /drivers/staging/lustre/lustre/include/linux/lvfs.h
parentstaging/lustre/llite: fix build erorr if CONFIG_FS_POSIX_ACL is off (diff)
downloadlinux-dev-4b1a25f06b30b203b35c227b163c8191b091dad8.tar.xz
linux-dev-4b1a25f06b30b203b35c227b163c8191b091dad8.zip
staging/lustre: fix build when CONFIG_UIDGID_STRICT_TYPE_CHECKS is on
kuid_t/kgid_t are wrappered when CONFIG_UIDGID_STRICT_TYPE_CHECKS is on. Lustre build is broken because we always treat them as plain __u32. The patch fixes it. Internally, Lustre always use __u32 uid/gid, and convert to kuid_t/kgid_t when necessary. Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/include/linux/lvfs.h')
-rw-r--r--drivers/staging/lustre/lustre/include/linux/lvfs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/lustre/lustre/include/linux/lvfs.h b/drivers/staging/lustre/lustre/include/linux/lvfs.h
index eb59ac7d5946..e61f1b87f822 100644
--- a/drivers/staging/lustre/lustre/include/linux/lvfs.h
+++ b/drivers/staging/lustre/lustre/include/linux/lvfs.h
@@ -54,10 +54,10 @@
/* simple.c */
struct lvfs_ucred {
- __u32 luc_uid;
- __u32 luc_gid;
- __u32 luc_fsuid;
- __u32 luc_fsgid;
+ kuid_t luc_uid;
+ kgid_t luc_gid;
+ kuid_t luc_fsuid;
+ kgid_t luc_fsgid;
kernel_cap_t luc_cap;
__u32 luc_umask;
struct group_info *luc_ginfo;