| To: | linux-fsdevel@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 2 of 2]: Make XFS use BH_Unwritten and BH_Delay correctly |
| From: | David Chinner <dgc@xxxxxxx> |
| Date: | Wed, 10 Jan 2007 11:38:19 +1100 |
| Cc: | hch@xxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.2.1i |
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@xxxxxxx>
---
fs/xfs/linux-2.6/xfs_aops.c | 3 ---
1 file changed, 29 deletions(-)
Index: 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_aops.c
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/linux-2.6/xfs_aops.c 2007-01-08
12:21:40.000000000 +1100
+++ 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_aops.c 2007-01-09 11:05:09.763127643
+1100
@@ -58,8 +58,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))
@@ -1271,7 +1269,6 @@ __xfs_get_blocks(
if (direct)
bh_result->b_private = inode;
set_buffer_unwritten(bh_result);
- set_buffer_delay(bh_result);
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1 of 2]: Make BH_Unwritten a first class bufferhead flag V2, David Chinner |
|---|---|
| Next by Date: | Re: bd_mount_mutex -> bd_mount_sem (was Re: xfs_file_ioctl / xfs_freeze: BUG: warning at kernel/mutex-debug.c:80/debug_mutex_unlock()), David Chinner |
| Previous by Thread: | [PATCH 1 of 2]: Make BH_Unwritten a first class bufferhead flag V2, David Chinner |
| Next by Thread: | TAKE 959978 - growing an XFS filesystem by more than 2TB is broken, David Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |