Commit 9aca0442 authored by Stephen Lord's avatar Stephen Lord

[XFS] Fix a broken interaction between a buffered read into an unwritten extent and a direct write

SGI Modid: 2.5.x-xfs:slinx:159030a
parent cfae00ea
......@@ -1041,6 +1041,8 @@ count_page_state(
do {
if (buffer_uptodate(bh) && !buffer_mapped(bh))
(*unmapped) = 1;
else if (buffer_unwritten(bh) && !buffer_delay(bh))
clear_bit(BH_Unwritten, &bh->b_state);
else if (buffer_unwritten(bh))
(*unwritten) = 1;
else if (buffer_delay(bh))
......
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