Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6ecdc70 authored by Dmitry Monakhov's avatar Dmitry Monakhov Committed by Al Viro
Browse files

bfs: replace inode uid,gid,mode initialization with helper function

parent 75fe0a24
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -105,14 +105,12 @@ static int bfs_create(struct inode *dir, struct dentry *dentry, int mode,
	}
	set_bit(ino, info->si_imap);
	info->si_freei--;
	inode->i_uid = current_fsuid();
	inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current_fsgid();
	inode_init_owner(inode, dir, mode);
	inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC;
	inode->i_blocks = 0;
	inode->i_op = &bfs_file_inops;
	inode->i_fop = &bfs_file_operations;
	inode->i_mapping->a_ops = &bfs_aops;
	inode->i_mode = mode;
	inode->i_ino = ino;
	BFS_I(inode)->i_dsk_ino = ino;
	BFS_I(inode)->i_sblock = 0;