Files
linux/fs
Chris Mason 16e9d54b3f Btrfs: don't delay inode ref updates during log replay
commit 6f8960541b upstream.

Commit 1d52c78afb (Btrfs: try not to ENOSPC on log replay) added a
check to skip delayed inode updates during log replay because it
confuses the enospc code.  But the delayed processing will end up
ignoring delayed refs from log replay because the inode itself wasn't
put through the delayed code.

This can end up triggering a warning at commit time:

WARNING: CPU: 2 PID: 778 at fs/btrfs/delayed-inode.c:1410 btrfs_assert_delayed_root_empty+0x32/0x34()

Which is repeated for each commit because we never process the delayed
inode ref update.

The fix used here is to change btrfs_delayed_delete_inode_ref to return
an error if we're currently in log replay.  The caller will do the ref
deletion immediately and everything will work properly.

Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-16 06:59:02 -08:00
..
2013-05-07 20:16:25 -07:00
2013-05-07 20:16:25 -07:00
2014-07-28 08:00:02 -07:00
2013-05-24 16:22:51 -07:00
2013-07-13 11:42:26 -07:00
2013-04-29 15:41:42 -04:00
2014-11-14 08:47:55 -08:00
2013-11-13 12:05:31 +09:00
2013-05-07 20:16:25 -07:00
2015-01-16 06:59:00 -08:00
2013-04-29 15:40:23 -04:00
2013-10-05 07:13:09 -07:00
2013-05-07 20:16:25 -07:00
2014-09-17 09:04:02 -07:00
2013-04-17 13:25:09 +01:00
2014-09-17 09:04:02 -07:00
2013-05-31 15:16:33 -04:00
2014-02-13 13:47:59 -08:00