Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262862
b: refs/heads/master
c: ac4d688
h: refs/heads/master
v: v3
  • Loading branch information
Chandra Seetharaman authored and Alex Elder committed Aug 12, 2011
1 parent 143d26f commit 3da4f8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e978d8f7db1c5de7cdc6450a8ca208db3b95f84
refs/heads/master: ac4d6888b21a8be373f3e06f1d4011fbe2bbbeac
6 changes: 6 additions & 0 deletions trunk/fs/xfs/xfs_log_recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,8 @@ xlog_recover_buffer_pass2(

bp = xfs_buf_read(mp->m_ddev_targp, buf_f->blf_blkno, buf_f->blf_len,
buf_flags);
if (!bp)
return XFS_ERROR(ENOMEM);
error = xfs_buf_geterror(bp);
if (error) {
xfs_ioerror_alert("xlog_recover_do..(read#1)", mp,
Expand Down Expand Up @@ -2222,6 +2224,10 @@ xlog_recover_inode_pass2(

bp = xfs_buf_read(mp->m_ddev_targp, in_f->ilf_blkno, in_f->ilf_len,
XBF_LOCK);
if (!bp) {
error = ENOMEM;
goto error;
}
error = xfs_buf_geterror(bp);
if (error) {
xfs_ioerror_alert("xlog_recover_do..(read#2)", mp,
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ xfs_readlink_bmap(

bp = xfs_buf_read(mp->m_ddev_targp, d, BTOBB(byte_cnt),
XBF_LOCK | XBF_MAPPED | XBF_DONT_BLOCK);
if (!bp)
return XFS_ERROR(ENOMEM);
error = xfs_buf_geterror(bp);
if (error) {
xfs_ioerror_alert("xfs_readlink",
Expand Down

0 comments on commit 3da4f8f

Please sign in to comment.