diff options
| author | David Sterba <[email protected]> | 2024-08-27 02:26:51 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-09-10 14:51:20 +0000 |
| commit | df2825e98507d10cb037a308087ecd7cb3f6688d (patch) | |
| tree | 31c3fc60e3e44b7f9f5941dfca85fd520c303096 /fs/btrfs/compression.c | |
| parent | btrfs: drop transaction parameter from btrfs_add_inode_defrag() (diff) | |
| download | kernel-df2825e98507d10cb037a308087ecd7cb3f6688d.tar.gz kernel-df2825e98507d10cb037a308087ecd7cb3f6688d.zip | |
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 <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions
