Commit ab19f1a2 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nathan Scott

[XFS] move remaining buftarg manpiluation from pagebuf to xfs

SGI Modid: 2.5.x-xfs:slinx:134068a
parent 7dee2451
...@@ -508,6 +508,14 @@ xfs_free_buftarg( ...@@ -508,6 +508,14 @@ xfs_free_buftarg(
kfree(btp); kfree(btp);
} }
void
xfs_relse_buftarg(
xfs_buftarg_t *btp)
{
invalidate_bdev(btp->pbr_bdev, 1);
truncate_inode_pages(btp->pbr_mapping, 0LL);
}
void void
xfs_size_buftarg( xfs_size_buftarg(
xfs_buftarg_t *btp, xfs_buftarg_t *btp,
......
...@@ -88,6 +88,7 @@ extern void xfs_blkdev_put (struct block_device *); ...@@ -88,6 +88,7 @@ extern void xfs_blkdev_put (struct block_device *);
extern struct pb_target *xfs_alloc_buftarg (struct block_device *); extern struct pb_target *xfs_alloc_buftarg (struct block_device *);
extern void xfs_size_buftarg (struct pb_target *, unsigned int, unsigned int); extern void xfs_size_buftarg (struct pb_target *, unsigned int, unsigned int);
extern void xfs_relse_buftarg (struct pb_target *);
extern void xfs_free_buftarg (struct pb_target *); extern void xfs_free_buftarg (struct pb_target *);
#endif /* __XFS_SUPER_H__ */ #endif /* __XFS_SUPER_H__ */
...@@ -296,8 +296,6 @@ extern int pagebuf_lock_value( /* return count on lock */ ...@@ -296,8 +296,6 @@ extern int pagebuf_lock_value( /* return count on lock */
extern int pagebuf_lock( /* lock buffer */ extern int pagebuf_lock( /* lock buffer */
page_buf_t *); /* buffer to lock */ page_buf_t *); /* buffer to lock */
extern void pagebuf_target_clear(struct pb_target *);
extern void pagebuf_unlock( /* unlock buffer */ extern void pagebuf_unlock( /* unlock buffer */
page_buf_t *); /* buffer to unlock */ page_buf_t *); /* buffer to unlock */
......
...@@ -121,14 +121,6 @@ pagebuf_lock( ...@@ -121,14 +121,6 @@ pagebuf_lock(
return 0; return 0;
} }
void
pagebuf_target_clear(
pb_target_t *target)
{
invalidate_bdev(target->pbr_bdev, 1);
truncate_inode_pages(target->pbr_mapping, 0LL);
}
/* /*
* pagebuf_unlock * pagebuf_unlock
* *
......
...@@ -300,8 +300,7 @@ extern void XFS_bflush(xfs_buftarg_t *); ...@@ -300,8 +300,7 @@ extern void XFS_bflush(xfs_buftarg_t *);
#define xfs_binval(buftarg) XFS_bflush(buftarg) #define xfs_binval(buftarg) XFS_bflush(buftarg)
#define xfs_incore_relse(buftarg,delwri_only,wait) \ #define xfs_incore_relse(buftarg,delwri_only,wait) \
pagebuf_target_clear(buftarg) xfs_relse_buftarg(buftarg)
#define xfs_baread(target, rablkno, ralen) \ #define xfs_baread(target, rablkno, ralen) \
pagebuf_readahead((target), (rablkno), \ pagebuf_readahead((target), (rablkno), \
......
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