From: Neil Brown <neilb@suse.de>
To: Avishay Traeger <atraeger@cs.sunysb.edu>
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 fix
Date: Mon, 13 Mar 2006 15:14:17 +1100 [thread overview]
Message-ID: <17428.61849.528648.270282@cse.unsw.edu.au> (raw)
In-Reply-To: message from Avishay Traeger on Sunday March 12
On Sunday March 12, atraeger@cs.sunysb.edu wrote:
> Did a quick scan - some minor corrections in text.
Thanks. The following patch incorporated most of them.
I didn't fix the indenting oddity that you noticed. The file is
wildly inconsistent in its uses of tabs or spaces for indenting. That
should be fixed up in a separate patch.
Thanks.
-----------------
Corrections to recent updates for vfs.txt
Thanks Avishay Traeger <atraeger@cs.sunysb.edu>
Cc: Avishay Traeger <atraeger@cs.sunysb.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
### Diffstat output
./Documentation/filesystems/vfs.txt | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff ./Documentation/filesystems/vfs.txt~current~ ./Documentation/filesystems/vfs.txt
--- ./Documentation/filesystems/vfs.txt~current~ 2006-03-13 10:58:13.000000000 +1100
+++ ./Documentation/filesystems/vfs.txt 2006-03-13 15:09:24.000000000 +1100
@@ -236,8 +236,9 @@ or bottom half).
contains a 'struct inode' embedded within it.
destroy_inode: this method is called by destroy_inode() to release
- resources allocated for struct inode. It is only required of
- ->alloc_inode was defined and simply does a deallocate.
+ resources allocated for struct inode. It is only required if
+ ->alloc_inode was defined and simply undoes anything done by
+ ->alloc_inode.
read_inode: this method is called to read a specific inode from the
mounted filesystem. The i_ino member in the struct inode is
@@ -550,7 +551,7 @@ struct address_space_operations {
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
+ and should make sure the page is unlocked, either synchronously
or asynchronously when the write operation completes.
If wbc->sync_mode is WB_SYNC_NONE, ->writepage doesn't have to
@@ -572,8 +573,8 @@ struct address_space_operations {
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.
+
This function is optional and is called only for pages with
PG_Writeback set while waiting for the writeback to complete.
@@ -595,7 +596,7 @@ struct address_space_operations {
PAGECACHE_TAG_DIRTY tag in the radix tree.
readpages: called by the VM to read pages associated with the address_space
- object. This is essentailly just a vector version of
+ object. This is essentially just a vector version of
readpage. Instead of just one page, several pages are
requested.
readpages is only used for readahead, so read errors are
@@ -606,10 +607,10 @@ struct address_space_operations {
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
+ internal house keeping. If the write will update parts of
+ any 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.
+ updated blocks can be written out properly.
The page will be locked. If prepare_write wants to unlock the
page it, like readpage, may do so and return
AOP_TRUNCATED_PAGE.
next prev parent reply other threads:[~2006-03-13 4:15 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
2006-03-13 4:14 ` Neil Brown [this message]
2006-03-13 4:58 ` 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=17428.61849.528648.270282@cse.unsw.edu.au \
--to=neilb@suse.de \
--cc=akpm@osdl.org \
--cc=atraeger@cs.sunysb.edu \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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).