summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/trace.c
diff options
context:
space:
mode:
authorSheng Yong <shengyong1@huawei.com>2017-03-08 03:47:11 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2017-03-22 03:34:24 +0100
commitb0beab5016d04009a7c1d4639ccb5b3d46dad56f (patch)
tree65ce60218bdc897f9a213a9b17d8fc114f90554c /fs/f2fs/trace.c
parentf2fs: add a punch discard command function (diff)
downloadlinux-b0beab5016d04009a7c1d4639ccb5b3d46dad56f.tar.xz
linux-b0beab5016d04009a7c1d4639ccb5b3d46dad56f.zip
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;