Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp188883pxb; Tue, 19 Oct 2021 00:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOWjjxj7HZ7BZX/uYaHK2lpZ8qwH6xQ0ZG7V1tcIdad6iqSMyu//NgNlf0l6GjvzGOCpjY X-Received: by 2002:aa7:cd99:: with SMTP id x25mr51389488edv.266.1634627887263; Tue, 19 Oct 2021 00:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634627887; cv=none; d=google.com; s=arc-20160816; b=cLN2iY1PfPXhtC+3pZHh3WXXUxrqIJ+Sx5RwRNPK0JKoWeEF1lyM7dBotXXQ0m7PnJ L+cVo73VTrpvB8H97CYZHo2GvVaNUJCzejXF7S6VmojpokvNEYT9+No/g7HHuY2CbuN+ Zj/iUIwQrSRORviOulJxToNnp6gsWzRwX1UU7DMlKBSqKH8fLveFW9aeaW2xd7jR1H3r dd/AcAPaRbihW1fCWKTj6RA23HclY62zV/CFoUGQUS3ms3K/D+YS2N874ZuEb5zHYyKv wpXfJHE9eraZn3jxzOUqI1zIHkQ/Iewzs7Exj6FW4L7t5tv+ea7MUB43U0uGz1lc3i0n 2/Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Hl1u9M0rl+9gSZUge+5bqfea4i7wHZvAs7wZITYpJJA=; b=R20n8NCrptRDhfhZhodC5R0qjSL7sxlEeIcyXWx65MrP87+zxRldYbpQ+IXMhBKom4 O2+8nFqD/LXy7nkZaVP/I6FbieMD6LEW/876BImgVTb1qmVFohdi470OJnxi6LuWxJGg 7UTwFvokCfoncN73H3Kv6/yGxxIf4eO/HNV0TrWVJ4r8moPlzCzkWYiPDzSnwtHh/Xpy h/3Px7sj/gp1Bv11I1jgPDSrlou9aa2X4ha8la4jUoo4zusLglznHCmHoY7UpW0RLiPp y/QGrnUQyMAGuMUX46otRhLjrcFW8W7AHvqEhFqSJ021SFCzfyiY7WGgdBde4nwZCOEo P97Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nlDfQiCw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si25778922edx.487.2021.10.19.00.17.43; Tue, 19 Oct 2021 00:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nlDfQiCw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234381AbhJSHRw (ORCPT + 99 others); Tue, 19 Oct 2021 03:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbhJSHRw (ORCPT ); Tue, 19 Oct 2021 03:17:52 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC50CC06161C; Tue, 19 Oct 2021 00:15:39 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id h10so17474943ilq.3; Tue, 19 Oct 2021 00:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hl1u9M0rl+9gSZUge+5bqfea4i7wHZvAs7wZITYpJJA=; b=nlDfQiCw4MTxALTdhD/5ocAg54hueHcy/dOILGBUU87jwiukUiMy/UmCkYBqhj+rVj I/a1WANgLOExWOwX/d1E+p+QVTtEVNWIEJryS/DPnZXj4O9q9uj7uvwkTB0E2h8SUJ37 AJYEQiTkTC9llejX7E7wbcgwQz8gAEyTabybDfshVqUzmiuH5dN7nXNX/ocoDdH4266d GbtPvd94vS1YRTh8hnIe1GcOIsvLSC3FonqrJsrKmgEPJ9/NxCu+DasngdEGCjPRwRYz +mJyaspMFaBQpeLrXD7jC1El18QDhzlPLz0N55yEFLOia05TmUeQF9N6T4MEOlqyGPY+ yDTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hl1u9M0rl+9gSZUge+5bqfea4i7wHZvAs7wZITYpJJA=; b=IUEmD526lTaYGYpb6EIJE2fqW4WQ9cRCgkcPLxM2Os55GEO3VeSrfluIkoG+r8Fdw8 g7q3dbnyS9AeF3vvcQJVnr4B3MFo7HRhtwPqkgwPTmN9yuNYlJx1Jp8eoJH/4RPo7ecb m5Nof8O8Q2wMqRlXrIYAhypBz5i7aGfzBZXHvENZgHog5J7v5uf9vfnP8GGNp7wtbJWZ UEnDiOIBXTRTAdkXPfNMtAjPvXL6Ms9CgF2uCfak23jbDCII4u/O1jKCrnjGH6rOL+eu bsZHOYRA9fj87PVQQtTaC+FfIruNCuKbE99MCLz73oiqmUzYCH1euL3CbBWAZ9i/xEC0 VmvQ== X-Gm-Message-State: AOAM533K9a4Bt1yumVzlWOAI5kedXoneerD2akWKtttBHb7KmdSQQO7V cT3DVXmZvJ5lhckLes+cBbrM3dTo5271XETU3ZY= X-Received: by 2002:a92:cd82:: with SMTP id r2mr18370814ilb.198.1634627739368; Tue, 19 Oct 2021 00:15:39 -0700 (PDT) MIME-Version: 1.0 References: <20210923130814.140814-1-cgxu519@mykernel.net> <20210923130814.140814-10-cgxu519@mykernel.net> In-Reply-To: <20210923130814.140814-10-cgxu519@mykernel.net> From: Amir Goldstein Date: Tue, 19 Oct 2021 10:15:28 +0300 Message-ID: Subject: Re: [RFC PATCH v5 09/10] fs: introduce new helper sync_fs_and_blockdev() To: Chengguang Xu Cc: Miklos Szeredi , Jan Kara , linux-fsdevel , overlayfs , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 4:08 PM Chengguang Xu wrote: > > Overlayfs needs to call upper layer's ->sync_fs > and __sync_blockdev() to sync metadata during syncfs(2). > > Currently, __sync_blockdev() does not export to module > so introduce new helper sync_fs_and_blockdev() to wrap > those operations. Heads up: looks like __sync_blockdev() will be gone soon, but you will have other exported symbols that overlayfs can use https://lore.kernel.org/linux-fsdevel/20211019062530.2174626-1-hch@lst.de/T/ Thanks, Amir.