diff options
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.h | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_log.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h index f0aa94703cf5..c5601e1e0f46 100644 --- a/fs/xfs/linux-2.6/xfs_buf.h +++ b/fs/xfs/linux-2.6/xfs_buf.h | |||
@@ -266,7 +266,6 @@ void xfs_buf_stale(struct xfs_buf *bp); | |||
266 | #define XFS_BUF_UNWRITE(bp) ((bp)->b_flags &= ~XBF_WRITE) | 266 | #define XFS_BUF_UNWRITE(bp) ((bp)->b_flags &= ~XBF_WRITE) |
267 | #define XFS_BUF_ISWRITE(bp) ((bp)->b_flags & XBF_WRITE) | 267 | #define XFS_BUF_ISWRITE(bp) ((bp)->b_flags & XBF_WRITE) |
268 | 268 | ||
269 | #define XFS_BUF_SET_PTR(bp, val, cnt) xfs_buf_associate_memory(bp, val, cnt) | ||
270 | #define XFS_BUF_ADDR(bp) ((bp)->b_bn) | 269 | #define XFS_BUF_ADDR(bp) ((bp)->b_bn) |
271 | #define XFS_BUF_SET_ADDR(bp, bno) ((bp)->b_bn = (xfs_daddr_t)(bno)) | 270 | #define XFS_BUF_SET_ADDR(bp, bno) ((bp)->b_bn = (xfs_daddr_t)(bno)) |
272 | #define XFS_BUF_OFFSET(bp) ((bp)->b_file_offset) | 271 | #define XFS_BUF_OFFSET(bp) ((bp)->b_file_offset) |
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 3f1fa7bb9e3d..3a8d4f66d702 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -1395,8 +1395,8 @@ xlog_sync(xlog_t *log, | |||
1395 | if (split) { | 1395 | if (split) { |
1396 | bp = iclog->ic_log->l_xbuf; | 1396 | bp = iclog->ic_log->l_xbuf; |
1397 | XFS_BUF_SET_ADDR(bp, 0); /* logical 0 */ | 1397 | XFS_BUF_SET_ADDR(bp, 0); /* logical 0 */ |
1398 | XFS_BUF_SET_PTR(bp, (xfs_caddr_t)((__psint_t)&(iclog->ic_header)+ | 1398 | xfs_buf_associate_memory(bp, |
1399 | (__psint_t)count), split); | 1399 | (char *)&iclog->ic_header + count, split); |
1400 | bp->b_fspriv = iclog; | 1400 | bp->b_fspriv = iclog; |
1401 | XFS_BUF_ZEROFLAGS(bp); | 1401 | XFS_BUF_ZEROFLAGS(bp); |
1402 | XFS_BUF_ASYNC(bp); | 1402 | XFS_BUF_ASYNC(bp); |
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; |