From: Avishay Traeger <atraeger@cs.sunysb.edu>
To: NeilBrown <neilb@suse.de>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 001 of 4] Update some VFS documentation.
Date: Sun, 12 Mar 2006 19:22:37 -0500 [thread overview]
Message-ID: <1142209357.14406.10.camel@ool-44c32f98.dyn.optonline.net> (raw)
In-Reply-To: <1060312235316.15942@suse.de>
Did a quick scan - some minor corrections in text.
On Mon, 2006-03-13 at 10:53 +1100, NeilBrown wrote:
<snip>
> destroy_inode: this method is called by destroy_inode() to release
> - resources allocated for struct inode.
> + resources allocated for struct inode. It is only required of
"of" -> "if"
> + ->alloc_inode was defined and simply does a deallocate.
"simply does a deallocate" -> "undoes anything done by ->alloc_inode"
<snip>
> +The first can be used independantly to the others. The vm can try to
"independantly" -> "independently"
<snip>
> - writepage: called by the VM write a dirty page to backing store.
> + writepage: called by the VM to write a dirty page to backing store.
> + This may happen for data integrity reason (i.e. 'sync'), or
> + to free up memory (flush). The difference can be seen in
> + wbc->sync_mode.
> + The PG_Dirty flag has been cleared and PageLocked is true.
> + writepage should start writeout, should set PG_Writeback,
> + and should make sure the page is Unlocked, either synchronously
"Unlocked" -> "unlocked"
<snip>
>
> sync_page: called by the VM to notify the backing store to perform all
> queued I/O operations for a page. I/O operations for other pages
> - associated with this address_space object may also be performed.
> + associated with this address_space object may also be
> + performed.
Why did this line get split?
<snip>
> set_page_dirty: called by the VM to set a page dirty.
> + This is particularly needed if an address space attaches
> + private data to a page, and that data needs to be updated when
> + a page is dirtied. This is called, for example, when a memory
> + mapped page gets modified.
> + If defined, it should set the PageDirty flag, and the
> + PAGECACHE_TAG_DIRTY tag in the radix tree.
Indentation is off by one.
> readpages: called by the VM to read pages associated with the address_space
> - object.
> + object. This is essentailly just a vector version of
"essentailly" -> "essentially"
> + readpage. Instead of just one page, several pages are
> + requested.
> + readpages is only used for readahead, so read errors are
> + ignored. If anything goes wrong, feel free to give up.
>
> prepare_write: called by the generic write path in VM to set up a write
> - request for a page.
> -
> - commit_write: called by the generic write path in VM to write page to
> - its backing store.
> + request for a page. This indicates to the address space that
> + the given range of bytes are about to be written. The
> + address_space should check that the write will be able to
> + complete, by allocating space if necessary and doing any other
> + internal house keeping. If the write will update parts some
> + some basic-blocks on storage, then those blocks should be
> + pre-read (if they haven't been read already) so that the
> + update will not leave half-blocks that need to be written out.
"some" appears twice in a row in this last sentence. Anyway, it is
confusing. I would re-word it to something like:
"If the write will update partial storage blocks, those blocks should be
read at this point (if they haven't been already) so that the updated
blocks can be properly written out."
<snip>
Avishay Traeger
http://www.fsl.cs.sunysb.edu/~avishay/
next prev parent reply other threads:[~2006-03-13 0:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-12 23:53 [PATCH 000 of 4] Introduction: VFS documentation and tidy up NeilBrown
2006-03-12 23:53 ` [PATCH 001 of 4] Update some VFS documentation NeilBrown
2006-03-13 0:22 ` Avishay Traeger [this message]
2006-03-13 4:14 ` [PATCH 001 of 4] Update some VFS documentation fix Neil Brown
2006-03-13 4:58 ` [PATCH 001 of 4] Update some VFS documentation Randy.Dunlap
2006-03-12 23:53 ` [PATCH 002 of 4] Honour AOP_TRUNCATE_PAGE returns in page_symlink NeilBrown
2006-03-12 23:53 ` [PATCH 003 of 4] Make address_space_operations->sync_page return void NeilBrown
2006-03-12 23:53 ` [PATCH 004 of 4] Make address_space_operations->invalidatepage " NeilBrown
2006-03-13 16:32 ` Dave Kleikamp
2006-03-13 19:13 ` Dave Kleikamp
2006-03-13 21:36 ` Andrew Morton
2006-03-13 23:05 ` Neil Brown
2006-03-13 23:10 ` Neil Brown
2006-03-13 23:22 ` Dave Kleikamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1142209357.14406.10.camel@ool-44c32f98.dyn.optonline.net \
--to=atraeger@cs.sunysb.edu \
--cc=akpm@osdl.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).