From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Martin Jambor <jamborm@gmail.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Bug in block_write_full_page (fs/buffer.c)?
Date: Mon, 6 Jun 2005 23:55:57 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.60.0506062351320.7523@hermes-1.csi.cam.ac.uk> (raw)
In-Reply-To: <8e70aacf05060613022b1466ff@mail.gmail.com>
Hi,
On Mon, 6 Jun 2005, Martin Jambor wrote:
> when block_write_full_page (fs/buffer.c) is called and the page is
> fully outside the i_size, the function does not call
> end_page_writeback() even though Documentation/filesystems/Locking
> explicitly says that any implementation of aops->writepage must do so
> in any case.
>
> "If no I/O is submitted, the filesystem must run end_page_writeback()
> against the page before returning from writepage."
>
> Is this a bug, is the documentation wrong or is it just me?
Just you. (-;
The sentence you quote applies only once set_page_writeback() has been
run which it hasn't in this case.
But this is beside the point. The point is that the code path you are
concerned about calls block_invalidatepage() which ends up calling
clear_page_dirty() for the kind of page we are discussing which in turn
clears the radix tree dirty tag so all is dandy.
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
prev parent reply other threads:[~2005-06-06 22:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8e70aacf05060519472206605e@mail.gmail.com>
2005-06-06 20:02 ` Bug in block_write_full_page (fs/buffer.c)? Martin Jambor
2005-06-06 22:55 ` Anton Altaparmakov [this message]
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=Pine.LNX.4.60.0506062351320.7523@hermes-1.csi.cam.ac.uk \
--to=aia21@cam.ac.uk \
--cc=jamborm@gmail.com \
--cc=linux-fsdevel@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).