From: Theodore Tso <tytso@mit.edu>
To: Christoph Hellwig <hch@infradead.org>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH 3/3] ext4: Use separate super_operations structure for no_journal filesystems
Date: Fri, 1 May 2009 09:48:04 -0400 [thread overview]
Message-ID: <20090501134804.GC7681@mit.edu> (raw)
In-Reply-To: <20090501070422.GB2107@infradead.org>
On Fri, May 01, 2009 at 03:04:22AM -0400, Christoph Hellwig wrote:
> On Fri, May 01, 2009 at 12:37:17AM -0400, Theodore Ts'o wrote:
> > By using a separate super_operations structure for filesystems that
> > have and don't have journals, we can simply ext4_write_super() ---
> > which is only needed when no journal is present --- and ext4_freeze(),
> > ext4_unfreeze(), and ext4_sync_fs(), which are only needed when the
> > journal is present.
>
> FYI: I will make ->sync_fs mandatory pretty soon. At that point
> ->write_super will only be left for d_dirt-induced periodic writeback.
> (Still have to figure out what to do about file_fsync, but that won't
> affect ext4)
So I'm guessing your plans are to have sys_sync() no longer call
write_super(), but to only call sync_fs()? If that's the case, I
think all we need to do is set ext4_nojournal_sops.sync_fs to be
ext4_commit_super.
I assume the idea is so that the filesystem can distinguish between
periodic s_dirt writeback versus a request to write the superblock
caused by an explicit fsync or sync system call?
- Ted
next prev parent reply other threads:[~2009-05-01 13:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-01 4:37 [PATCH 1/3] ext4: Simplify ext4_commit_super()'s function signature Theodore Ts'o
2009-05-01 4:37 ` [PATCH 2/3] ext4: Fix and simplify s_dirt handling Theodore Ts'o
2009-05-01 4:37 ` [PATCH 3/3] ext4: Use separate super_operations structure for no_journal filesystems Theodore Ts'o
2009-05-01 7:04 ` Christoph Hellwig
2009-05-01 13:48 ` Theodore Tso [this message]
2009-05-01 14:24 ` Christoph Hellwig
2009-05-01 10:42 ` Andreas Dilger
2009-05-01 13:49 ` Theodore Tso
2009-05-01 14:47 ` Christoph Hellwig
2009-05-01 16:55 ` [PATCH v2] " Theodore Ts'o
2009-05-01 7:02 ` [PATCH 2/3] ext4: Fix and simplify s_dirt handling Christoph Hellwig
2009-05-01 13:45 ` Theodore Tso
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=20090501134804.GC7681@mit.edu \
--to=tytso@mit.edu \
--cc=hch@infradead.org \
--cc=linux-ext4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.