]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: balance delayed inode updates
authorJosef Bacik <jbacik@fb.com>
Thu, 6 Feb 2014 21:06:06 +0000 (16:06 -0500)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:52 +0000 (15:15 -0400)
commit8567b92a9037bd591b82d8e7eba550260788ba70
tree2f1f68385417065407d6c17fc348866f5142bf7c
parent672074cf91625b6a6ba34f9e2739f7b8871d1c35
Btrfs: balance delayed inode updates

While trying to reproduce a delayed ref problem I noticed the box kept falling
over using all 80gb of my ram with btrfs_inode's and btrfs_delayed_node's.
Turns out this is because we only throttle delayed inode updates in
btrfs_dirty_inode, which doesn't actually get called that often, especially when
all you are doing is creating a bunch of files.  So balance delayed inode
updates everytime we create a new inode.  With this patch we no longer use up
all of our ram with delayed inode updates.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/inode.c