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

Commit 061f7209 authored by Nathan Scott's avatar Nathan Scott
Browse files

[XFS] Do not inherit properties for the quota inodes from the root inode.



SGI-PV: 945264
SGI-Modid: xfs-linux-melb:xfs-kern:24366a

Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 4ef19ddd
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1394,6 +1394,7 @@ xfs_qm_qino_alloc(
	int		error;
	unsigned long	s;
	cred_t		zerocr;
	xfs_inode_t	zeroino;
	int		committed;

	tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QINOCREATE);
@@ -1406,8 +1407,9 @@ xfs_qm_qino_alloc(
		return (error);
	}
	memset(&zerocr, 0, sizeof(zerocr));
	memset(&zeroino, 0, sizeof(zeroino));

	if ((error = xfs_dir_ialloc(&tp, mp->m_rootip, S_IFREG, 1, 0,
	if ((error = xfs_dir_ialloc(&tp, &zeroino, S_IFREG, 1, 0,
				   &zerocr, 0, 1, ip, &committed))) {
		xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES |
				 XFS_TRANS_ABORT);