Re: [PATCH 3/3] AFS: Implement basic file write support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Howells
Date: Thursday, May 10, 2007 - 2:56 am

Nick Piggin <nickpiggin@yahoo.com.au> wrote:


It only seems that way.  If afs_prepare_write() is called, but doesn't return
an error, then afs_commit_write() will be called, and it seems that the copy
in of the data will be guaranteed not to fail by the caller.

Furthermore, afs_prepare_page() will have filled in the missing bits.

And whilst all that is going on, the page lock will be help by the caller, so
that no-one else can access the partially complete page.

I suppose I could call SetPageUptodate() in afs_commit_write() instead.

David
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/3] AFS: AFS fixups, David Howells, (Tue May 8, 12:44 pm)
[PATCH 3/3] AFS: Implement basic file write support, David Howells, (Tue May 8, 12:44 pm)
Re: [PATCH 3/3] AFS: Implement basic file write support, Andrew Morton, (Tue May 8, 5:00 pm)
Re: [PATCH 3/3] AFS: Implement basic file write support, Andrew Morton, (Wed May 9, 3:41 am)
Re: [PATCH 3/3] AFS: Implement basic file write support, Andrew Morton, (Wed May 9, 9:28 am)
Re: [PATCH 3/3] AFS: Implement basic file write support, David Howells, (Thu May 10, 2:56 am)
Re: [PATCH 3/3] AFS: Implement basic file write support, Nick Piggin, (Thu May 10, 11:14 pm)