From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Junling Zheng <zhengjunling@huawei.com>
Cc: linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [PATCH v2] f2fs: introduce "strict_fsync" for posix standard fsync
Date: Sun, 11 Feb 2018 16:07:18 -0800 [thread overview]
Message-ID: <20180212000718.GA44666@jaegeuk-macbookpro.roam.corp.google.com> (raw)
In-Reply-To: <b41911c9-4ae4-1918-f865-0a49e2a4a9f2@huawei.com>
On 02/11, Junling Zheng wrote:
> Hi, Jaegeuk
>
> On 2018/2/10 8:44, Jaegeuk Kim wrote:
> > On 02/02, Junling Zheng wrote:
> >> Commit "0a007b97aad6"(f2fs: recover directory operations by fsync)
> >> fixed xfstest generic/342 case, but it also increased the written
> >> data and caused the performance degradation. In most cases, there's
> >> no need to do so heavily fsync actually.
> >>
> >> So we introduce a new mount option "strict_fsync" to control the
> >> policy of fsync. It's set by default, and means that fsync follows
> >> POSIX semantics. And "nostrict_fsync" means that the behaviour is
> >> in line with xfs, ext4 and btrfs, where generic/342 will pass.
> >
> > How about adding "fsync=%s" to give another chance for fsync policies?
> >
>
> OK, I'll give patch v3 to change to "fsync=%s" format.
> BTW, which policy do u think should be the default behavior for f2fs? Posix
> or ext4?
The default should be like ext4 as fsync=strict. We may add fsync=posix for
this.
Thanks,
>
> Thanks
> Junling
>
> > Thanks,
> >
> >>
> >> Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
> >> Reviewed-by: Chao Yu <yuchao0@huawei.com>
> >> ---
> >> Documentation/filesystems/f2fs.txt | 4 ++++
> >> fs/f2fs/dir.c | 3 ++-
> >> fs/f2fs/f2fs.h | 1 +
> >> fs/f2fs/file.c | 3 ++-
> >> fs/f2fs/namei.c | 9 ++++++---
> >> fs/f2fs/super.c | 13 +++++++++++++
> >> 6 files changed, 28 insertions(+), 5 deletions(-)
> >>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
next prev parent reply other threads:[~2018-02-12 0:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 8:33 [PATCH v2] f2fs: introduce "strict_fsync" for posix standard fsync Junling Zheng
2018-02-10 0:44 ` Jaegeuk Kim
2018-02-11 2:37 ` Junling Zheng
2018-02-12 0:07 ` Jaegeuk Kim [this message]
2018-02-13 9:52 ` Chao Yu
2018-02-28 4:49 ` Jaegeuk Kim
2018-02-28 6:50 ` Chao Yu
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=20180212000718.GA44666@jaegeuk-macbookpro.roam.corp.google.com \
--to=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=zhengjunling@huawei.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).