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>
This commit is contained in:
Родитель
e6ecdc70fb
Коммит
6a9e652c88
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче