summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/inode.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-02-07 16:27:17 -0800
committerEric W. Biederman <ebiederm@xmission.com>2012-09-21 03:13:12 -0700
commit16525e3f146fbba1ae43740c7d3895d4f396a768 (patch)
tree471efe0eb66e6c35603d80079f2ed7c54b6b31c1 /fs/hfsplus/inode.c
parent43b5e4ccd463a5b42e0531c32628ac462081cab8 (diff)
downloadlinux-16525e3f146fbba1ae43740c7d3895d4f396a768.tar.gz
linux-16525e3f146fbba1ae43740c7d3895d4f396a768.tar.bz2
linux-16525e3f146fbba1ae43740c7d3895d4f396a768.zip
userns: Convert hfsplus to use kuid and kgid where appropriate
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/hfsplus/inode.c')
-rw-r--r--fs/hfsplus/inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c
index 3d8b4a675ba0..2172aa5976f5 100644
--- a/fs/hfsplus/inode.c
+++ b/fs/hfsplus/inode.c
@@ -233,12 +233,12 @@ static void hfsplus_get_perms(struct inode *inode,
mode = be16_to_cpu(perms->mode);
- inode->i_uid = be32_to_cpu(perms->owner);
- if (!inode->i_uid && !mode)
+ i_uid_write(inode, be32_to_cpu(perms->owner));
+ if (!i_uid_read(inode) && !mode)
inode->i_uid = sbi->uid;
- inode->i_gid = be32_to_cpu(perms->group);
- if (!inode->i_gid && !mode)
+ i_gid_write(inode, be32_to_cpu(perms->group));
+ if (!i_gid_read(inode) && !mode)
inode->i_gid = sbi->gid;
if (dir) {