• Jeff Mahoney's avatar
    Revert "Btrfs: don't delay inode ref updates during log, replay" · 081fafdd
    Jeff Mahoney authored
    This reverts commit 644d1071, upstream
    commit 6f896054.
    
    The original patch for mainline, 6f896054 (Btrfs: don't delay
    inode ref updates during log replay) lists 1d52c78a (Btrfs: try
    not to ENOSPC on log replay) as the only pre-3.18 dependency, but it
    also depends on 67de1176 (Btrfs: introduce the delayed inode ref
    deletion for the single link inode), which was introduced in 3.14
    and isn't in 3.12.y.
    
    The -stable commit added the check to btrfs_delayed_update_inode,
    which may look similar to btrfs_delayed_delete_inode_ref, but it's
    only superficial.  The tops of both functions handle typical
    delayed node boilerplate.  The upshot is that the patch is harmless
    since the caller already checks to see if we're doing log recovery,
    so we're not breaking anything.  It should be reverted because it
    makes it appear as if this issue was fixed for users who did
    backport 67de1176, when it is not.
    Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    081fafdd
delayed-inode.c 49.4 KB