Re: [patch][rfc] change writepage prototype, introduce new page cleaning APIs

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

 



On Wed, Feb 25, 2009 at 05:40:52PM +0800, yawei niu wrote:
> On Wed, Feb 25, 2009 at 4:47 PM, Nick Piggin <npiggin@xxxxxxx> wrote:
> 
> > Hi,
> >
> > I have a problem with writepage because the caller clears the page dirty
> > bit before calling the filesystem. I want to do proper refcounting on
> > filesystem metadata in fsblock, and this includes pinning the metadata
> > when it is dirty.
> Is it possible that two threads trigger writepage on same page in this way?

It shouldn't be, because the filesystem would have to hold page lock
over the operation and until it either clears dirty, or decides it is
not going to do the writeback. No different from the former rules in
that respect.

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux