From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: PG_updatodate vs BH_updatodate Date: Sun, 23 Nov 2008 05:21:24 -0700 Message-ID: <20081123122124.GH5707@parisc-linux.org> References: <20081123041938.GW3186@webber.adilger.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andreas Dilger , linux-fsdevel@vger.kernel.org To: Francis Moreau Return-path: Received: from palinux.external.hp.com ([192.25.206.14]:38538 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758733AbYKWMV0 (ORCPT ); Sun, 23 Nov 2008 07:21:26 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Nov 23, 2008 at 01:14:52PM +0100, Francis Moreau wrote: > Hello, > > Thanks for your answer. > > Andreas Dilger writes: > > > There may be multiple buffers on a single page, and in some cases > > one buffer on a page can be uptodate while another buffer on the > > same page is not. > > Can this really happen ? Yes. > Are there any cases where a page can be partially uptodate ? Consider a filesystem with 1k blocks and a system with a page size of 4k. You have a buffer_head for each of the four blocks that are being kept in the page, and you want to track their dirty state independently. For file data, no this doesn't happen. But for metadata, it happens quite easily. -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."