diff options
author | David Sterba <dsterba@suse.com> | 2024-08-27 04:26:51 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-09-10 16:51:20 +0200 |
commit | df2825e98507d10cb037a308087ecd7cb3f6688d (patch) | |
tree | 31c3fc60e3e44b7f9f5941dfca85fd520c303096 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 11e3107d47cb266a284169f36c2293af3f397fdb (diff) |
btrfs: always pass readahead state to defrag
Defrag ioctl passes readahead from the file, but autodefrag does not
have a file so the readahead state is allocated when needed.
The autodefrag loop in cleaner thread iterates over inodes so we can
simply provide an on-stack readahead state and will not need to allocate
it in btrfs_defrag_file(). The size is 32 bytes which is acceptable.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions