aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_buf.c
diff options
context:
space:
mode:
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