summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSheng Yong2017-03-08 03:47:11 +0100
committerJaegeuk Kim2017-03-22 03:34:24 +0100
commitb0beab5016d04009a7c1d4639ccb5b3d46dad56f (patch)
tree65ce60218bdc897f9a213a9b17d8fc114f90554c /fs
parentf2fs: add a punch discard command function (diff)
downloadkernel-qcow2-linux-b0beab5016d04009a7c1d4639ccb5b3d46dad56f.tar.gz
kernel-qcow2-linux-b0beab5016d04009a7c1d4639ccb5b3d46dad56f.tar.xz
kernel-qcow2-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')
-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;