diff options
author | Eric Sandeen <[email protected]> | 2018-04-16 23:07:27 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2018-04-17 17:10:17 -0700 |
commit | 2c4306f719b083d17df2963bc761777576b8ad1b (patch) | |
tree | fd579007adad2959affe07da1770c588b204f548 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b42db0860e13067fcc7cbfba3966c9e652668bbc (diff) |
xfs: set format back to extents if xfs_bmap_extents_to_btree
If xfs_bmap_extents_to_btree fails in a mode where we call
xfs_iroot_realloc(-1) to de-allocate the root, set the
format back to extents.
Otherwise we can assume we can dereference ifp->if_broot
based on the XFS_DINODE_FMT_BTREE format, and crash.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199423
Signed-off-by: Eric Sandeen <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions