diff options
| author | Daniel Vacek <[email protected]> | 2025-03-06 13:15:35 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-03-18 19:35:50 +0000 |
| commit | fc5c0c5825874859069ac44c367c724acd7190fb (patch) | |
| tree | 3b3e5fb0a15f714baa7ff7a786c56ee2d3861be1 /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: send: simplify return logic from send_encoded_extent() (diff) | |
| download | kernel-fc5c0c5825874859069ac44c367c724acd7190fb.tar.gz kernel-fc5c0c5825874859069ac44c367c724acd7190fb.zip | |
btrfs: defrag: extend ioctl to accept compression levels
The zstd and zlib compression types support setting compression levels.
Enhance the defrag interface to specify the levels as well. For zstd the
negative (realtime) levels are also accepted.
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Daniel Vacek <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index ca1cd600f5d2..cd5c8b595ebb 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -145,6 +145,7 @@ struct btrfs_inode { * different from prop_compress and takes precedence if set. */ u8 defrag_compress; + s8 defrag_compress_level; /* * Lock for counters and all fields used to determine if the inode is in |
