diff options
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 1ac295da9f17..aaf61d5eefb9 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -223,14 +223,14 @@ xlog_bread_offset( | |||
223 | int orig_len = bp->b_buffer_length; | 223 | int orig_len = bp->b_buffer_length; |
224 | int error, error2; | 224 | int error, error2; |
225 | 225 | ||
226 | error = XFS_BUF_SET_PTR(bp, offset, BBTOB(nbblks)); | 226 | error = xfs_buf_associate_memory(bp, offset, BBTOB(nbblks)); |
227 | if (error) | 227 | if (error) |
228 | return error; | 228 | return error; |
229 | 229 | ||
230 | error = xlog_bread_noalign(log, blk_no, nbblks, bp); | 230 | error = xlog_bread_noalign(log, blk_no, nbblks, bp); |
231 | 231 | ||
232 | /* must reset buffer pointer even on error */ | 232 | /* must reset buffer pointer even on error */ |
233 | error2 = XFS_BUF_SET_PTR(bp, orig_offset, orig_len); | 233 | error2 = xfs_buf_associate_memory(bp, orig_offset, orig_len); |
234 | if (error) | 234 | if (error) |
235 | return error; | 235 | return error; |
236 | return error2; | 236 | return error2; |