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
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate