From patchwork Fri Oct 5 00:47:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10627253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 95C671731 for ; Fri, 5 Oct 2018 00:47:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85F6E28F4F for ; Fri, 5 Oct 2018 00:47:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AD3028F83; Fri, 5 Oct 2018 00:47:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 305D728F4F for ; Fri, 5 Oct 2018 00:47:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbeJEHnv (ORCPT ); Fri, 5 Oct 2018 03:43:51 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:53782 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbeJEHnv (ORCPT ); Fri, 5 Oct 2018 03:43:51 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w950idAC029930; Fri, 5 Oct 2018 00:47:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=x1ji1heB0BRvJJ5Y2NRGgW29Wvw4MetfK/9up+SYc+s=; b=CgPobf/PcCdEtXOfiwPGJnloXcA7xBR6KgSpWaaDzsaB2ZTIS5oeMbk3gKrjSQhJbFnh bPqM9pGy5vwcFuoG/MgF1cGL9XjbztV9QzDYDsx8+9uN4uP0NGCbo7NRVsgD4XdfjDgR ue9UzgakXtc2hRuVxrz2vV0CZzCgcKbeiqL7fZasQsp4oiCzq/1lW3inONI4CuBP73g0 SFinn0Wg7Ws0jvWjb17Xe/9hvTa1l4YhNQYQy+URQaj45rkLXaP+lRHekbuNKGViia6P BlJlsKZQIzmGgibypzaQzvN+c4DzuBOaIflfyYFn3AyEFjImFGkhJ1pcTYasxHdsuDoq hw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2mt0tu7nmn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 Oct 2018 00:47:40 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w950ld1G017991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 5 Oct 2018 00:47:40 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w950ldFP012676; Fri, 5 Oct 2018 00:47:39 GMT Received: from localhost (/10.159.229.198) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Oct 2018 17:47:39 -0700 Subject: [PATCH v3 0/3] xfs-4.20: scrub fixes From: "Darrick J. Wong" To: david@fromorbit.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Thu, 04 Oct 2018 17:47:38 -0700 Message-ID: <153870045847.29695.10286947858219936840.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9036 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=861 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810050006 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, Here are a few online fsck fixes for 4.20. The first patch fixes the online repair "find AG btree root" function to ignore btree blocks that have siblings and to ignore a btree level if multiple sibling-less blocks are found. The second patch strengthens the buffer read functions to apply buffer ops (and verify the buffer contents) any time a caller tries to read a buffer with a given set of ops and the buffer doesn't have ops yet. The third patch fixes some buffer state management bugs so that we don't accidentally clobber b_ops on buffers that were already in-core when we try to find an AG header's btree root blocks. Comments and questions are, as always, welcome. --D