Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1990103rdh; Tue, 26 Sep 2023 09:05:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHo993D/Kw/BHftfFqOsXvalx/uIL6Pv+zR870w5hh7qST/zmjy61aG3wkYJzhJUZ1+uMTh X-Received: by 2002:a05:6a21:7897:b0:14e:6c19:60f6 with SMTP id bf23-20020a056a21789700b0014e6c1960f6mr9022581pzc.50.1695744338736; Tue, 26 Sep 2023 09:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695744338; cv=none; d=google.com; s=arc-20160816; b=svpfLr4nOxRUJhx0ZJo5rKVJgk+PZFkIv1BEddmUGmwE3WDXZQsqpZ73vj7QMjV+nM wOWBQNIo+GS+KAQKjhBeeHxkh6aDseZKKh7YN7pq5wG/ikhX3DgPoruKUy9UUucuLoQ+ 59WYdtuHV0eoTkZswghu2dpHiecArwm8XUBui4bWoLuFhkpXrVVzhWGkTKewRDZiMzcg XhW91IWb9sERbz7cS3yqZWz/9w71CsO9zdVfCP9XvxAlGHoXSbbNQ/dWiz2JuA+6jzlT gOlOMT0lhhn2neh2lFM6PKlaf+BgqqsVGXFj2gl+lw8iQU8b6ZKqslAGAL4TSG7LnV41 2WtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bipsNM2vsnkfa6VF7W6nu2gEgIj2EbOeaFC3oBg/8Kk=; fh=TgyFr4KfZ2i76Vyw2hkJpZqr/4RltJZeZveQHUBAGLY=; b=KOV4qbHnGeZvw7b8Hii/kYAkTDhUznQBkiuG2m3yafPiT6bf/zWk7ZOwVKEpfhba0/ /myFmjTNqxSHHscEnQEjDBV82J2DZrLFQvC7f7RBLmP0jSkrDVDlE4X3k1aV+0HJO7rd pvYCbVfLs30riIk4qY/vHBycnvb1NdlCGFHJZU2AdFnn0fCMQz+tzeQWehgHii4TwKy8 EVKjD9JqAOV3sn8C1x1yk/WzZzDBuWgxSSXCo3Enyjo0u94k4HlNUr48Spk4XOvxdDKz 1koqcy7J3E8axvccnFcGlBRO8gz3RtXnyFYszWT6Y0Oja97Gnhm3zEWlLl4d1/XLbYdb t48g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ARaEW4OK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id fo11-20020a056a00600b00b0068896ba4a3fsi12880362pfb.129.2023.09.26.09.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:05:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ARaEW4OK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 98E06822CB3E; Mon, 25 Sep 2023 22:10:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbjIZFKP (ORCPT + 99 others); Tue, 26 Sep 2023 01:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjIZFKN (ORCPT ); Tue, 26 Sep 2023 01:10:13 -0400 Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ACFAAF; Mon, 25 Sep 2023 22:10:03 -0700 (PDT) Received: by mail-vs1-xe30.google.com with SMTP id ada2fe7eead31-452962769bdso3587569137.3; Mon, 25 Sep 2023 22:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695705002; x=1696309802; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bipsNM2vsnkfa6VF7W6nu2gEgIj2EbOeaFC3oBg/8Kk=; b=ARaEW4OKPmev0+vQohzoM7CvkMOvBmdLdpA+6MMU0UaD5lABTOpwSjT7IuxG6NMZqe Wd2ktz+Af5F+rIEb27slCIiv2SXdSeG87ARpG1+RVmzqVbZWqLTf3TR0oZqfBRNeDDHy EHnMrIF2MxLKkBVY21opK7HlxaOvllHbg5ogrQbdNE5a2lmCR9d7Zt0UIEfMhUDVaNs2 vK/lvZUCbwYEn6lDL29f5m/Zu3oRo30u/heeHnoCsl7UDdX07IWWhEtlYagGHYYCvMXF ljD/S5bE1eGLxj6JgeOjQRQD35UHGabyqR04ru0d2C/vq3IRelT3E1BX/JxZ7Xpfh8QZ Qetg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695705002; x=1696309802; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bipsNM2vsnkfa6VF7W6nu2gEgIj2EbOeaFC3oBg/8Kk=; b=aY2ZD9/MwPksHZz276FvJMZMcN3woFu7R8uE5hwBUha/M+7ELw39CyKWqgdkE0WIgm kk7GC294dRCwNVqnJQQEgFK9VjY0Xqb+jKw/dprgrVw9HO0TvtlAmaL3cGjrmrBVY5ul 1ez+RH2edqVpgTsvWYV0UYH0YfTKl96lPrsEky+fxiwlD167bHn8yEZqrNWbjUxnsvgv V7pn73QxAMQfvO4v777wxINS//ADvNooJprQZCuWhx4a2KEJv0eBNDZ8EANdvR8s+A6J UfEhKGOKnjumGxfRMeeT4ijostrOGbMQ/dWZMH7kxqUHy3SN3xxcx5BH7aKOXo62mBQg 6h+g== X-Gm-Message-State: AOJu0YxSNzepkgD0aKHiqKkbdp7euZDawUi5D6crsOVhFcPVG/xd6al1 fp4EOLPFhJB+AE97LCWofyjoDVb/aHUSvvWcWOoxXBW1uKE= X-Received: by 2002:a05:6102:3bd5:b0:452:6aca:b9 with SMTP id a21-20020a0561023bd500b004526aca00b9mr5782100vsv.10.1695705002413; Mon, 25 Sep 2023 22:10:02 -0700 (PDT) MIME-Version: 1.0 References: <20230926102444.096ce797@canb.auug.org.au> In-Reply-To: <20230926102444.096ce797@canb.auug.org.au> From: Amir Goldstein Date: Tue, 26 Sep 2023 08:09:51 +0300 Message-ID: Subject: Re: linux-next: manual merge of the vfs-brauner tree with the overlayfs tree To: Stephen Rothwell Cc: Christian Brauner , Alessio Balsini , Jens Axboe , Linux Kernel Mailing List , Linux Next Mailing List , Miklos Szeredi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 22:10:16 -0700 (PDT) On Tue, Sep 26, 2023 at 3:24=E2=80=AFAM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the vfs-brauner tree got a conflict in: > > fs/overlayfs/file.c > > between commit: > > f8f29a49ec21 ("ovl: move ovl_file_accessed() to aio completion") > e57757c5d874 ("ovl: use simpler function to convert iocb to rw flags") > > from the overlayfs tree and commit: > > 2d1b3bbc3dd5 ("ovl: disable IOCB_DIO_CALLER_COMP") > > from the vfs-brauner tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc fs/overlayfs/file.c > index 05ec614f7054,693971d20280..000000000000 > --- a/fs/overlayfs/file.c > +++ b/fs/overlayfs/file.c > @@@ -398,16 -389,22 +398,22 @@@ static ssize_t ovl_write_iter(struct ki > goto out_fdput; > > if (!ovl_should_sync(OVL_FS(inode->i_sb))) > - ifl &=3D ~(IOCB_DSYNC | IOCB_SYNC); > + flags &=3D ~(IOCB_DSYNC | IOCB_SYNC); > > + /* > + * Overlayfs doesn't support deferred completions, don't copy > + * this property in case it is set by the issuer. > + */ > - ifl &=3D ~IOCB_DIO_CALLER_COMP; > ++ flags &=3D ~IOCB_DIO_CALLER_COMP; > + > - old_cred =3D ovl_override_creds(file_inode(file)->i_sb); > + old_cred =3D ovl_override_creds(inode->i_sb); > if (is_sync_kiocb(iocb)) { > + rwf_t rwf =3D iocb_to_rw_flags(flags); > + > file_start_write(real.file); > - ret =3D vfs_iter_write(real.file, iter, &iocb->ki_pos, > - ovl_iocb_to_rwf(ifl)); > + ret =3D vfs_iter_write(real.file, iter, &iocb->ki_pos, rw= f); > file_end_write(real.file); > - /* Update size */ > - ovl_copyattr(inode); > + ovl_rw_complete(iocb); > } else { > struct ovl_aio_req *aio_req; > Thanks Stephen, your fix is correct. Serves me right for doing an unnecessary var name change... Anyway, the conflict is with vfs.fixes branch destined for 6.6, so I will rebase overlayfs-next (for 6.7) as soon as vfs.fixes is merged. At this opportunity, I would like to ask you to add branch ovl-fixes from ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs.git to linux-next, because I will need to send some ovl fixes for 6.6 in the near future. Thanks, Amir.