]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: check bdi->dirty_exceeded when trying to skip data writes
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 27 Jun 2014 16:00:41 +0000 (01:00 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2014 23:23:19 +0000 (16:23 -0700)
commit3c9979727fa77a3a08eae5938d1ac0e4568d5997
treefc2ebaaf63acd3f98731214b421dd197e88683b9
parent43efa53d4ece1bee219320ce8451a5a211188375
f2fs: check bdi->dirty_exceeded when trying to skip data writes

commit 2743f865543c0c4a5e12fc13edb2bf89a6e9687c upstream.

If we don't check the current backing device status, balance_dirty_pages can
fall into infinite pausing routine.

This can be occurred when a lot of directories make a small number of dirty
dentry pages including files.

Reported-by: Brian Chadwick <brianchad@westnet.com.au>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/node.c