aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-07-06 11:59:41 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-06 11:59:41 -0400
commita4c20b9a574b9720acf6c647eaff5e7e1e688086 (patch)
treed25c1d51c6f55de593028fde1276ea9976214014 /fs/btrfs/inode.c
parent9b51f04424e17051a89ab32d892ca66b2a104825 (diff)
parente3efe3db932b55ed34ba32862f568abae32046d0 (diff)
Merge branch 'for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
Pull percpu updates from Tejun Heo: "These are the percpu changes for the v4.13-rc1 merge window. There are a couple visibility related changes - tracepoints and allocator stats through debugfs, along with __ro_after_init markings and a cosmetic rename in percpu_counter. Please note that the simple O(#elements_in_the_chunk) area allocator used by percpu allocator is again showing scalability issues, primarily with bpf allocating and freeing large number of counters. Dennis is working on the replacement allocator and the percpu allocator will be seeing increased churns in the coming cycles" * 'for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu: percpu: fix static checker warnings in pcpu_destroy_chunk percpu: fix early calls for spinlock in pcpu_stats percpu: resolve err may not be initialized in pcpu_alloc percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch percpu: add tracepoint support for percpu memory percpu: expose statistics about percpu memory via debugfs percpu: migrate percpu data structures to internal header percpu: add missing lockdep_assert_held to func pcpu_free_area mark most percpu globals as __ro_after_init
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 8d050314591c..06dea7c89bbd 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1763,8 +1763,8 @@ static void btrfs_set_bit_hook(void *private_data,
1763 if (btrfs_is_testing(fs_info)) 1763 if (btrfs_is_testing(fs_info))
1764 return; 1764 return;
1765 1765
1766 __percpu_counter_add(&fs_info->delalloc_bytes, len, 1766 percpu_counter_add_batch(&fs_info->delalloc_bytes, len,
1767 fs_info->delalloc_batch); 1767 fs_info->delalloc_batch);
1768 spin_lock(&BTRFS_I(inode)->lock); 1768 spin_lock(&BTRFS_I(inode)->lock);
1769 BTRFS_I(inode)->delalloc_bytes += len; 1769 BTRFS_I(inode)->delalloc_bytes += len;
1770 if (*bits & EXTENT_DEFRAG) 1770 if (*bits & EXTENT_DEFRAG)
@@ -1838,8 +1838,8 @@ static void btrfs_clear_bit_hook(void *private_data,
1838 &inode->vfs_inode, 1838 &inode->vfs_inode,
1839 state->start, len); 1839 state->start, len);
1840 1840
1841 __percpu_counter_add(&fs_info->delalloc_bytes, -len, 1841 percpu_counter_add_batch(&fs_info->delalloc_bytes, -len,
1842 fs_info->delalloc_batch); 1842 fs_info->delalloc_batch);
1843 spin_lock(&inode->lock); 1843 spin_lock(&inode->lock);
1844 inode->delalloc_bytes -= len; 1844 inode->delalloc_bytes -= len;
1845 if (do_list && inode->delalloc_bytes == 0 && 1845 if (do_list && inode->delalloc_bytes == 0 &&