Commit ce8e922c authored by Nathan Scott's avatar Nathan Scott

[XFS] Complete the pagebuf -> xfs_buf naming convention transition,

finally.

SGI-PV: 947038
SGI-Modid: xfs-linux-melb:xfs-kern:24866a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 68bdb6ea
...@@ -273,7 +273,7 @@ xfs_map_at_offset( ...@@ -273,7 +273,7 @@ xfs_map_at_offset(
lock_buffer(bh); lock_buffer(bh);
bh->b_blocknr = bn; bh->b_blocknr = bn;
bh->b_bdev = iomapp->iomap_target->pbr_bdev; bh->b_bdev = iomapp->iomap_target->bt_bdev;
set_buffer_mapped(bh); set_buffer_mapped(bh);
clear_buffer_delay(bh); clear_buffer_delay(bh);
} }
...@@ -982,7 +982,7 @@ __linvfs_get_block( ...@@ -982,7 +982,7 @@ __linvfs_get_block(
} }
/* If this is a realtime file, data might be on a new device */ /* If this is a realtime file, data might be on a new device */
bh_result->b_bdev = iomap.iomap_target->pbr_bdev; bh_result->b_bdev = iomap.iomap_target->bt_bdev;
/* If we previously allocated a block out beyond eof and /* If we previously allocated a block out beyond eof and
* we are now coming back to use it then we will need to * we are now coming back to use it then we will need to
...@@ -1097,7 +1097,7 @@ linvfs_direct_IO( ...@@ -1097,7 +1097,7 @@ linvfs_direct_IO(
iocb->private = xfs_alloc_ioend(inode); iocb->private = xfs_alloc_ioend(inode);
ret = blockdev_direct_IO_own_locking(rw, iocb, inode, ret = blockdev_direct_IO_own_locking(rw, iocb, inode,
iomap.iomap_target->pbr_bdev, iomap.iomap_target->bt_bdev,
iov, offset, nr_segs, iov, offset, nr_segs,
linvfs_get_blocks_direct, linvfs_get_blocks_direct,
linvfs_end_io_direct); linvfs_end_io_direct);
......
This diff is collapsed.
This diff is collapsed.
...@@ -750,7 +750,7 @@ xfs_ioctl( ...@@ -750,7 +750,7 @@ xfs_ioctl(
(ip->i_d.di_flags & XFS_DIFLAG_REALTIME) ? (ip->i_d.di_flags & XFS_DIFLAG_REALTIME) ?
mp->m_rtdev_targp : mp->m_ddev_targp; mp->m_rtdev_targp : mp->m_ddev_targp;
da.d_mem = da.d_miniosz = 1 << target->pbr_sshift; da.d_mem = da.d_miniosz = 1 << target->bt_sshift;
da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1); da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1);
if (copy_to_user(arg, &da, sizeof(da))) if (copy_to_user(arg, &da, sizeof(da)))
......
...@@ -232,7 +232,7 @@ static inline void set_buffer_unwritten_io(struct buffer_head *bh) ...@@ -232,7 +232,7 @@ static inline void set_buffer_unwritten_io(struct buffer_head *bh)
#define xfs_itruncate_data(ip, off) \ #define xfs_itruncate_data(ip, off) \
(-vmtruncate(LINVFS_GET_IP(XFS_ITOV(ip)), (off))) (-vmtruncate(LINVFS_GET_IP(XFS_ITOV(ip)), (off)))
#define xfs_statvfs_fsid(statp, mp) \ #define xfs_statvfs_fsid(statp, mp) \
({ u64 id = huge_encode_dev((mp)->m_dev); \ ({ u64 id = huge_encode_dev((mp)->m_ddev_targp->bt_dev); \
__kernel_fsid_t *fsid = &(statp)->f_fsid; \ __kernel_fsid_t *fsid = &(statp)->f_fsid; \
(fsid->val[0] = (u32)id, fsid->val[1] = (u32)(id >> 32)); }) (fsid->val[0] = (u32)id, fsid->val[1] = (u32)(id >> 32)); })
......
...@@ -233,8 +233,8 @@ xfs_read( ...@@ -233,8 +233,8 @@ xfs_read(
xfs_buftarg_t *target = xfs_buftarg_t *target =
(ip->i_d.di_flags & XFS_DIFLAG_REALTIME) ? (ip->i_d.di_flags & XFS_DIFLAG_REALTIME) ?
mp->m_rtdev_targp : mp->m_ddev_targp; mp->m_rtdev_targp : mp->m_ddev_targp;
if ((*offset & target->pbr_smask) || if ((*offset & target->bt_smask) ||
(size & target->pbr_smask)) { (size & target->bt_smask)) {
if (*offset == ip->i_d.di_size) { if (*offset == ip->i_d.di_size) {
return (0); return (0);
} }
...@@ -618,7 +618,7 @@ xfs_write( ...@@ -618,7 +618,7 @@ xfs_write(
(xip->i_d.di_flags & XFS_DIFLAG_REALTIME) ? (xip->i_d.di_flags & XFS_DIFLAG_REALTIME) ?
mp->m_rtdev_targp : mp->m_ddev_targp; mp->m_rtdev_targp : mp->m_ddev_targp;
if ((pos & target->pbr_smask) || (count & target->pbr_smask)) if ((pos & target->bt_smask) || (count & target->bt_smask))
return XFS_ERROR(-EINVAL); return XFS_ERROR(-EINVAL);
if (!VN_CACHED(vp) && pos < i_size_read(inode)) if (!VN_CACHED(vp) && pos < i_size_read(inode))
...@@ -938,7 +938,7 @@ xfs_bdstrat_cb(struct xfs_buf *bp) ...@@ -938,7 +938,7 @@ xfs_bdstrat_cb(struct xfs_buf *bp)
mp = XFS_BUF_FSPRIVATE3(bp, xfs_mount_t *); mp = XFS_BUF_FSPRIVATE3(bp, xfs_mount_t *);
if (!XFS_FORCED_SHUTDOWN(mp)) { if (!XFS_FORCED_SHUTDOWN(mp)) {
pagebuf_iorequest(bp); xfs_buf_iorequest(bp);
return 0; return 0;
} else { } else {
xfs_buftrace("XFS__BDSTRAT IOERROR", bp); xfs_buftrace("XFS__BDSTRAT IOERROR", bp);
...@@ -991,7 +991,7 @@ xfsbdstrat( ...@@ -991,7 +991,7 @@ xfsbdstrat(
* if (XFS_BUF_IS_GRIO(bp)) { * if (XFS_BUF_IS_GRIO(bp)) {
*/ */
pagebuf_iorequest(bp); xfs_buf_iorequest(bp);
return 0; return 0;
} }
......
...@@ -109,15 +109,15 @@ struct xfsstats { ...@@ -109,15 +109,15 @@ struct xfsstats {
__uint32_t vn_remove; /* # times vn_remove called */ __uint32_t vn_remove; /* # times vn_remove called */
__uint32_t vn_free; /* # times vn_free called */ __uint32_t vn_free; /* # times vn_free called */
#define XFSSTAT_END_BUF (XFSSTAT_END_VNODE_OPS+9) #define XFSSTAT_END_BUF (XFSSTAT_END_VNODE_OPS+9)
__uint32_t pb_get; __uint32_t xb_get;
__uint32_t pb_create; __uint32_t xb_create;
__uint32_t pb_get_locked; __uint32_t xb_get_locked;
__uint32_t pb_get_locked_waited; __uint32_t xb_get_locked_waited;
__uint32_t pb_busy_locked; __uint32_t xb_busy_locked;
__uint32_t pb_miss_locked; __uint32_t xb_miss_locked;
__uint32_t pb_page_retries; __uint32_t xb_page_retries;
__uint32_t pb_page_found; __uint32_t xb_page_found;
__uint32_t pb_get_read; __uint32_t xb_get_read;
/* Extra precision counters */ /* Extra precision counters */
__uint64_t xs_xstrat_bytes; __uint64_t xs_xstrat_bytes;
__uint64_t xs_write_bytes; __uint64_t xs_write_bytes;
......
...@@ -309,7 +309,7 @@ xfs_mountfs_check_barriers(xfs_mount_t *mp) ...@@ -309,7 +309,7 @@ xfs_mountfs_check_barriers(xfs_mount_t *mp)
return; return;
} }
if (mp->m_ddev_targp->pbr_bdev->bd_disk->queue->ordered == if (mp->m_ddev_targp->bt_bdev->bd_disk->queue->ordered ==
QUEUE_ORDERED_NONE) { QUEUE_ORDERED_NONE) {
xfs_fs_cmn_err(CE_NOTE, mp, xfs_fs_cmn_err(CE_NOTE, mp,
"Disabling barriers, not supported by the underlying device"); "Disabling barriers, not supported by the underlying device");
...@@ -330,7 +330,7 @@ void ...@@ -330,7 +330,7 @@ void
xfs_blkdev_issue_flush( xfs_blkdev_issue_flush(
xfs_buftarg_t *buftarg) xfs_buftarg_t *buftarg)
{ {
blkdev_issue_flush(buftarg->pbr_bdev, NULL); blkdev_issue_flush(buftarg->bt_bdev, NULL);
} }
STATIC struct inode * STATIC struct inode *
...@@ -969,9 +969,9 @@ init_xfs_fs( void ) ...@@ -969,9 +969,9 @@ init_xfs_fs( void )
if (error < 0) if (error < 0)
goto undo_zones; goto undo_zones;
error = pagebuf_init(); error = xfs_buf_init();
if (error < 0) if (error < 0)
goto undo_pagebuf; goto undo_buffers;
vn_init(); vn_init();
xfs_init(); xfs_init();
...@@ -985,9 +985,9 @@ init_xfs_fs( void ) ...@@ -985,9 +985,9 @@ init_xfs_fs( void )
return 0; return 0;
undo_register: undo_register:
pagebuf_terminate(); xfs_buf_terminate();
undo_pagebuf: undo_buffers:
linvfs_destroy_zones(); linvfs_destroy_zones();
undo_zones: undo_zones:
...@@ -1001,7 +1001,7 @@ exit_xfs_fs( void ) ...@@ -1001,7 +1001,7 @@ exit_xfs_fs( void )
XFS_DM_EXIT(&xfs_fs_type); XFS_DM_EXIT(&xfs_fs_type);
unregister_filesystem(&xfs_fs_type); unregister_filesystem(&xfs_fs_type);
xfs_cleanup(); xfs_cleanup();
pagebuf_terminate(); xfs_buf_terminate();
linvfs_destroy_zones(); linvfs_destroy_zones();
ktrace_uninit(); ktrace_uninit();
} }
......
...@@ -308,7 +308,6 @@ typedef struct xfs_mount { ...@@ -308,7 +308,6 @@ typedef struct xfs_mount {
xfs_buftarg_t *m_ddev_targp; /* saves taking the address */ xfs_buftarg_t *m_ddev_targp; /* saves taking the address */
xfs_buftarg_t *m_logdev_targp;/* ptr to log device */ xfs_buftarg_t *m_logdev_targp;/* ptr to log device */
xfs_buftarg_t *m_rtdev_targp; /* ptr to rt device */ xfs_buftarg_t *m_rtdev_targp; /* ptr to rt device */
#define m_dev m_ddev_targp->pbr_dev
__uint8_t m_dircook_elog; /* log d-cookie entry bits */ __uint8_t m_dircook_elog; /* log d-cookie entry bits */
__uint8_t m_blkbit_log; /* blocklog + NBBY */ __uint8_t m_blkbit_log; /* blocklog + NBBY */
__uint8_t m_blkbb_log; /* blocklog - BBSHIFT */ __uint8_t m_blkbb_log; /* blocklog - BBSHIFT */
......
...@@ -238,6 +238,7 @@ xfs_bioerror_relse( ...@@ -238,6 +238,7 @@ xfs_bioerror_relse(
} }
return (EIO); return (EIO);
} }
/* /*
* Prints out an ALERT message about I/O error. * Prints out an ALERT message about I/O error.
*/ */
...@@ -252,11 +253,9 @@ xfs_ioerror_alert( ...@@ -252,11 +253,9 @@ xfs_ioerror_alert(
"I/O error in filesystem (\"%s\") meta-data dev %s block 0x%llx" "I/O error in filesystem (\"%s\") meta-data dev %s block 0x%llx"
" (\"%s\") error %d buf count %zd", " (\"%s\") error %d buf count %zd",
(!mp || !mp->m_fsname) ? "(fs name not set)" : mp->m_fsname, (!mp || !mp->m_fsname) ? "(fs name not set)" : mp->m_fsname,
XFS_BUFTARG_NAME(bp->pb_target), XFS_BUFTARG_NAME(XFS_BUF_TARGET(bp)),
(__uint64_t)blkno, (__uint64_t)blkno, func,
func, XFS_BUF_GETERROR(bp), XFS_BUF_COUNT(bp));
XFS_BUF_GETERROR(bp),
XFS_BUF_COUNT(bp));
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment