diff options
| author | Josef Bacik <[email protected]> | 2022-06-13 15:09:48 -0400 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-07-25 17:45:34 +0200 |
| commit | f31f09f6be1c6c1a673e0566e258281a7bbaaa51 (patch) | |
| tree | 6b85adc65b4be2c3a4fed86d22d178a3df53637c /tools/perf/scripts/python/bin | |
| parent | 5bea2508811ec76105b01c90c1f1661024c257a9 (diff) | |
btrfs: tree-log: make the return value for log syncing consistent
Currently we will return 1 or -EAGAIN if we decide we need to commit
the transaction rather than sync the log. In practice this doesn't
really matter, we interpret any !0 and !BTRFS_NO_LOG_SYNC as needing to
commit the transaction. However this makes it hard to figure out what
the correct thing to do is.
Fix this up by defining BTRFS_LOG_FORCE_COMMIT and using this in all the
places where we want to force the transaction to be committed.
CC: [email protected] # 5.15+
Reviewed-by: Filipe Manana <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions