aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_buf.c
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/xfs/linux-2.6/xfs_buf.c
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/xfs/linux-2.6/xfs_buf.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c30
1 files changed, 0 insertions, 30 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