mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[PATCH] Make XFS use BH_Unwritten and BH_Delay correctly
Don't hide buffer_unwritten behind buffer_delay() and remove the hack that clears unexpected buffer_unwritten() states now that it can't happen. Signed-off-by: Dave Chinner <dgc@sgi.com> Acked-by: Christoph Hellwig <hch@lst.de> Cc: Timothy Shimmin <tes@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
33a266dda9
commit
6ab8eb1cff
1 changed files with 0 additions and 3 deletions
|
@ -56,8 +56,6 @@ xfs_count_page_state(
|
|||
do {
|
||||
if (buffer_uptodate(bh) && !buffer_mapped(bh))
|
||||
(*unmapped) = 1;
|
||||
else if (buffer_unwritten(bh) && !buffer_delay(bh))
|
||||
clear_buffer_unwritten(bh);
|
||||
else if (buffer_unwritten(bh))
|
||||
(*unwritten) = 1;
|
||||
else if (buffer_delay(bh))
|
||||
|
@ -1272,7 +1270,6 @@ __xfs_get_blocks(
|
|||
if (direct)
|
||||
bh_result->b_private = inode;
|
||||
set_buffer_unwritten(bh_result);
|
||||
set_buffer_delay(bh_result);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue