diff options
author | Dave Chinner <david@fromorbit.com> | 2010-02-03 18:09:14 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2010-02-03 18:09:14 -0500 |
commit | 5322892d867e186c6b4c5fff5c99ea4863696a60 (patch) | |
tree | 2d4168ac5a62d0d27e5bcfef021b56a20aa875a7 /fs | |
parent | 07fec73625dc0db6f9aed68019918208a2ca53f5 (diff) |
xfs: kill xfs_bawrite
There are no more users of this function left in the XFS code
now that we've switched everything to delayed write flushing.
Remove it.
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 19 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.h | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index 4556a4c31e36..d50df3a8101c 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -1078,25 +1078,6 @@ xfs_bwrite( | |||
1078 | return error; | 1078 | return error; |
1079 | } | 1079 | } |
1080 | 1080 | ||
1081 | int | ||
1082 | xfs_bawrite( | ||
1083 | void *mp, | ||
1084 | struct xfs_buf *bp) | ||
1085 | { | ||
1086 | trace_xfs_buf_bawrite(bp, _RET_IP_); | ||
1087 | |||
1088 | ASSERT(bp->b_bn != XFS_BUF_DADDR_NULL); | ||
1089 | |||
1090 | xfs_buf_delwri_dequeue(bp); | ||
1091 | |||
1092 | bp->b_flags &= ~(XBF_READ | XBF_DELWRI | XBF_READ_AHEAD); | ||
1093 | bp->b_flags |= (XBF_WRITE | XBF_ASYNC | _XBF_RUN_QUEUES); | ||
1094 | |||
1095 | bp->b_mount = mp; | ||
1096 | bp->b_strat = xfs_bdstrat_cb; | ||
1097 | return xfs_bdstrat_cb(bp); | ||
1098 | } | ||
1099 | |||
1100 | void | 1081 | void |
1101 | xfs_bdwrite( | 1082 | xfs_bdwrite( |
1102 | void *mp, | 1083 | void *mp, |
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h index be45e8c5768d..386e7361e50e 100644 --- a/fs/xfs/linux-2.6/xfs_buf.h +++ b/fs/xfs/linux-2.6/xfs_buf.h | |||
@@ -233,7 +233,6 @@ extern void xfs_buf_unlock(xfs_buf_t *); | |||
233 | 233 | ||
234 | /* Buffer Read and Write Routines */ | 234 | /* Buffer Read and Write Routines */ |
235 | extern int xfs_bwrite(struct xfs_mount *mp, struct xfs_buf *bp); | 235 | extern int xfs_bwrite(struct xfs_mount *mp, struct xfs_buf *bp); |
236 | extern int xfs_bawrite(void *mp, xfs_buf_t *bp); | ||
237 | extern void xfs_bdwrite(void *mp, xfs_buf_t *bp); | 236 | extern void xfs_bdwrite(void *mp, xfs_buf_t *bp); |
238 | 237 | ||
239 | extern void xfsbdstrat(struct xfs_mount *, struct xfs_buf *); | 238 | extern void xfsbdstrat(struct xfs_mount *, struct xfs_buf *); |