projects
/
platform
/
kernel
/
linux-rpi.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
|
history
diff --git
a/fs/f2fs/trace.c
b/fs/f2fs/trace.c
index
73b4e1d
..
c82ab40
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;