]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: print message when tree-log replay starts
authorDavid Sterba <dsterba@suse.com>
Wed, 5 Feb 2020 16:12:16 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:54:04 +0000 (19:54 +0100)
commit e8294f2f6aa6208ed0923aa6d70cea3be178309a upstream.

There's no logged information about tree-log replay although this is
something that points to previous unclean unmount. Other filesystems
report that as well.

Suggested-by: Chris Murphy <lists@colorremedies.com>
CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/disk-io.c

index 0c3c6450d1df4b06cd3593b493ce15572a08f8b7..c1e47db439e286b4ffc5f4759b2e8a575568ca07 100644 (file)
@@ -3164,6 +3164,7 @@ int __cold open_ctree(struct super_block *sb,
        /* do not make disk changes in broken FS or nologreplay is given */
        if (btrfs_super_log_root(disk_super) != 0 &&
            !btrfs_test_opt(fs_info, NOLOGREPLAY)) {
+               btrfs_info(fs_info, "start tree-log replay");
                ret = btrfs_replay_log(fs_info, fs_devices);
                if (ret) {
                        err = ret;