From: Jeff Mahoney <jeffm@suse.com>
To: Jan Kara <jack@suse.cz>
Cc: reiserfs-devel@vger.kernel.org
Subject: Re: Does Reiser3 really support data=journal mode?
Date: Wed, 23 Apr 2008 09:16:15 -0400 [thread overview]
Message-ID: <480F369F.1030008@suse.com> (raw)
In-Reply-To: <20080423094320.GB32188@duck.suse.cz>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jan Kara wrote:
> On Tue 22-04-08 14:32:11, Jeff Mahoney wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Jan Kara wrote:
>>> Hello,
>>>
>>> I've just looked into the Reiserfs code in 2.6.25 kernel and from the code
>>> it seems as data=journal mode isn't really handled any specially from
>>> data=writeback mode. So does Reiserfs really support journaling of data?
>>> If no, then we should remove the mount option. If yes, then I really wonder
>>> where is the distinction from data=writeback mode... Thanks for an answer in
>>> advance.
>> Check out reiserfs_commit_page() for the code where it is attached to a
>> transaction. Then it's handled identically to dirty metadata when the
>> transaction is committed.
> Ah, I see, thanks. I was grepping for "reiserfs_data_log" but there is
> "reiserfs_file_data_log" which I completely missed.
> Maybe you can help me with my original problem :) - I have a file (quota
> file) and I need to make sure that all the dirty data and metadata of that
> file is on disk in its final locations (i.e., not only in journal). Will
> just starting an auxiliary transaction and then doing
> do_journal_end(th, sb, 1, FLUSH_ALL)
>
> do the work as I think? Thanks.
Are you sure that's what you want? That will essentially make quota
operations sync events. If it's in the journal and the system crashes,
then it will be flushed out to the file system on journal replay anyway.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIDzafLPWxlyuTD7IRAmp8AJ9qgewSiH/dHiCSfIkf1npHH9NkWwCgnE/2
iJEBJijZXnMwKesZ5TP+ckE=
=TLOA
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2008-04-23 13:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 14:17 Does Reiser3 really support data=journal mode? Jan Kara
2008-04-22 18:32 ` Jeff Mahoney
2008-04-23 9:43 ` Jan Kara
2008-04-23 13:16 ` Jeff Mahoney [this message]
2008-04-23 13:28 ` Jan Kara
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=480F369F.1030008@suse.com \
--to=jeffm@suse.com \
--cc=jack@suse.cz \
--cc=reiserfs-devel@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.