aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c9
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.h2
-rw-r--r--fs/xfs/linux-2.6/xfs_trace.h2
-rw-r--r--fs/xfs/xfs_log.c3
-rw-r--r--fs/xfs/xfs_log_recover.c3
-rw-r--r--fs/xfs/xfs_vnodeops.c6
6 files changed, 14 insertions, 11 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 286e36e21dae..eca945b0f88f 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -707,9 +707,10 @@ xfs_buf_associate_memory(
707} 707}
708 708
709xfs_buf_t * 709xfs_buf_t *
710xfs_buf_get_noaddr( 710xfs_buf_get_uncached(
711 struct xfs_buftarg *target,
711 size_t len, 712 size_t len,
712 xfs_buftarg_t *target) 713 int flags)
713{ 714{
714 unsigned long page_count = PAGE_ALIGN(len) >> PAGE_SHIFT; 715 unsigned long page_count = PAGE_ALIGN(len) >> PAGE_SHIFT;
715 int error, i; 716 int error, i;
@@ -725,7 +726,7 @@ xfs_buf_get_noaddr(
725 goto fail_free_buf; 726 goto fail_free_buf;
726 727
727 for (i = 0; i < page_count; i++) { 728 for (i = 0; i < page_count; i++) {
728 bp->b_pages[i] = alloc_page(GFP_KERNEL); 729 bp->b_pages[i] = alloc_page(xb_to_gfp(flags));
729 if (!bp->b_pages[i]) 730 if (!bp->b_pages[i])
730 goto fail_free_mem; 731 goto fail_free_mem;
731 } 732 }
@@ -740,7 +741,7 @@ xfs_buf_get_noaddr(
740 741
741 xfs_buf_unlock(bp); 742 xfs_buf_unlock(bp);
742 743
743 trace_xfs_buf_get_noaddr(bp, _RET_IP_); 744 trace_xfs_buf_get_uncached(bp, _RET_IP_);
744 return bp; 745 return bp;
745 746
746 fail_free_mem: 747 fail_free_mem:
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index 2a05614f0b92..fb30447091d8 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -213,7 +213,7 @@ extern xfs_buf_t *xfs_buf_read(xfs_buftarg_t *, xfs_off_t, size_t,
213 xfs_buf_flags_t); 213 xfs_buf_flags_t);
214 214
215extern xfs_buf_t *xfs_buf_get_empty(size_t, xfs_buftarg_t *); 215extern xfs_buf_t *xfs_buf_get_empty(size_t, xfs_buftarg_t *);
216extern xfs_buf_t *xfs_buf_get_noaddr(size_t, xfs_buftarg_t *); 216extern xfs_buf_t *xfs_buf_get_uncached(struct xfs_buftarg *, size_t, int);
217extern int xfs_buf_associate_memory(xfs_buf_t *, void *, size_t); 217extern int xfs_buf_associate_memory(xfs_buf_t *, void *, size_t);
218extern void xfs_buf_hold(xfs_buf_t *); 218extern void xfs_buf_hold(xfs_buf_t *);
219extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t, 219extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t,
diff --git a/fs/xfs/linux-2.6/xfs_trace.h b/fs/xfs/linux-2.6/xfs_trace.h
index be5dffd282a1..2a1d4fbd9ed8 100644
--- a/fs/xfs/linux-2.6/xfs_trace.h
+++ b/fs/xfs/linux-2.6/xfs_trace.h
@@ -331,7 +331,7 @@ DEFINE_BUF_EVENT(xfs_buf_iowait_done);
331DEFINE_BUF_EVENT(xfs_buf_delwri_queue); 331DEFINE_BUF_EVENT(xfs_buf_delwri_queue);
332DEFINE_BUF_EVENT(xfs_buf_delwri_dequeue); 332DEFINE_BUF_EVENT(xfs_buf_delwri_dequeue);
333DEFINE_BUF_EVENT(xfs_buf_delwri_split); 333DEFINE_BUF_EVENT(xfs_buf_delwri_split);
334DEFINE_BUF_EVENT(xfs_buf_get_noaddr); 334DEFINE_BUF_EVENT(xfs_buf_get_uncached);
335DEFINE_BUF_EVENT(xfs_bdstrat_shut); 335DEFINE_BUF_EVENT(xfs_bdstrat_shut);
336DEFINE_BUF_EVENT(xfs_buf_item_relse); 336DEFINE_BUF_EVENT(xfs_buf_item_relse);
337DEFINE_BUF_EVENT(xfs_buf_item_iodone); 337DEFINE_BUF_EVENT(xfs_buf_item_iodone);
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 33f718f92a48..c8a309424307 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1131,7 +1131,8 @@ xlog_alloc_log(xfs_mount_t *mp,
1131 iclog->ic_prev = prev_iclog; 1131 iclog->ic_prev = prev_iclog;
1132 prev_iclog = iclog; 1132 prev_iclog = iclog;
1133 1133
1134 bp = xfs_buf_get_noaddr(log->l_iclog_size, mp->m_logdev_targp); 1134 bp = xfs_buf_get_uncached(mp->m_logdev_targp,
1135 log->l_iclog_size, 0);
1135 if (!bp) 1136 if (!bp)
1136 goto out_free_iclog; 1137 goto out_free_iclog;
1137 if (!XFS_BUF_CPSEMA(bp)) 1138 if (!XFS_BUF_CPSEMA(bp))
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 6f3f5fa37acf..3d887542b037 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -107,7 +107,8 @@ xlog_get_bp(
107 nbblks += log->l_sectBBsize; 107 nbblks += log->l_sectBBsize;
108 nbblks = round_up(nbblks, log->l_sectBBsize); 108 nbblks = round_up(nbblks, log->l_sectBBsize);
109 109
110 return xfs_buf_get_noaddr(BBTOB(nbblks), log->l_mp->m_logdev_targp); 110 return xfs_buf_get_uncached(log->l_mp->m_logdev_targp,
111 BBTOB(nbblks), 0);
111} 112}
112 113
113STATIC void 114STATIC void
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index a230cd4d0774..b7bdc43308e4 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -2434,9 +2434,9 @@ xfs_zero_remaining_bytes(
2434 if (endoff > ip->i_size) 2434 if (endoff > ip->i_size)
2435 endoff = ip->i_size; 2435 endoff = ip->i_size;
2436 2436
2437 bp = xfs_buf_get_noaddr(mp->m_sb.sb_blocksize, 2437 bp = xfs_buf_get_uncached(XFS_IS_REALTIME_INODE(ip) ?
2438 XFS_IS_REALTIME_INODE(ip) ? 2438 mp->m_rtdev_targp : mp->m_ddev_targp,
2439 mp->m_rtdev_targp : mp->m_ddev_targp); 2439 mp->m_sb.sb_blocksize, XBF_DONT_BLOCK);
2440 if (!bp) 2440 if (!bp)
2441 return XFS_ERROR(ENOMEM); 2441 return XFS_ERROR(ENOMEM);
2442 2442