Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736603
| From | Jan Kara <jack@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4] mm: introduce validity check on vm dirtiness settings |
| Date | 2017-09-21 14:00 +0200 |
| Message-ID | <us8j8-vE-23@gated-at.bofh.it> (permalink) |
| References | <us306-5ww-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu 21-09-17 21:59:52, Yafang Shao wrote:
> we can find the logic in domain_dirty_limits() that
> when dirty bg_thresh is bigger than dirty thresh,
> bg_thresh will be set as thresh * 1 / 2.
> if (bg_thresh >= thresh)
> bg_thresh = thresh / 2;
>
> But actually we can set vm background dirtiness bigger than
> vm dirtiness successfully. This behavior may mislead us.
> We'd better do this validity check at the beginning.
>
> Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Looks good. You can add:
Reviewed-by: Jan Kara <jack@suse.cz>
Just one nit below:
> +
> + /* needn't do validity check if the value is not different. */
> + if (ret == 0 && write && dirty_background_ratio != old_ratio) {
Whitespace before the comment is broken. Generally I don't think the
comment brings much so I'd just delete it.
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4] mm: introduce validity check on vm dirtiness settings Yafang Shao <laoar.shao@gmail.com> - 2017-09-21 08:20 +0200 Re: [PATCH v4] mm: introduce validity check on vm dirtiness settings Jan Kara <jack@suse.cz> - 2017-09-21 14:00 +0200
csiph-web