Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1292709

Re: [PATCH 7/8] f2fs: introduce new option for controlling data flush

From Jaegeuk Kim <jaegeuk@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 7/8] f2fs: introduce new option for controlling data flush
Date 2015-12-16 03:50 +0100
Message-ID <qGak9-4gu-1@gated-at.bofh.it> (permalink)
References <qFQv9-8dt-21@gated-at.bofh.it> <qG5Xc-1EX-17@gated-at.bofh.it> <qGaau-4da-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Chao,

On Wed, Dec 16, 2015 at 10:38:27AM +0800, Chao Yu wrote:

...

> > > +++ b/fs/f2fs/super.c
> > > @@ -67,6 +67,7 @@ enum {
> > >  	Opt_extent_cache,
> > >  	Opt_noextent_cache,
> > >  	Opt_noinline_data,
> > > +	Opt_data_flush,
> > 
> > Need Opt_nodata_flush too.
> 
> We need this unless we set data_flush as a default option. Is that right?

I meant both of them.

Thanks,

> 
> Thanks,
> 
> > 
> > Thanks,
> > 
> > >  	Opt_nodiscard,
> > >  	Opt_err,
> > >  };
> > > @@ -92,6 +93,7 @@ static match_table_t f2fs_tokens = {
> > >  	{Opt_extent_cache, "extent_cache"},
> > >  	{Opt_noextent_cache, "noextent_cache"},
> > >  	{Opt_noinline_data, "noinline_data"},
> > > +	{Opt_data_flush, "data_flush"},
> > >  	{Opt_nodiscard, "nodiscard"},
> > >  	{Opt_err, NULL},
> > >  };
> > > @@ -411,6 +413,9 @@ static int parse_options(struct super_block *sb, char *options)
> > >  		case Opt_noinline_data:
> > >  			clear_opt(sbi, INLINE_DATA);
> > >  			break;
> > > +		case Opt_data_flush:
> > > +			clear_opt(sbi, DATA_FLUSH);
> > > +			break;
> > >  		default:
> > >  			f2fs_msg(sb, KERN_ERR,
> > >  				"Unrecognized mount option \"%s\" or missing value",
> > > @@ -694,6 +699,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
> > >  		seq_puts(seq, ",extent_cache");
> > >  	else
> > >  		seq_puts(seq, ",noextent_cache");
> > > +	if (test_opt(sbi, DATA_FLUSH))
> > > +		seq_puts(seq, ",data_flush");
> > >  	seq_printf(seq, ",active_logs=%u", sbi->active_logs);
> > >
> > >  	return 0;
> > > --
> > > 2.6.3
> > >
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 7/8] f2fs: introduce new option for controlling data flush Chao Yu <chao2.yu@samsung.com> - 2015-12-15 06:40 +0100
  Re: [f2fs-dev] [PATCH 7/8] f2fs: introduce new option for controlling  data flush Chao Yu <chao@kernel.org> - 2015-12-15 17:10 +0100
  Re: [PATCH 7/8] f2fs: introduce new option for controlling data flush Jaegeuk Kim <jaegeuk@kernel.org> - 2015-12-15 23:10 +0100
    RE: [PATCH 7/8] f2fs: introduce new option for controlling data flush Chao Yu <chao2.yu@samsung.com> - 2015-12-16 03:40 +0100
      Re: [PATCH 7/8] f2fs: introduce new option for controlling data flush Jaegeuk Kim <jaegeuk@kernel.org> - 2015-12-16 03:50 +0100
        RE: [PATCH 7/8] f2fs: introduce new option for controlling data flush Chao Yu <chao2.yu@samsung.com> - 2015-12-16 04:20 +0100
          Re: [PATCH 7/8] f2fs: introduce new option for controlling data flush Jaegeuk Kim <jaegeuk@kernel.org> - 2015-12-16 18:00 +0100

csiph-web