diff options
| author | Qu Wenruo <wqu@suse.com> | 2026-09-24 15:28:15 +0930 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-12 19:16:23 +0200 |
| commit | 4c13c58bcd447f4b92a7a190bf9ec18a45c1654c (patch) | |
| tree | a8e623c282eaead47c9773017e5ac25f67088589 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 93aac90b2d5bce5697d43d7b664102abe3f649c1 (diff) | |
| download | linux-4c13c58bcd447f4b92a7a190bf9ec18a45c1654c.tar.gz linux-4c13c58bcd447f4b92a7a190bf9ec18a45c1654c.zip | |
btrfs: remove __TRANS_FREEZABLE
Inside transaction.c most TRANS_* flags are just a single bit, but there
are 2 exceptions:
- TRANS_START
Which is (__TRANS_START | __TRANS_FREEZABLE)
- TRANS_JOIN
Which is (__TRANS_JOIN | __TRANS_FREEZABLE)
The extra __TRANS_FREEZABLE flag indicates that those operations need
to acquire sb intwrite lock to handle fs freezing.
However since there are only two operations requiring sb intwrite lock,
there is no need to introduce a dedicated flag for it, we can introduce
a new TRANS_SB_INTWRITER_MASK to cover the only two cases, then use that
new mask to determine whether the type requires sb intwrite lock.
This makes all TRANS_* flags a single bit.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
