From: Dmitry Monakhov Date: Thu, 4 Mar 2010 14:30:57 +0000 (+0300) Subject: 9p: replace inode uid,gid,mode initialization with helper function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=217f206d68e12285d55d05678e361221ebebd046;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 9p: replace inode uid,gid,mode initialization with helper function Signed-off-by: Dmitry Monakhov Signed-off-by: Al Viro --- diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index f2434fc9d2c4..6d4d86187c55 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -253,9 +253,7 @@ struct inode *v9fs_get_inode(struct super_block *sb, int mode) return ERR_PTR(-ENOMEM); } - inode->i_mode = mode; - inode->i_uid = current_fsuid(); - inode->i_gid = current_fsgid(); + inode_init_owner(inode, NULL, mode); inode->i_blocks = 0; inode->i_rdev = 0; inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;