diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-13 16:23:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-13 16:23:39 -0400 |
commit | 09a9ad6a1ff86836e5280c39300176c4758bb459 (patch) | |
tree | 27967b60cbb53def07f4ceb8365efb8206c2a777 /fs | |
parent | 9db908806b85c1430150fbafe269a7b21b07d15d (diff) | |
parent | e9069f470803eeb5e243a05bc717452c6218bd71 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull user namespace compile fixes from Eric W Biederman:
"This tree contains three trivial fixes. One compiler warning, one
thinko fix, and one build fix"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/tree-log.c | 4 | ||||
-rw-r--r-- | fs/xattr_acl.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index e9ebb472b28b..81e407d9677a 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -2952,8 +2952,8 @@ static void fill_inode_item(struct btrfs_trans_handle *trans, | |||
2952 | struct btrfs_inode_item *item, | 2952 | struct btrfs_inode_item *item, |
2953 | struct inode *inode, int log_inode_only) | 2953 | struct inode *inode, int log_inode_only) |
2954 | { | 2954 | { |
2955 | btrfs_set_inode_uid(leaf, item, inode->i_uid); | 2955 | btrfs_set_inode_uid(leaf, item, i_uid_read(inode)); |
2956 | btrfs_set_inode_gid(leaf, item, inode->i_gid); | 2956 | btrfs_set_inode_gid(leaf, item, i_gid_read(inode)); |
2957 | btrfs_set_inode_mode(leaf, item, inode->i_mode); | 2957 | btrfs_set_inode_mode(leaf, item, inode->i_mode); |
2958 | btrfs_set_inode_nlink(leaf, item, inode->i_nlink); | 2958 | btrfs_set_inode_nlink(leaf, item, inode->i_nlink); |
2959 | 2959 | ||
diff --git a/fs/xattr_acl.c b/fs/xattr_acl.c index 11efd830b5f5..9fbea87fdb6e 100644 --- a/fs/xattr_acl.c +++ b/fs/xattr_acl.c | |||
@@ -45,7 +45,7 @@ static void posix_acl_fix_xattr_userns( | |||
45 | break; | 45 | break; |
46 | case ACL_GROUP: | 46 | case ACL_GROUP: |
47 | gid = make_kgid(from, le32_to_cpu(entry->e_id)); | 47 | gid = make_kgid(from, le32_to_cpu(entry->e_id)); |
48 | entry->e_id = cpu_to_le32(from_kuid(to, uid)); | 48 | entry->e_id = cpu_to_le32(from_kgid(to, gid)); |
49 | break; | 49 | break; |
50 | default: | 50 | default: |
51 | break; | 51 | break; |