summaryrefslogtreecommitdiff
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-12-08 16:39:32 +0300
committerDavid Sterba <dsterba@suse.com>2016-01-07 16:26:58 +0300
commit100d57025cce6bf568a10660c0d884bcc64c580e (patch)
tree1cee4de6fcbad6bae29d486e1b92861946a41eb8 /fs/btrfs/tests
parent0de270fa83d5a45664e3f2428d432145037ac432 (diff)
downloadlinux-100d57025cce6bf568a10660c0d884bcc64c580e.tar.xz
btrfs: don't use slab cache for struct btrfs_delalloc_work
Although we prefer to use separate caches for various structs, it seems better not to do that for struct btrfs_delalloc_work. Objects of this type are allocated rarely, when transaction commit calls btrfs_start_delalloc_roots, requesting delayed iputs. The objects are temporary (with some IO involved) but still allocated and freed within __start_delalloc_inodes. Memory allocation failure is handled. The slab cache is empty most of the time (observed on several systems), so if we need to allocate a new slab object, the first one has to allocate a full page. In a potential case of low memory conditions this might fail with higher probability compared to using the generic slab caches. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests')
0 files changed, 0 insertions, 0 deletions