Skip to content

Commit 061f720

Browse files
committed
[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: Nathan Scott <nathans@sgi.com>
1 parent 4ef19dd commit 061f720

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

fs/xfs/quota/xfs_qm.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,11 +1392,12 @@ xfs_qm_qino_alloc(
13921392
{
13931393
xfs_trans_t *tp;
13941394
int error;
1395-
unsigned long s;
1395+
unsigned long s;
13961396
cred_t zerocr;
1397+
xfs_inode_t zeroino;
13971398
int committed;
13981399

1399-
tp = xfs_trans_alloc(mp,XFS_TRANS_QM_QINOCREATE);
1400+
tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QINOCREATE);
14001401
if ((error = xfs_trans_reserve(tp,
14011402
XFS_QM_QINOCREATE_SPACE_RES(mp),
14021403
XFS_CREATE_LOG_RES(mp), 0,
@@ -1406,8 +1407,9 @@ xfs_qm_qino_alloc(
14061407
return (error);
14071408
}
14081409
memset(&zerocr, 0, sizeof(zerocr));
1410+
memset(&zeroino, 0, sizeof(zeroino));
14091411

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

0 commit comments

Comments
 (0)