Commit 52f83275 authored by Nathan Scott's avatar Nathan Scott

[XFS] Fix async pagebuf I/O tracing at the bottom of pagebuf_get.

SGI Modid: 2.5.x-xfs:slinx:163118a
parent 903facfa
...@@ -798,6 +798,7 @@ pagebuf_get( /* allocate a buffer */ ...@@ -798,6 +798,7 @@ pagebuf_get( /* allocate a buffer */
PB_STATS_INC(pb_get_read); PB_STATS_INC(pb_get_read);
pagebuf_iostart(pb, flags); pagebuf_iostart(pb, flags);
} else if (flags & PBF_ASYNC) { } else if (flags & PBF_ASYNC) {
PB_TRACE(pb, "get_read_async", (unsigned long)flags);
/* /*
* Read ahead call which is already satisfied, * Read ahead call which is already satisfied,
* drop the buffer * drop the buffer
...@@ -807,12 +808,13 @@ pagebuf_get( /* allocate a buffer */ ...@@ -807,12 +808,13 @@ pagebuf_get( /* allocate a buffer */
pagebuf_rele(pb); pagebuf_rele(pb);
return NULL; return NULL;
} else { } else {
PB_TRACE(pb, "get_read_done", (unsigned long)flags);
/* We do not want read in the flags */ /* We do not want read in the flags */
pb->pb_flags &= ~PBF_READ; pb->pb_flags &= ~PBF_READ;
} }
} else {
PB_TRACE(pb, "get_write", (unsigned long)flags);
} }
PB_TRACE(pb, "get_done", (unsigned long)flags);
return (pb); return (pb);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment