diff options
author | 2017-01-17 11:41:43 -0800 | |
---|---|---|
committer | 2017-01-17 11:41:43 -0800 | |
commit | 1fc4d33fed124fb182e8e6c214e973a29389ae83 (patch) | |
tree | d9b1fe50fada342ee0d7e1eee47c8d79f1741a50 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | xfs: add missing include dependencies to xfs_dir2.h (diff) | |
download | linux-rng-1fc4d33fed124fb182e8e6c214e973a29389ae83.tar.xz linux-rng-1fc4d33fed124fb182e8e6c214e973a29389ae83.zip |
xfs: replace xfs_mode_to_ftype table with switch statement
The size of the xfs_mode_to_ftype[] conversion table
was too small to handle an invalid value of mode=S_IFMT.
Instead of fixing the table size, replace the conversion table
with a conversion helper that uses a switch statement.
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions