aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2005-09-04 18:28:16 -0400
committerNathan Scott <nathans@sgi.com>2005-09-04 18:28:16 -0400
commit0f9fffbcc1817c655d6dd40960ae2e0086b0f64f (patch)
tree81f580bcc4729c190d7cd6209d9d61c5f88b84b7 /fs
parent02ba71de98d5eee63e82cc2d88f9ea8430810a9a (diff)
[XFS] remove some dead code from pagebuf
SGI-PV: 934766 SGI-Modid: xfs-linux:xfs-kern:197783a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c30
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.h7
2 files changed, 0 insertions, 37 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index fba40cbdbcf1..f43689754dae 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -700,25 +700,6 @@ xfs_buf_read_flags(
700} 700}
701 701
702/* 702/*
703 * Create a skeletal pagebuf (no pages associated with it).
704 */
705xfs_buf_t *
706pagebuf_lookup(
707 xfs_buftarg_t *target,
708 loff_t ioff,
709 size_t isize,
710 page_buf_flags_t flags)
711{
712 xfs_buf_t *pb;
713
714 pb = pagebuf_allocate(flags);
715 if (pb) {
716 _pagebuf_initialize(pb, target, ioff, isize, flags);
717 }
718 return pb;
719}
720
721/*
722 * If we are not low on memory then do the readahead in a deadlock 703 * If we are not low on memory then do the readahead in a deadlock
723 * safe manner. 704 * safe manner.
724 */ 705 */
@@ -891,17 +872,6 @@ pagebuf_rele(
891 872
892 PB_TRACE(pb, "rele", pb->pb_relse); 873 PB_TRACE(pb, "rele", pb->pb_relse);
893 874
894 /*
895 * pagebuf_lookup buffers are not hashed, not delayed write,
896 * and don't have their own release routines. Special case.
897 */
898 if (unlikely(!hash)) {
899 ASSERT(!pb->pb_relse);
900 if (atomic_dec_and_test(&pb->pb_hold))
901 xfs_buf_free(pb);
902 return;
903 }
904
905 if (atomic_dec_and_lock(&pb->pb_hold, &hash->bh_lock)) { 875 if (atomic_dec_and_lock(&pb->pb_hold, &hash->bh_lock)) {
906 int do_free = 1; 876 int do_free = 1;
907 877
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index 3f8f69a66aea..c322e9d71f3d 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -206,13 +206,6 @@ extern xfs_buf_t *xfs_buf_read_flags( /* allocate and read a buffer */
206#define xfs_buf_read(target, blkno, len, flags) \ 206#define xfs_buf_read(target, blkno, len, flags) \
207 xfs_buf_read_flags((target), (blkno), (len), PBF_LOCK | PBF_MAPPED) 207 xfs_buf_read_flags((target), (blkno), (len), PBF_LOCK | PBF_MAPPED)
208 208
209extern xfs_buf_t *pagebuf_lookup(
210 xfs_buftarg_t *,
211 loff_t, /* starting offset of range */
212 size_t, /* length of range */
213 page_buf_flags_t); /* PBF_READ, PBF_WRITE, */
214 /* PBF_FORCEIO, */
215
216extern xfs_buf_t *pagebuf_get_empty( /* allocate pagebuf struct with */ 209extern xfs_buf_t *pagebuf_get_empty( /* allocate pagebuf struct with */
217 /* no memory or disk address */ 210 /* no memory or disk address */
218 size_t len, 211 size_t len,