mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
f2fs: fix to check warm_data_age_threshold
hot_data_age_threshold is a non-zero positive number, and condition 2 includes condition 1, so there is no need to additionally judge whether t is 0. And let's remove it. Signed-off-by: Yangtao Li <frank.li@vivo.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
b1c5ef26e4
commit
9b13a8662e
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(a->attr.name, "warm_data_age_threshold")) {
|
if (!strcmp(a->attr.name, "warm_data_age_threshold")) {
|
||||||
if (t == 0 || t <= sbi->hot_data_age_threshold)
|
if (t <= sbi->hot_data_age_threshold)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (t == *ui)
|
if (t == *ui)
|
||||||
return count;
|
return count;
|
||||||
|
|
Loading…
Reference in a new issue