From: Andrew Morton <akpm@osdl.org>
To: Chris Mason <mason@suse.com>
Cc: linux-fsdevel@vger.kernel.org,
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Subject: Re: [PATCH] add -o flush for fat
Date: Mon, 7 Aug 2006 16:58:20 -0700 [thread overview]
Message-ID: <20060807165820.67e3417d.akpm@osdl.org> (raw)
In-Reply-To: <20060807202355.GF26133@watt.suse.com>
On Mon, 7 Aug 2006 16:23:55 -0400
Chris Mason <mason@suse.com> wrote:
> Fat is commonly used on removable media. Mounting with -o flush tells the
> FS to write things to disk as quickly as possible. It is like -o sync, but
> much faster (and not as safe).
>
OK, so it's now fat-specific. That makes it easier, and still useful.
> @@ -112,6 +113,16 @@ int fat_generic_ioctl(struct inode *inod
> }
> }
>
> +static int fat_file_release(struct inode *inode, struct file *filp)
> +{
> + if ((filp->f_mode & FMODE_WRITE) &&
> + MSDOS_SB(inode->i_sb)->options.flush) {
> + fat_flush_inodes(inode->i_sb, inode, NULL);
> + blk_congestion_wait(WRITE, HZ/10);
> + }
> + return 0;
> +}
What's the blk_congestion_wait() for?
next prev parent reply other threads:[~2006-08-07 23:58 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
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 [this message]
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=20060807165820.67e3417d.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mason@suse.com \
/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).