]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: increase output size for LOGICAL_INO_V2 ioctl
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 22 Sep 2017 17:58:47 +0000 (13:58 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 1 Nov 2017 19:45:35 +0000 (20:45 +0100)
commit588d6059c66c3cf11de2d150f941d675d9c8327e
treea12357bce68457e0757f030589dbed9f46336b5c
parent7f24280fa78cbee8ffec759d46eabf0e43977dd8
btrfs: increase output size for LOGICAL_INO_V2 ioctl

Build-server workloads have hundreds of references per file after dedup.
Multiply by a few snapshots and we quickly exhaust the limit of 2730
references per extent that can fit into a 64K buffer.

Raise the limit to 16M to be consistent with other btrfs ioctls
(e.g. TREE_SEARCH_V2, FILE_EXTENT_SAME).

To minimize surprising userspace behavior, apply this change only to
the LOGICAL_INO_V2 ioctl.

Signed-off-by: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
Reviewed-by: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
Tested-by: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c