mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
Btrfs: mount -o max_inline=size to control the maximum inline extent size
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
291d673e6a
commit
6f568d35a0
5 changed files with 22 additions and 3 deletions
|
@ -301,7 +301,8 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
|
|||
*/
|
||||
inline_size = end_pos;
|
||||
if (isize >= BTRFS_MAX_INLINE_DATA_SIZE(root) ||
|
||||
inline_size > 8192 ||
|
||||
inline_size > root->fs_info->max_inline ||
|
||||
(inline_size & (root->sectorsize -1)) == 0 ||
|
||||
inline_size >= BTRFS_MAX_INLINE_DATA_SIZE(root)) {
|
||||
u64 last_end;
|
||||
u64 existing_delalloc = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue