summaryrefslogtreecommitdiffstats
path: root/fs/logfs/inode.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-02-10 11:41:28 -0800
committerEric W. Biederman <ebiederm@xmission.com>2012-09-21 03:13:13 -0700
commit1a0a994ebe851206d02469782da6c1f9a0547d7d (patch)
treee138dc80486ef602ca6b0f157ef5336397e63c77 /fs/logfs/inode.c
parentba64e2b9e368fbe588ed5e3bb1494cc1dc4664a4 (diff)
downloadlinux-1a0a994ebe851206d02469782da6c1f9a0547d7d.tar.bz2
userns: Convert logfs to use kuid/kgid where appropriate
Cc: Joern Engel <joern@logfs.org> Cc: Prasad Joshi <prasadjoshi.linux@gmail.com> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/logfs/inode.c')
-rw-r--r--fs/logfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/logfs/inode.c b/fs/logfs/inode.c
index a422f42238b2..43f61c2013f9 100644
--- a/fs/logfs/inode.c
+++ b/fs/logfs/inode.c
@@ -192,8 +192,8 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode)
li->li_height = 0;
li->li_used_bytes = 0;
li->li_block = NULL;
- inode->i_uid = 0;
- inode->i_gid = 0;
+ i_uid_write(inode, 0);
+ i_gid_write(inode, 0);
inode->i_size = 0;
inode->i_blocks = 0;
inode->i_ctime = CURRENT_TIME;