[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>
This commit is contained in:
Nathan Scott 2006-01-11 15:27:50 +11:00
parent 4ef19dddba
commit 061f7209bd
1 changed files with 5 additions and 3 deletions

View File

@ -1394,9 +1394,10 @@ xfs_qm_qino_alloc(
int error; int error;
unsigned long s; unsigned long s;
cred_t zerocr; cred_t zerocr;
xfs_inode_t zeroino;
int committed; int committed;
tp = xfs_trans_alloc(mp,XFS_TRANS_QM_QINOCREATE); tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QINOCREATE);
if ((error = xfs_trans_reserve(tp, if ((error = xfs_trans_reserve(tp,
XFS_QM_QINOCREATE_SPACE_RES(mp), XFS_QM_QINOCREATE_SPACE_RES(mp),
XFS_CREATE_LOG_RES(mp), 0, XFS_CREATE_LOG_RES(mp), 0,
@ -1406,8 +1407,9 @@ xfs_qm_qino_alloc(
return (error); return (error);
} }
memset(&zerocr, 0, sizeof(zerocr)); 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))) { &zerocr, 0, 1, ip, &committed))) {
xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES | xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES |
XFS_TRANS_ABORT); XFS_TRANS_ABORT);