login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
16
Re: [PATCH] rd: Preserve the dirty bit in init_page_buffers()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Eric W. Biederman
Subject:
Re: [PATCH] rd: Preserve the dirty bit in init_page_buffers()
Date: Tuesday, October 16, 2007 - 2:35 am
Nick Piggin <nickpiggin@yahoo.com.au> writes:
quoted text
> On Tuesday 16 October 2007 08:40, Eric W. Biederman wrote: >> The problem: When we are trying to free buffers try_to_free_buffers() >> will look at ramdisk pages with clean buffer heads and remove the >> dirty bit from the page. Resulting in ramdisk pages with data that get >> removed from the page cache. Ouch! >> >> Buffer heads appear on ramdisk pages when a filesystem calls >> __getblk() which through a series of function calls eventually calls >> init_page_buffers(). >> >> So to fix the mismatch between buffer head and page state this patch >> modifies init_page_buffers() to transfer the dirty bit from the page to >> the buffer heads like we currently do for the uptodate bit. >> >> This patch is safe as only __getblk calls init_page_buffers, and >> there are only two implementations of block devices cached in the >> page cache. The generic implementation in block_dev.c and the >> implementation in rd.c. >> >> The generic implementation of block devices always does everything >> in terms of buffer heads so it always has buffer heads allocated >> before a page is marked dirty so this change does not affect it. > > This is probably a good idea. Was this causing the reiserfs problems? > If so, I think we should be concentrating on what the real problem > is with reiserfs... (or at least why this so obviously correct > looking patch is wrong).
I think it was my cleanup patch that was sitting on top of this, That caused the problems. Eric -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH resend] ramdisk: fix zeroed ramdisk pages on memory ...
, Christian Borntraeger
, (Mon Oct 15, 1:28 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Christian Borntraeger
, (Mon Oct 15, 2:05 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Andrew Morton
, (Mon Oct 15, 2:16 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Nick Piggin
, (Mon Oct 15, 7:06 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Nick Piggin
, (Mon Oct 15, 7:38 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Nick Piggin
, (Mon Oct 15, 8:23 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Eric W. Biederman
, (Mon Oct 15, 11:38 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Eric W. Biederman
, (Mon Oct 15, 3:37 pm)
[PATCH] rd: Preserve the dirty bit in init_page_buffers()
, Eric W. Biederman
, (Mon Oct 15, 3:40 pm)
[PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Mon Oct 15, 3:42 pm)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Eric W. Biederman
, (Mon Oct 15, 8:14 pm)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Eric W. Biederman
, (Mon Oct 15, 9:57 pm)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Nick Piggin
, (Mon Oct 15, 11:45 pm)
[patch][rfc] rewrite ramdisk
, Nick Piggin
, (Tue Oct 16, 12:47 am)
Re: [patch][rfc] rewrite ramdisk
, Jan Engelhardt
, (Tue Oct 16, 12:52 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Christian Borntraeger
, (Tue Oct 16, 12:56 am)
Re: Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, rubenjr_22
, (Tue Oct 16, 1:05 am)
Re: [patch][rfc] rewrite ramdisk
, Nick Piggin
, (Tue Oct 16, 1:07 am)
Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on me ...
, Nick Piggin
, (Tue Oct 16, 1:08 am)
Re: [PATCH] rd: Preserve the dirty bit in init_page_buffers()
, Nick Piggin
, (Tue Oct 16, 1:12 am)
Re: Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, rubenjr_22
, (Tue Oct 16, 1:13 am)
Re: [patch][rfc] rewrite ramdisk
, Jan Engelhardt
, (Tue Oct 16, 1:17 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Nick Piggin
, (Tue Oct 16, 1:19 am)
Re: [patch][rfc] rewrite ramdisk
, Nick Piggin
, (Tue Oct 16, 1:26 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Christian Borntraeger
, (Tue Oct 16, 1:48 am)
Re: [patch][rfc] rewrite ramdisk
, Jan Engelhardt
, (Tue Oct 16, 1:53 am)
Re: [patch][rfc] rewrite ramdisk
, Eric W. Biederman
, (Tue Oct 16, 2:08 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Tue Oct 16, 2:22 am)
Re: [PATCH] rd: Preserve the dirty bit in init_page_buffers()
, Eric W. Biederman
, (Tue Oct 16, 2:35 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Tue Oct 16, 12:06 pm)
Re: [patch][rfc] rewrite ramdisk
, Theodore Tso
, (Tue Oct 16, 2:28 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Nick Piggin
, (Tue Oct 16, 3:06 pm)
Re: [patch][rfc] rewrite ramdisk
, Nick Piggin
, (Tue Oct 16, 3:08 pm)
Re: [patch][rfc] rewrite ramdisk
, Eric W. Biederman
, (Tue Oct 16, 4:48 pm)
Re: [patch][rfc] rewrite ramdisk
, Nick Piggin
, (Tue Oct 16, 5:28 pm)
Re: [patch][rfc] rewrite ramdisk
, Eric W. Biederman
, (Tue Oct 16, 6:13 pm)
Re: [patch][rfc] rewrite ramdisk
, Nick Piggin
, (Tue Oct 16, 6:47 pm)
Re: [patch][rfc] rewrite ramdisk
, Eric W. Biederman
, (Wed Oct 17, 3:30 am)
Re: [patch][rfc] rewrite ramdisk
, Nick Piggin
, (Wed Oct 17, 5:49 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Christian Borntraeger
, (Wed Oct 17, 9:14 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Wed Oct 17, 10:57 am)
Re: [patch][rfc] rewrite ramdisk
, Eric W. Biederman
, (Wed Oct 17, 11:45 am)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Chris Mason
, (Wed Oct 17, 12:14 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Wed Oct 17, 1:29 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Chris Mason
, (Wed Oct 17, 1:54 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Wed Oct 17, 2:30 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Christian Borntraeger
, (Wed Oct 17, 2:48 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Wed Oct 17, 3:22 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Chris Mason
, (Wed Oct 17, 3:58 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Wed Oct 17, 4:28 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Chris Mason
, (Wed Oct 17, 5:03 pm)
Re: [patch][rfc] rewrite ramdisk
, Nick Piggin
, (Wed Oct 17, 6:06 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Wed Oct 17, 8:27 pm)
[RFC][PATCH] block: Isolate the buffer cache in it's own m ...
, Eric W. Biederman
, (Wed Oct 17, 8:59 pm)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Andrew Morton
, (Wed Oct 17, 9:32 pm)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Nick Piggin
, (Wed Oct 17, 10:10 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Christian Borntraeger
, (Thu Oct 18, 2:26 am)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Eric W. Biederman
, (Fri Oct 19, 2:27 pm)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Eric W. Biederman
, (Fri Oct 19, 2:35 pm)
Re: [PATCH] rd: Mark ramdisk buffers heads dirty
, Eric W. Biederman
, (Fri Oct 19, 3:46 pm)
[PATCH] rd: Use a private inode for backing storage
, Eric W. Biederman
, (Fri Oct 19, 3:51 pm)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Nick Piggin
, (Sat Oct 20, 9:24 pm)
Re: [PATCH] rd: Use a private inode for backing storage
, Nick Piggin
, (Sat Oct 20, 9:28 pm)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Eric W. Biederman
, (Sat Oct 20, 9:53 pm)
Re: [PATCH] rd: Use a private inode for backing storage
, Eric W. Biederman
, (Sat Oct 20, 10:10 pm)
Re: [PATCH] rd: Use a private inode for backing storage
, Nick Piggin
, (Sat Oct 20, 10:24 pm)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Nick Piggin
, (Sat Oct 20, 10:36 pm)
Re: [PATCH] rd: Use a private inode for backing storage
, Eric W. Biederman
, (Sat Oct 20, 11:48 pm)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, Eric W. Biederman
, (Sun Oct 21, 12:09 am)
Re: [PATCH] rd: Use a private inode for backing storage
, Christian Borntraeger
, (Sun Oct 21, 12:28 am)
Re: [PATCH] rd: Use a private inode for backing storage
, Eric W. Biederman
, (Sun Oct 21, 1:23 am)
Re: [PATCH] rd: Use a private inode for backing storage
, Nick Piggin
, (Sun Oct 21, 2:39 am)
Re: [PATCH] rd: Use a private inode for backing storage
, Nick Piggin
, (Sun Oct 21, 2:56 am)
Re: [PATCH] rd: Use a private inode for backing storage
, Eric W. Biederman
, (Sun Oct 21, 10:56 am)
Re: [PATCH] rd: Use a private inode for backing storage
, Eric W. Biederman
, (Sun Oct 21, 11:39 am)
Re: [RFC][PATCH] block: Isolate the buffer cache in it's o ...
, David Chinner
, (Sun Oct 21, 5:15 pm)
Re: [PATCH] rd: Use a private inode for backing storage
, Nick Piggin
, (Sun Oct 21, 5:29 pm)
Re: [PATCH] rd: Use a private inode for backing storage
, Nick Piggin
, (Sun Oct 21, 6:56 pm)
Re: [PATCH] rd: Use a private inode for backing storage
, Chris Mason
, (Mon Oct 22, 6:11 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate