Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18144
b: refs/heads/master
c: 061f720
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Scott committed Jan 11, 2006
1 parent 3712e1d commit 76197ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ef19dddbaf2f24e492c18112fd8a04ce116daca
refs/heads/master: 061f7209bdfb0193b306f88b4ff36b2574b001d3
8 changes: 5 additions & 3 deletions trunk/fs/xfs/quota/xfs_qm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1392,11 +1392,12 @@ xfs_qm_qino_alloc(
{
xfs_trans_t *tp;
int error;
unsigned long s;
unsigned long s;
cred_t zerocr;
xfs_inode_t zeroino;
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,
XFS_QM_QINOCREATE_SPACE_RES(mp),
XFS_CREATE_LOG_RES(mp), 0,
Expand All @@ -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);
Expand Down

0 comments on commit 76197ae

Please sign in to comment.