diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-02-10 14:11:19 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-09-21 06:13:10 -0400 |
commit | d001b0536562f816af7eb9947e49de58f504958a (patch) | |
tree | 0fd9465dd0e9adf70b02987e1813ad6e30b7398c /fs | |
parent | 5d4ea4da6a6fb5c91e433db4addf3bb23866d821 (diff) |
userns: Convert exofs to use kuid/kgid where appropriate
Cc: Benny Halevy <bhalevy@tonian.com>
Acked-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exofs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c index 5badb0c039de..190c3d69e569 100644 --- a/fs/exofs/inode.c +++ b/fs/exofs/inode.c | |||
@@ -1163,8 +1163,8 @@ struct inode *exofs_iget(struct super_block *sb, unsigned long ino) | |||
1163 | 1163 | ||
1164 | /* copy stuff from on-disk struct to in-memory struct */ | 1164 | /* copy stuff from on-disk struct to in-memory struct */ |
1165 | inode->i_mode = le16_to_cpu(fcb.i_mode); | 1165 | inode->i_mode = le16_to_cpu(fcb.i_mode); |
1166 | inode->i_uid = le32_to_cpu(fcb.i_uid); | 1166 | i_uid_write(inode, le32_to_cpu(fcb.i_uid)); |
1167 | inode->i_gid = le32_to_cpu(fcb.i_gid); | 1167 | i_gid_write(inode, le32_to_cpu(fcb.i_gid)); |
1168 | set_nlink(inode, le16_to_cpu(fcb.i_links_count)); | 1168 | set_nlink(inode, le16_to_cpu(fcb.i_links_count)); |
1169 | inode->i_ctime.tv_sec = (signed)le32_to_cpu(fcb.i_ctime); | 1169 | inode->i_ctime.tv_sec = (signed)le32_to_cpu(fcb.i_ctime); |
1170 | inode->i_atime.tv_sec = (signed)le32_to_cpu(fcb.i_atime); | 1170 | inode->i_atime.tv_sec = (signed)le32_to_cpu(fcb.i_atime); |
@@ -1376,8 +1376,8 @@ static int exofs_update_inode(struct inode *inode, int do_sync) | |||
1376 | fcb = &args->fcb; | 1376 | fcb = &args->fcb; |
1377 | 1377 | ||
1378 | fcb->i_mode = cpu_to_le16(inode->i_mode); | 1378 | fcb->i_mode = cpu_to_le16(inode->i_mode); |
1379 | fcb->i_uid = cpu_to_le32(inode->i_uid); | 1379 | fcb->i_uid = cpu_to_le32(i_uid_read(inode)); |
1380 | fcb->i_gid = cpu_to_le32(inode->i_gid); | 1380 | fcb->i_gid = cpu_to_le32(i_gid_read(inode)); |
1381 | fcb->i_links_count = cpu_to_le16(inode->i_nlink); | 1381 | fcb->i_links_count = cpu_to_le16(inode->i_nlink); |
1382 | fcb->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); | 1382 | fcb->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); |
1383 | fcb->i_atime = cpu_to_le32(inode->i_atime.tv_sec); | 1383 | fcb->i_atime = cpu_to_le32(inode->i_atime.tv_sec); |