Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23123
b: refs/heads/master
c: f30a121
h: refs/heads/master
i:
  23121: 03f6937
  23119: ae2cd7e
v: v3
  • Loading branch information
Nathan Scott committed Mar 14, 2006
1 parent 949a4cf commit d18c7fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: f020b67f3c0c071ed5b2281bfa717125c8a39ad6
refs/heads/master: f30a1211119741d2c1063ad613bec8434fb9d099
13 changes: 4 additions & 9 deletions trunk/fs/xfs/xfs_ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ xfs_ialloc_ag_alloc(
int version; /* inode version number to use */
int isaligned; /* inode allocation at stripe unit */
/* boundary */
xfs_dinode_core_t dic; /* a dinode_core to copy to new */
/* inodes */

args.tp = tp;
args.mp = tp->t_mountp;
Expand Down Expand Up @@ -250,10 +248,6 @@ xfs_ialloc_ag_alloc(
else
version = XFS_DINODE_VERSION_1;

memset(&dic, 0, sizeof(xfs_dinode_core_t));
INT_SET(dic.di_magic, ARCH_CONVERT, XFS_DINODE_MAGIC);
INT_SET(dic.di_version, ARCH_CONVERT, version);

for (j = 0; j < nbufs; j++) {
/*
* Get the block.
Expand All @@ -266,12 +260,13 @@ xfs_ialloc_ag_alloc(
ASSERT(fbuf);
ASSERT(!XFS_BUF_GETERROR(fbuf));
/*
* Loop over the inodes in this buffer.
* Set initial values for the inodes in this buffer.
*/

xfs_biozero(fbuf, 0, ninodes << args.mp->m_sb.sb_inodelog);
for (i = 0; i < ninodes; i++) {
free = XFS_MAKE_IPTR(args.mp, fbuf, i);
memcpy(&(free->di_core), &dic, sizeof(xfs_dinode_core_t));
INT_SET(free->di_core.di_magic, ARCH_CONVERT, XFS_DINODE_MAGIC);
INT_SET(free->di_core.di_version, ARCH_CONVERT, version);
INT_SET(free->di_next_unlinked, ARCH_CONVERT, NULLAGINO);
xfs_ialloc_log_di(tp, fbuf, i,
XFS_DI_CORE_BITS | XFS_DI_NEXT_UNLINKED);
Expand Down

0 comments on commit d18c7fb

Please sign in to comment.