diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-04-19 20:38:33 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-24 23:13:22 +0300 |
commit | d66450e77350d47ac865a56fec4a62dfcc7756ae (patch) | |
tree | 12c69a3dd4acb26a84a95cd2668a5eafcc6d964d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d579324998a39fa6e13edea2f06506840df9b729 (diff) | |
download | linux-d66450e77350d47ac865a56fec4a62dfcc7756ae.tar.xz |
f2fs: improve definition of statistic macros
With a recent addition of f2fs_lookup_extent_tree(), we get a warning about
the use of empty macros:
fs/f2fs/extent_cache.c: In function 'f2fs_lookup_extent_tree':
fs/f2fs/extent_cache.c:358:32: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
stat_inc_rbtree_node_hit(sbi);
A good way to avoid the warning and make the code more robust is to define
all no-op macros as 'do { } while (0)'.
Fixes: 54c2258cd63a ("f2fs: extract rb-tree operation infrastructure")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reivewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions