summaryrefslogtreecommitdiff
path: root/fs/f2fs/trace.c
diff options
context:
space:
mode:
authorSheng Yong <shengyong1@huawei.com>2017-03-08 05:47:11 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2017-03-22 05:34:24 +0300
commitb0beab5016d04009a7c1d4639ccb5b3d46dad56f (patch)
tree65ce60218bdc897f9a213a9b17d8fc114f90554c /fs/f2fs/trace.c
parent3d6a650febdd762c90fe477aa53b9413fd7d97df (diff)
downloadlinux-b0beab5016d04009a7c1d4639ccb5b3d46dad56f.tar.xz
f2fs: use parameter max_items instead of PIDVEC_SIZE
Signed-off-by: Sheng Yong <shengyong1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/trace.c')
-rw-r--r--fs/f2fs/trace.c2
1 files changed, 1 insertions, 1 deletions
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;