diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-03-04 09:30:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-21 18:31:23 -0400 |
commit | 217f206d68e12285d55d05678e361221ebebd046 (patch) | |
tree | 77d5f4448cd4b8ffe5fafee3d07911d235763af3 /fs/9p | |
parent | a1bd120d13e586ea1c424048fd2c8420a442852a (diff) |
9p: replace inode uid,gid,mode initialization with helper function
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) | |||
253 | return ERR_PTR(-ENOMEM); | 253 | return ERR_PTR(-ENOMEM); |
254 | } | 254 | } |
255 | 255 | ||
256 | inode->i_mode = mode; | 256 | inode_init_owner(inode, NULL, mode); |
257 | inode->i_uid = current_fsuid(); | ||
258 | inode->i_gid = current_fsgid(); | ||
259 | inode->i_blocks = 0; | 257 | inode->i_blocks = 0; |
260 | inode->i_rdev = 0; | 258 | inode->i_rdev = 0; |
261 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 259 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |