From: Sheng Yong Date: Wed, 8 Mar 2017 02:47:11 +0000 (+0800) Subject: f2fs: use parameter max_items instead of PIDVEC_SIZE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0beab5016d04009a7c1d4639ccb5b3d46dad56f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git f2fs: use parameter max_items instead of PIDVEC_SIZE Signed-off-by: Sheng Yong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/trace.c b/fs/f2fs/trace.c index 73b4e1d1912a..c82ab4048127 100644 --- a/fs/f2fs/trace.c +++ b/fs/f2fs/trace.c @@ -138,7 +138,7 @@ static unsigned int gang_lookup_pids(pid_t *results, unsigned long first_index, radix_tree_for_each_slot(slot, &pids, &iter, first_index) { results[ret] = iter.index; - if (++ret == PIDVEC_SIZE) + if (++ret == max_items) break; } return ret;