Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4692675pxu; Tue, 13 Oct 2020 05:05:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza0gYH0Mx/aILylAHNFRbtgxXvVtx1lRsoJEdWVONh9xOiM3cENU1roEXzfF8zyyRcie60 X-Received: by 2002:aa7:ce13:: with SMTP id d19mr19705341edv.68.1602590755449; Tue, 13 Oct 2020 05:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602590755; cv=none; d=google.com; s=arc-20160816; b=tZDwcskIRAT+5qAwvUUP4bqGLnY0qx1FF+cpJddl4xyVb1taXT3N/GR5ydQiDWOZpm WYjE4pYIQ+6vAlKHaT6hlDRUXKVXk9mjtEDKtdUD/BLffLhHW8hAEqzOmoE0+M80PjPl r6ehUp3wv0DwVAhT3G5gSjC3h3AcWktZPvs8tqEdKf1zUr+ra7oZ6RytSoOKs+tmgt1U +1ypS7Wh5JrAFAtmvvFQqkmPOVXOqCsIy4fRpHTaGck+q6pJ+mv718o5qSF4b4kbzOSG 7T57C/cvl8d4a86HGQojnPb86nRcGXDeRXCtcVig4BdGL6MHWf3hGTqBWi5Iv5jyv0f7 hANg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=ZnIDEDwpr8eBwiGr7pQeREGplO3SYMkRODVxaJ85l1g=; b=N+/nU81MMXsM8wpfgWSmHGg/Dw7VDAe8nVggwhnCla1exyCPyNXCkHCrLbgPnXl6k/ lV9/ePfGLrJ/PkRSM1KPvEJ9K0uqqU41BMhAMe2VDlMHVhZb7EzJavroahwmsl0ygEBP U75R81uaNpE0xeu6xUqABfCc3HlCFDIHTNmQWYkQwXiisMNRTwO0xGOnvMzQX1WEP4A4 +F7+6VSuCuNhtOZhCkYcDXFPSqxYNq5kC7kPrQWaxB59LJmxA+4wKInNAewnEas0VlCa qKRDKVZMiTOpb/6yfnqWJ2X97WBDXwD0KlHtBGIBXZh9se80QRpG3Z+YYVxVt8xYmPiY SVPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eVOthJSe; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si14166331ejr.369.2020.10.13.05.05.30; Tue, 13 Oct 2020 05:05:55 -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=@redhat.com header.s=mimecast20190719 header.b=eVOthJSe; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbgJMLWu (ORCPT + 99 others); Tue, 13 Oct 2020 07:22:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51417 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgJMLWt (ORCPT ); Tue, 13 Oct 2020 07:22:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602588167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=ZnIDEDwpr8eBwiGr7pQeREGplO3SYMkRODVxaJ85l1g=; b=eVOthJSeKYEB1U9AUSNAKzGuAWyd9vajYIXBwTRL+QaAUwxZz037I3ZWYqCcW/feGRD/+D 2xQA/waKmW9th8FRxQHq/dM5yGbtgmE6sLXViDmEtr4ax2y+cgU3OxSkaN0DPAFYVrKQWb CnQQgSWY1yh1g0aAMkP2JQBUSu50NUE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-485-Nv28aKXONLKvadgXPCDQ4Q-1; Tue, 13 Oct 2020 07:22:44 -0400 X-MC-Unique: Nv28aKXONLKvadgXPCDQ4Q-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7ECED802B63; Tue, 13 Oct 2020 11:22:42 +0000 (UTC) Received: from dresden.str.redhat.com (unknown [10.40.193.164]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B4ED6EF53; Tue, 13 Oct 2020 11:22:40 +0000 (UTC) Subject: Re: linux-next: manual merge of the fuse tree with Linus' tree To: Stephen Rothwell , Miklos Szeredi Cc: Al Viro , Linux Kernel Mailing List , Linux Next Mailing List , Miklos Szeredi References: <20201013104747.559128e7@canb.auug.org.au> From: Max Reitz Autocrypt: addr=mreitz@redhat.com; prefer-encrypt=mutual; keydata= mQENBFXOJlcBCADEyyhOTsoa/2ujoTRAJj4MKA21dkxxELVj3cuILpLTmtachWj7QW+TVG8U /PsMCFbpwsQR7oEy8eHHZwuGQsNpEtNC2G/L8Yka0BIBzv7dEgrPzIu+W3anZXQW4702+uES U29G8TP/NGfXRRHGlbBIH9KNUnOSUD2vRtpOLXkWsV5CN6vQFYgQfFvmp5ZpPeUe6xNplu8V mcTw8OSEDW/ZnxJc8TekCKZSpdzYoxfzjm7xGmZqB18VFwgJZlIibt1HE0EB4w5GsD7x5ekh awIe3RwoZgZDLQMdOitJ1t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j6ocscQyFwfib+xIe9w8TG1CVGkII7+TbS5pXHRxZH1niaRpoi/hYtgzkuOPp35jJyqT/ /ELbqQTDAWcqtJhzxKLE/ugcOMK520dJDeb6x2xVES+S5LXby0D4juZlvUj+1fwZu+7Io5+B bkhSVPb/QdOVTpnz7zWNyNw+OONo1aBUKkhq2UIByYXgORPFnbfMY7QWHcjpBVw9MgC4tGeF R4bv+1nAMMxKmb5VvQCExr0eFhJUAHAhVg== Message-ID: <8d19d870-a9b2-d3e1-c3f1-c86d8f910e92@redhat.com> Date: Tue, 13 Oct 2020 13:22:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20201013104747.559128e7@canb.auug.org.au> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mreitz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EsQqbSlWxec3Y7P46zVPPYUQ9VH7pXK5t" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EsQqbSlWxec3Y7P46zVPPYUQ9VH7pXK5t Content-Type: multipart/mixed; boundary="vYDyOkLdLMLiQzSXpB4Q7J4nLDtWdztoi" --vYDyOkLdLMLiQzSXpB4Q7J4nLDtWdztoi Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 13.10.20 01:47, Stephen Rothwell wrote: > Hi all, >=20 > Today's linux-next merge of the fuse tree got a conflict in: >=20 > fs/fuse/file.c >=20 > between commit: >=20 > 933a3752babc ("fuse: fix the ->direct_IO() treatment of iov_iter") >=20 > from Linus' tree and commit: >=20 > fcee216beb9c ("fuse: split fuse_mount off of fuse_conn") >=20 > from the fuse tree. >=20 > 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. Thanks! Semantically, the change looks good to me, I just noticed something about the indentation: > diff --cc fs/fuse/file.c > index 43c165e796da,53d4dd1ab992..000000000000 > --- a/fs/fuse/file.c > +++ b/fs/fuse/file.c > @@@ -3120,17 -3156,10 +3146,18 @@@ fuse_direct_IO(struct kiocb *iocb, str= u > =09 * By default, we want to optimize all I/Os with async request > =09 * submission to the client filesystem if supported. > =09 */ > - =09io->async =3D ff->fc->async_dio; > -=09io->async =3D async_dio; > ++=09io->async =3D ff->fm->fc->async_dio; > =09io->iocb =3D iocb; > =09io->blocking =3D is_sync_kiocb(iocb); > =20 > +=09/* optimization for short read */ > +=09if (io->async && !io->write && offset + count > i_size) { > - =09=09iov_iter_truncate(iter, fuse_round_up(ff->fc, i_size - offset)); > ++=09=09iov_iter_truncate(iter, fuse_round_up(ff->fm->fc, > ++=09=09=09=09 i_size - offset)); Personally, I=92d align this second line to the opening parenthesis of fuse_round_up() (as it is done in fcee216beb9c, in a hunk not shown here, probably because it=92s been dropped in the merge.). Max > +=09=09shortened =3D count - iov_iter_count(iter); > +=09=09count -=3D shortened; > +=09} > + > =09/* > =09 * We cannot asynchronously extend the size of a file. > =09 * In such case the aio will behave exactly like sync io. --vYDyOkLdLMLiQzSXpB4Q7J4nLDtWdztoi-- --EsQqbSlWxec3Y7P46zVPPYUQ9VH7pXK5t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEkb62CjDbPohX0Rgp9AfbAGHVz0AFAl+Fjf4ACgkQ9AfbAGHV z0AZhwf/QNpKDlur+ESJiRf2IxJ57RHyTIgY3U3RD0f/XIW1MF9SOD9CvYx1/xlJ x5Vc0DQhw+JLNL6plWWfP932EoTNAktXoqzJ6ff08msFCWBxlBFebpvXKTZPvkzO K1nNW3CbZKJ0MT5V6Vt49lXq6NSYQctq/oTUWKmuCtLAuhB8JgVHmJIhXfl0B7sW cXWkw1ZHbrcJXMSc+8n98Yy+sIhBnyTDmN1dxA2Z2lme80Xm/SG3mljtknNj+wba QSwK6LHbbB46z2qd8XUXDSeT1CC2+Vsc9QoQbRydXLuf2jVFcIMFb/8nDxSU7mpf 0woTu/EU8LwEAxXGV1vBIgw9sYUkRw== =ESf6 -----END PGP SIGNATURE----- --EsQqbSlWxec3Y7P46zVPPYUQ9VH7pXK5t--