From: Chris Mason <mason@suse.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] add -o flush for fat
Date: Sat, 5 Aug 2006 08:26:29 -0400 [thread overview]
Message-ID: <20060805122629.GG1048@watt.suse.com> (raw)
In-Reply-To: <20060804183149.954b0e59.akpm@osdl.org>
On Fri, Aug 04, 2006 at 06:31:49PM -0700, Andrew Morton wrote:
>
> Could we have more detail on what you're trying to do here?
>
> You've obviously made some decisions about how to handle under-writeback
> data, dirty data, integrity versus cleaning, etc. What were those
> decisions and what led you to them?
The basic idea is that someone watching the blinking light on the usb
stick knows that when the light goes out, he can pull the stick out.
It's an alternative to mount -o sync that it closer to what users are
asking for.
There's no attempt at integrity, it only tries to keep a fairly constant
flow of data to the device.
>
> We should document the precise semantics of these two functions, especially
> wrt data integrity, handling of dirty-but-under-writeback pages, etc.
> (Right now I'm not sure what those semantics are).
They are loosely defined. One way to handle
dirty-but-under-writeback pages is to add a timer that
filemap_fdatawrites the block device. Since fdatawrite is used in the
file release call, regular files don't need this, only the block device.
This timer isn't added in the patch, but it's an easy addition later.
>
> I'm also wondering what sync_inode(nr_to_write=0) does ;) I think it writes
> one page...
It starts a write on the inode and nothing else ;) There are lots of
ways to write the inode and wait, but this was the only one I found to
write the inode without waiting and then write the data pages while
waiting for in flight io.
-chris
next prev parent reply other threads:[~2006-08-05 12:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-04 19:27 [PATCH] add -o flush for fat Chris Mason
2006-08-05 1:31 ` Andrew Morton
2006-08-05 12:26 ` Chris Mason [this message]
2006-08-05 19:12 ` Andrew Morton
2006-08-05 20:54 ` OGAWA Hirofumi
2006-08-07 20:23 ` Chris Mason
2006-08-07 23:58 ` Andrew Morton
2006-08-08 8:05 ` Chris Mason
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=20060805122629.GG1048@watt.suse.com \
--to=mason@suse.com \
--cc=akpm@osdl.org \
--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).