aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 --