On Wed, 17 Jan 2007, Andrew Morton wrote: > > The inode lock is not taken when the page is dirtied. > > The inode_lock is taken when the address_space's first page is dirtied. It is > also taken when the address_space's last dirty page is cleaned. So the place > where the inode is added to and removed from sb->s_dirty is, I think, exactly > the place where we want to attach and detach address_space.dirty_page_nodemask. The problem there is that we do a GFP_ATOMIC allocation (no allocation context) that may fail when the first page is dirtied. We must therefore be able to subsequently allocate the nodemask_t in set_page_dirty(). Otherwise the first failure will mean that there will never be a dirty map for the inode/mapping. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- References:
- [RFC 0/8] Cpuset aware writeback
- From: Christoph Lameter <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Christoph Lameter <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Christoph Lameter <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Christoph Lameter <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Christoph Lameter <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Christoph Lameter <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Christoph Lameter <[email protected]>
- Re: [RFC 0/8] Cpuset aware writeback
- From: Andrew Morton <[email protected]>
- [RFC 0/8] Cpuset aware writeback
- Prev by Date: [RFC] pci_bus conversion to struct device
- Next by Date: Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work
- Previous by thread: Re: [RFC 0/8] Cpuset aware writeback
- Next by thread: Re: [RFC 0/8] Cpuset aware writeback
- Index(es):