Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140109
b: refs/heads/master
c: e8fa6b4
h: refs/heads/master
i:
  140107: 4bd1037
v: v3
  • Loading branch information
Christoph Hellwig authored and Felix Blyakher committed Mar 4, 2009
1 parent a3605eb commit 8b73190
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 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: d4fc7cea5dda04ae1a6f36175ec1dd8ff088ed52
refs/heads/master: e8fa6b483feebd23ded5eb01afd7a6e82b6078c6
17 changes: 13 additions & 4 deletions trunk/fs/xfs/xfs_log_recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -1455,10 +1455,19 @@ xlog_recover_add_to_trans(
item = item->ri_prev;

if (item->ri_total == 0) { /* first region to be added */
item->ri_total = in_f->ilf_size;
ASSERT(item->ri_total <= XLOG_MAX_REGIONS_IN_ITEM);
item->ri_buf = kmem_zalloc((item->ri_total *
sizeof(xfs_log_iovec_t)), KM_SLEEP);
if (in_f->ilf_size == 0 ||
in_f->ilf_size > XLOG_MAX_REGIONS_IN_ITEM) {
xlog_warn(
"XFS: bad number of regions (%d) in inode log format",
in_f->ilf_size);
ASSERT(0);
return XFS_ERROR(EIO);
}

item->ri_total = in_f->ilf_size;
item->ri_buf =
kmem_zalloc(item->ri_total * sizeof(xfs_log_iovec_t),
KM_SLEEP);
}
ASSERT(item->ri_total > item->ri_cnt);
/* Description region is ri_buf[0] */
Expand Down

0 comments on commit 8b73190

Please sign in to comment.