aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-09-27 21:01:57 -0400
committerTim Shimmin <tes@sgi.com>2006-09-27 21:01:57 -0400
commit51bdd70681e247184b81c2de61dbc26154511155 (patch)
tree5ed741ebfb03e5e9ba6a9234a20808df28a1b186 /fs/xfs
parent8b56f083c2a6bd0a88271225f0bcf1d81db20d3c (diff)
[XFS] When issuing metadata readahead, submit bio with READA not READ.
SGI-PV: 944409 SGI-Modid: xfs-linux-melb:xfs-kern:26603a Signed-off-by: Nathan Scott <nathans@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index f13503508c46..247adced6e1b 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -1156,16 +1156,16 @@ _xfs_buf_ioapply(
1156 total_nr_pages = bp->b_page_count; 1156 total_nr_pages = bp->b_page_count;
1157 map_i = 0; 1157 map_i = 0;
1158 1158
1159 if (bp->b_flags & _XBF_RUN_QUEUES) {
1160 bp->b_flags &= ~_XBF_RUN_QUEUES;
1161 rw = (bp->b_flags & XBF_READ) ? READ_SYNC : WRITE_SYNC;
1162 } else {
1163 rw = (bp->b_flags & XBF_READ) ? READ : WRITE;
1164 }
1165
1166 if (bp->b_flags & XBF_ORDERED) { 1159 if (bp->b_flags & XBF_ORDERED) {
1167 ASSERT(!(bp->b_flags & XBF_READ)); 1160 ASSERT(!(bp->b_flags & XBF_READ));
1168 rw = WRITE_BARRIER; 1161 rw = WRITE_BARRIER;
1162 } else if (bp->b_flags & _XBF_RUN_QUEUES) {
1163 ASSERT(!(bp->b_flags & XBF_READ_AHEAD));
1164 bp->b_flags &= ~_XBF_RUN_QUEUES;
1165 rw = (bp->b_flags & XBF_WRITE) ? WRITE_SYNC : READ_SYNC;
1166 } else {
1167 rw = (bp->b_flags & XBF_WRITE) ? WRITE :
1168 (bp->b_flags & XBF_READ_AHEAD) ? READA : READ;
1169 } 1169 }
1170 1170
1171 /* Special code path for reading a sub page size buffer in -- 1171 /* Special code path for reading a sub page size buffer in --