projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d6a650
)
f2fs: use parameter max_items instead of PIDVEC_SIZE
author
Sheng Yong
<shengyong1@huawei.com>
Wed, 8 Mar 2017 02:47:11 +0000
(10:47 +0800)
committer
Jaegeuk 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/trace.c
b/fs/f2fs/trace.c
index 73b4e1d1912a7ff7370c1c6f2d649b770ed70acc..c82ab4048127b8cfbb8b2d35a996b9e154f3dcaf 100644
(file)
--- 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;