btrfs: remove list_empty() check at warn_about_uncommitted_trans()
[sfrench/cifs-2.6.git] / fs / btrfs / disk-io.c
index 5a35c2c0bbc94d2cbfcdc48345c211c0b07ee5ae..0474e9b6d3023dd40db28618be44441d4047ad09 100644 (file)
@@ -4182,9 +4182,6 @@ static void warn_about_uncommitted_trans(struct btrfs_fs_info *fs_info)
        struct btrfs_transaction *tmp;
        bool found = false;
 
-       if (list_empty(&fs_info->trans_list))
-               return;
-
        /*
         * This function is only called at the very end of close_ctree(),
         * thus no other running transaction, no need to take trans_lock.