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

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

9p: replace inode uid,gid,mode initialization with helper function

parent a1bd120d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -253,9 +253,7 @@ struct inode *v9fs_get_inode(struct super_block *sb, int mode)
		return ERR_PTR(-ENOMEM);
	}

	inode->i_mode = mode;
	inode->i_uid = current_fsuid();
	inode->i_gid = current_fsgid();
	inode_init_owner(inode, NULL, mode);
	inode->i_blocks = 0;
	inode->i_rdev = 0;
	inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;