Commit cb6c573f authored by Nathan Scott's avatar Nathan Scott

[XFS] Remove some off_t abuse in pagebuf_offset and the page_io routine,

after some careful analysis.

SGI Modid: 2.5.x-xfs:slinx:140039a
parent a9ab047f
......@@ -1460,7 +1460,7 @@ pagebuf_mapout_locked(
caddr_t
pagebuf_offset(
page_buf_t *pb,
off_t offset)
size_t offset)
{
struct page *page;
......
......@@ -329,7 +329,7 @@ extern int pagebuf_iorequest( /* start real I/O */
extern int pagebuf_iowait( /* wait for buffer I/O done */
page_buf_t *); /* buffer to wait on */
extern caddr_t pagebuf_offset(page_buf_t *, off_t);
extern caddr_t pagebuf_offset(page_buf_t *, size_t);
extern void pagebuf_iomove( /* move data in/out of pagebuf */
page_buf_t *, /* buffer to manipulate */
......
......@@ -153,7 +153,7 @@ typedef struct pb_target xfs_buftarg_t;
#define XFS_BUF_PTR(bp) (xfs_caddr_t)((bp)->pb_addr)
extern inline xfs_caddr_t xfs_buf_offset(page_buf_t *bp, off_t offset)
extern inline xfs_caddr_t xfs_buf_offset(page_buf_t *bp, size_t offset)
{
if (bp->pb_flags & PBF_MAPPED)
return XFS_BUF_PTR(bp) + offset;
......
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