diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-01-29 14:10:51 +0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 21:59:05 +0400 |
commit | 963d678b0f7649300e3a67f2513ca9d830c6e303 (patch) | |
tree | 4f7568f541891a7bbe8b279c98d21aec1cabe06f /fs/btrfs/btrfs_inode.h | |
parent | e2d845211eda9cf296e8edf6724b3d541f4fbfd5 (diff) | |
download | linux-963d678b0f7649300e3a67f2513ca9d830c6e303.tar.xz |
Btrfs: use percpu counter for fs_info->delalloc_bytes
fs_info->delalloc_bytes is accessed very frequently, so use percpu
counter instead of the u64 variant for it to reduce the lock
contention.
This patch also fixed the problem that we access the variant
without the lock protection.At worst, we would not flush the
delalloc inodes, and just return ENOSPC error when we still have
some free space in the fs.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
0 files changed, 0 insertions, 0 deletions