bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ext2fs and large stores (> 1.5G)


From: Neal H. Walfield
Subject: Re: [PATCH] ext2fs and large stores (> 1.5G)
Date: 04 May 2003 11:15:21 -0400
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

> Here is the solution[1] to the "record_global_poke" problem: the
> .dirty field is replaced by .dirty_count field.  Now a block in the
> cache is never reused while "use_count || dirty_count".  This forces
> us to use the same amount of disk_cache_clear(block) calls (old name
> was disk_image_clear) as disk_cache_release(block,1).  One problem
> arises: when indirect block is made many times dirty, this will
> increment dirty_count many times, but _pokel_exec will decrement
> dirty_count only once.  To solve it, I made pokel_add to return
> boolean value that indicates whether the passed memory region is
> already in the pokel.  If it is, then disk_cache_clear is called.

I think it makes the most sense to clear the dirty bit in
disk_pager_write_page.  This is when you are really flushing it to
backing store.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]