[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090402163712.GA25177@infradead.org>
Date: Thu, 2 Apr 2009 12:37:12 -0400
From: Christoph Hellwig <hch@...radead.org>
To: Nick Piggin <nickpiggin@...oo.com.au>
Cc: David Howells <dhowells@...hat.com>, hch@...radead.org,
viro@...iv.linux.org.uk, nfsv4@...ux-nfs.org,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 22/43] CacheFiles: Add a hook to write a single page of
data to an inode [ver #46]
On Fri, Apr 03, 2009 at 02:32:58AM +1100, Nick Piggin wrote:
> Hmm, I guess not all filesystems define write_begin/write_end. But if you
> only need to use ones that do define them?
No. write_begin/write_end are simply callbacks for the write helpers,
and locking for them is entirely filesystem-defined. E.g. xfs and the
cluster filesystems require additional locks taken first, and some
network filesystems require inode revalidations first.
They really should be taken out of the address_space_operations and
passed as callbacks to generic_file_aio_write & co.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists