Skip to content

Commit

Permalink
omfs: replace inode uid,gid,mode initialization with helper function
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Monakhov <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Dmitry Monakhov authored and Al Viro committed May 21, 2010
1 parent e6ecdc7 commit 6a9e652
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/omfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a9e652

Please sign in to comment.