aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2022-04-21 11:03:09 +0100
committerDavid Sterba <[email protected]>2022-04-27 22:20:21 +0200
commit193b4e83986d7ee6caa8ceefb5ee9f58240fbee0 (patch)
treed37c519c9895d71e5e200c160bd2a8c231b06cb7 /tools/perf/scripts/python/intel-pt-events.py
parentd0e64a981fd841cb0f28fcd6afcac55e6f1e6994 (diff)
btrfs: do not BUG_ON() on failure to update inode when setting xattr
We are doing a BUG_ON() if we fail to update an inode after setting (or clearing) a xattr, but there's really no reason to not instead simply abort the transaction and return the error to the caller. This should be a rare error because we have previously reserved enough metadata space to update the inode and the delayed inode should have already been setup, so an -ENOSPC or -ENOMEM, which are the possible errors, are very unlikely to happen. So replace the BUG_ON()s with a transaction abort. CC: [email protected] # 4.9+ Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions