Commit d1ae67a2 authored by Christoph Hellwig's avatar Christoph Hellwig

XFS: Remove struct pm entirely - it was never defined in the Linux port.

Modid: 2.5.x-xfs:slinx:129236a
parent 0e4c68e4
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
#define XFS_STRAT_WRITE_IMAPS 2 #define XFS_STRAT_WRITE_IMAPS 2
STATIC int xfs_iomap_read(xfs_iocore_t *, loff_t, size_t, int, pb_bmap_t *, STATIC int xfs_iomap_read(xfs_iocore_t *, loff_t, size_t, int, pb_bmap_t *,
int *, struct pm *); int *);
STATIC int xfs_iomap_write(xfs_iocore_t *, loff_t, size_t, pb_bmap_t *, STATIC int xfs_iomap_write(xfs_iocore_t *, loff_t, size_t, pb_bmap_t *,
int *, int, struct pm *); int *, int);
STATIC int xfs_iomap_write_delay(xfs_iocore_t *, loff_t, size_t, pb_bmap_t *, STATIC int xfs_iomap_write_delay(xfs_iocore_t *, loff_t, size_t, pb_bmap_t *,
int *, int, int); int *, int, int);
STATIC int xfs_iomap_write_direct(xfs_iocore_t *, loff_t, size_t, pb_bmap_t *, STATIC int xfs_iomap_write_direct(xfs_iocore_t *, loff_t, size_t, pb_bmap_t *,
...@@ -233,8 +233,7 @@ xfs_zero_last_block( ...@@ -233,8 +233,7 @@ xfs_zero_last_block(
xfs_iocore_t *io, xfs_iocore_t *io,
xfs_off_t offset, xfs_off_t offset,
xfs_fsize_t isize, xfs_fsize_t isize,
xfs_fsize_t end_size, xfs_fsize_t end_size)
struct pm *pmp)
{ {
xfs_fileoff_t last_fsb; xfs_fileoff_t last_fsb;
xfs_mount_t *mp; xfs_mount_t *mp;
...@@ -313,8 +312,7 @@ xfs_zero_eof( ...@@ -313,8 +312,7 @@ xfs_zero_eof(
xfs_iocore_t *io, xfs_iocore_t *io,
xfs_off_t offset, /* starting I/O offset */ xfs_off_t offset, /* starting I/O offset */
xfs_fsize_t isize, /* current inode size */ xfs_fsize_t isize, /* current inode size */
xfs_fsize_t end_size, /* terminal inode size */ xfs_fsize_t end_size) /* terminal inode size */
struct pm *pmp)
{ {
struct inode *ip = LINVFS_GET_IP(vp); struct inode *ip = LINVFS_GET_IP(vp);
xfs_fileoff_t start_zero_fsb; xfs_fileoff_t start_zero_fsb;
...@@ -340,7 +338,7 @@ xfs_zero_eof( ...@@ -340,7 +338,7 @@ xfs_zero_eof(
* First handle zeroing the block on which isize resides. * First handle zeroing the block on which isize resides.
* We only zero a part of that block so it is handled specially. * We only zero a part of that block so it is handled specially.
*/ */
error = xfs_zero_last_block(ip, io, offset, isize, end_size, pmp); error = xfs_zero_last_block(ip, io, offset, isize, end_size);
if (error) { if (error) {
ASSERT(ismrlocked(io->io_lock, MR_UPDATE)); ASSERT(ismrlocked(io->io_lock, MR_UPDATE));
ASSERT(ismrlocked(io->io_iolock, MR_UPDATE)); ASSERT(ismrlocked(io->io_iolock, MR_UPDATE));
...@@ -596,7 +594,7 @@ xfs_write( ...@@ -596,7 +594,7 @@ xfs_write(
if (!direct && (*offset > isize && isize)) { if (!direct && (*offset > isize && isize)) {
error = xfs_zero_eof(BHV_TO_VNODE(bdp), io, *offset, error = xfs_zero_eof(BHV_TO_VNODE(bdp), io, *offset,
isize, *offset + size, NULL); isize, *offset + size);
if (error) { if (error) {
xfs_iunlock(xip, XFS_ILOCK_EXCL|iolock); xfs_iunlock(xip, XFS_ILOCK_EXCL|iolock);
return(-error); return(-error);
...@@ -790,7 +788,7 @@ xfs_bmap(bhv_desc_t *bdp, ...@@ -790,7 +788,7 @@ xfs_bmap(bhv_desc_t *bdp,
if (flags & PBF_READ) { if (flags & PBF_READ) {
lockmode = xfs_ilock_map_shared(ip); lockmode = xfs_ilock_map_shared(ip);
error = xfs_iomap_read(&ip->i_iocore, offset, count, error = xfs_iomap_read(&ip->i_iocore, offset, count,
XFS_BMAPI_ENTIRE, pbmapp, npbmaps, NULL); XFS_BMAPI_ENTIRE, pbmapp, npbmaps);
xfs_iunlock_map_shared(ip, lockmode); xfs_iunlock_map_shared(ip, lockmode);
} else { /* PBF_WRITE */ } else { /* PBF_WRITE */
ASSERT(flags & PBF_WRITE); ASSERT(flags & PBF_WRITE);
...@@ -812,7 +810,7 @@ xfs_bmap(bhv_desc_t *bdp, ...@@ -812,7 +810,7 @@ xfs_bmap(bhv_desc_t *bdp,
} }
retry: retry:
error = xfs_iomap_write(&ip->i_iocore, offset, count, error = xfs_iomap_write(&ip->i_iocore, offset, count,
pbmapp, npbmaps, flags, NULL); pbmapp, npbmaps, flags);
/* xfs_iomap_write unlocks/locks/unlocks */ /* xfs_iomap_write unlocks/locks/unlocks */
if (error == ENOSPC) { if (error == ENOSPC) {
...@@ -1145,8 +1143,7 @@ xfs_iomap_read( ...@@ -1145,8 +1143,7 @@ xfs_iomap_read(
size_t count, size_t count,
int flags, int flags,
pb_bmap_t *pbmapp, pb_bmap_t *pbmapp,
int *npbmaps, int *npbmaps)
struct pm *pmp)
{ {
xfs_fileoff_t offset_fsb; xfs_fileoff_t offset_fsb;
xfs_fileoff_t end_fsb; xfs_fileoff_t end_fsb;
...@@ -1199,8 +1196,7 @@ xfs_iomap_write( ...@@ -1199,8 +1196,7 @@ xfs_iomap_write(
size_t count, size_t count,
pb_bmap_t *pbmapp, pb_bmap_t *pbmapp,
int *npbmaps, int *npbmaps,
int ioflag, int ioflag)
struct pm *pmp)
{ {
int maps; int maps;
int error = 0; int error = 0;
...@@ -1217,7 +1213,7 @@ xfs_iomap_write( ...@@ -1217,7 +1213,7 @@ xfs_iomap_write(
*/ */
found = 0; found = 0;
error = xfs_iomap_read(io, offset, count, flags, pbmapp, npbmaps, NULL); error = xfs_iomap_read(io, offset, count, flags, pbmapp, npbmaps);
if (error) if (error)
goto out; goto out;
......
...@@ -45,7 +45,7 @@ extern int xfsbdstrat (struct xfs_mount *, struct xfs_buf *); ...@@ -45,7 +45,7 @@ extern int xfsbdstrat (struct xfs_mount *, struct xfs_buf *);
extern int xfs_bdstrat_cb (struct xfs_buf *); extern int xfs_bdstrat_cb (struct xfs_buf *);
extern int xfs_zero_eof (vnode_t *, struct xfs_iocore *, xfs_off_t, extern int xfs_zero_eof (vnode_t *, struct xfs_iocore *, xfs_off_t,
xfs_fsize_t, xfs_fsize_t, struct pm *); xfs_fsize_t, xfs_fsize_t);
extern ssize_t xfs_read ( extern ssize_t xfs_read (
struct bhv_desc *bdp, struct bhv_desc *bdp,
struct file *filp, struct file *filp,
......
...@@ -1714,7 +1714,7 @@ xfs_igrow_start( ...@@ -1714,7 +1714,7 @@ xfs_igrow_start(
* and any blocks between the old and new file sizes. * and any blocks between the old and new file sizes.
*/ */
error = xfs_zero_eof(XFS_ITOV(ip), &ip->i_iocore, new_size, isize, error = xfs_zero_eof(XFS_ITOV(ip), &ip->i_iocore, new_size, isize,
new_size, NULL); new_size);
return error; return error;
} }
......
...@@ -98,7 +98,6 @@ struct xfs_inode_log_item; ...@@ -98,7 +98,6 @@ struct xfs_inode_log_item;
struct xfs_mount; struct xfs_mount;
struct xfs_trans; struct xfs_trans;
struct xfs_dquot; struct xfs_dquot;
struct pm;
/* /*
......
...@@ -362,7 +362,7 @@ xfs_inval_cached_pages( ...@@ -362,7 +362,7 @@ xfs_inval_cached_pages(
XFS_ILOCK(mp, io, XFS_ILOCK_EXCL|XFS_EXTSIZE_RD); XFS_ILOCK(mp, io, XFS_ILOCK_EXCL|XFS_EXTSIZE_RD);
isize = XFS_SIZE(mp, io); isize = XFS_SIZE(mp, io);
if (offset > isize) { if (offset > isize) {
xfs_zero_eof(vp, io, offset, isize, offset, NULL); xfs_zero_eof(vp, io, offset, isize, offset);
} }
XFS_IUNLOCK(mp, io, XFS_ILOCK_EXCL|XFS_EXTSIZE_RD); XFS_IUNLOCK(mp, io, XFS_ILOCK_EXCL|XFS_EXTSIZE_RD);
} }
......
...@@ -42,7 +42,6 @@ struct xfs_inode; ...@@ -42,7 +42,6 @@ struct xfs_inode;
struct xfs_iocore; struct xfs_iocore;
struct xfs_mount; struct xfs_mount;
struct xfs_trans; struct xfs_trans;
struct pm;
/* /*
* Maximum count of bmaps used by read and write paths. * Maximum count of bmaps used by read and write paths.
......
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