diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-03-04 15:32:17 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-22 00:31:25 +0200 |
commit | 6a9e652c88fad648ea088ac07dbc671a9813f75e (patch) | |
tree | d3462e1e4c24eb12a20dbc65b3d3cda3ce713611 /fs/omfs/inode.c | |
parent | bfs: replace inode uid,gid,mode initialization with helper function (diff) | |
download | linux-6a9e652c88fad648ea088ac07dbc671a9813f75e.tar.xz linux-6a9e652c88fad648ea088ac07dbc671a9813f75e.zip |
omfs: 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/omfs/inode.c')
-rw-r--r-- | fs/omfs/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index b44bb835e8ea..089839a6cc64 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c @@ -37,9 +37,7 @@ struct inode *omfs_new_inode(struct inode *dir, int mode) goto fail; inode->i_ino = new_block; - inode->i_mode = mode; - inode->i_uid = current_fsuid(); - inode->i_gid = current_fsgid(); + inode_init_owner(inode, NULL, mode); inode->i_mapping->a_ops = &omfs_aops; inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |