f2fs: use parameter max_items instead of PIDVEC_SIZE
authorSheng Yong <shengyong1@huawei.com>
Wed, 8 Mar 2017 02:47:11 +0000 (10:47 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Mar 2017 02:34:24 +0000 (22:34 -0400)
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/trace.c

index 73b4e1d1912a7ff7370c1c6f2d649b770ed70acc..c82ab4048127b8cfbb8b2d35a996b9e154f3dcaf 100644 (file)
@@ -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;