Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp872637ybl; Tue, 13 Aug 2019 04:04:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvyVg3pZLHqQyyFyU26KHjvYILHHccwpjsk0QehuIl4GNfz6YMehTyDqjNvsoLvtU7eCDx X-Received: by 2002:a17:902:a509:: with SMTP id s9mr13698747plq.310.1565694284927; Tue, 13 Aug 2019 04:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565694284; cv=none; d=google.com; s=arc-20160816; b=Z4xr07iebl/iLXUE8+LNEbeth1O50rJ/WPZgiRDZqfRZawkijCAp8v+EI+aOhqo2I3 EGc/i7ATQ8jxXgo6A4ec8X4tX0sumyhv15dsW1oviLJTkDN0HS4n2cYR1ZVnWesSkNLK VkYW1YK4FWn/wNSCCzxJpfXLQB7gJ6Im5aIDf9JK+vu6+boyiul9zwSshEu8z66TtalG D4rSovpNXslQ276SiuGkxj5+bXpyiM4Nr1eYToAxL2CqHYkUW4vEw5sOTSJbOCkFbUBz pXK5xcPo6SjZFWPgGAR4IIokO4XeeRIw5GqXI8vDT//NZymBEmeNErhOFIxMPX0rs6UR UfkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1qklavnkTkWQJy1JopwbXdEDiZx8NzuMuRiS/ag2Wgs=; b=EC7SylKtN+Ul81nRuKLr1QQt71zB+pa+rhFZai3sEPgAmVsOhiWQTLlqdmaC2gi3lm t8iEHosQ11ZxN47pgUX2GW3clQATiKFnFB4u7hjzkZvvB07kvI7fRp50TpPhhkCJMFvQ SXcZVxnIqCloopCPLQyDmcfkKweeGGA6RQ5WxTOisAelRxVlWByV+MxHGJsoZ4NIXoPN XHnowgdKy3EqgNVW/rC0QmZ69vYRjbJs8iPnnM5qfo84SGEtubBjVfruVpfmXUIY05PO 8RVHTTNXcz8IP/DfxUPYCnsEsaHHy/2qrRIFo8th+YDcOGoH1LuKa0u4JZhkJKeiM4fs rZYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=GCczMx5e; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 189si27357757pfe.189.2019.08.13.04.04.18; Tue, 13 Aug 2019 04:04:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=GCczMx5e; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbfHMKn5 (ORCPT + 99 others); Tue, 13 Aug 2019 06:43:57 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36883 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728004AbfHMKn4 (ORCPT ); Tue, 13 Aug 2019 06:43:56 -0400 Received: by mail-pg1-f194.google.com with SMTP id d1so18236307pgp.4 for ; Tue, 13 Aug 2019 03:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mbobrowski-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1qklavnkTkWQJy1JopwbXdEDiZx8NzuMuRiS/ag2Wgs=; b=GCczMx5epHAUCi8ppC9r92rGWtBdcIQUaqjdTrk2/fLntT8fEjLlxy9wRHZA3xU+ql 3AwKB5s/DdQSlqfXDvR6Yh38AqJi/OgU8DqHW4kkdWsD15nccdwZ+qeW5KUE9UGAiwVX Mfxo/pTPVsm/3eKj4AAe77vE+bWXeyC9VxVlzfLIXOyq5iDU8vG9IKA/60wNlfyd1t3t hDXd1dUbNocIdUK3+W562n07rN3luWkV9n44OQSKbt8DtJPST3sLvsF4Apb4bpkEFb9m myTSHbPHUrjhGOFwV7nH5zd6xIgmGUIz6Qa5DgI41ym2t1h4Yz+NK2QLHQuQ5IAPmamW DCIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1qklavnkTkWQJy1JopwbXdEDiZx8NzuMuRiS/ag2Wgs=; b=BMEJ2WDuEc3UDCHESH0B0FkOk6ce+ekdQGeRjAtzVHKbpwUufKxUwDvZPmubEDQZ1P pXCOGEhsREDXYTiJwuUgYk5ZGrIDdifC1BnleDWIZcWu8vjxDtcLlIBHSRg1oyn7PnM8 a9eR2qxiLbV0jxfqhO8V8P6jrfWQbFI0+cz9zjhZV5brUiQEDfWdKHDdX3xqKH4Txm7t J5wk1HJ7LdsFo1O0emUAIj4W0L1IFXJ4IvhGvYCcUoveDH2X+H+f62HG3H4fhdsHV+G6 j89ee1lJ60BuUBlkCIoLvS77kOmK7a8arWzZ7Na0/nVMZKxebNtIMGyxZh3YHpKecK3X th0A== X-Gm-Message-State: APjAAAUt8gsAPq+Kvxlap+p1g9Lw4fbwXjVclN18lNDUSCdDG9oSHaYm 4yGv2IHSXIlUZ8LGAWKsD1Fo X-Received: by 2002:aa7:96ee:: with SMTP id i14mr19469600pfq.217.1565693035778; Tue, 13 Aug 2019 03:43:55 -0700 (PDT) Received: from poseidon.bobrowski.net ([114.78.226.167]) by smtp.gmail.com with ESMTPSA id n7sm123051936pff.59.2019.08.13.03.43.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 13 Aug 2019 03:43:55 -0700 (PDT) Date: Tue, 13 Aug 2019 20:43:49 +1000 From: Matthew Bobrowski To: Christoph Hellwig Cc: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, jack@suse.cz, tytso@mit.edu, riteshh@linux.ibm.com Subject: Re: [PATCH 3/5] iomap: modify ->end_io() calling convention Message-ID: <20190813104347.GA27628@poseidon.bobrowski.net> References: <20190812171832.GA24564@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812171832.GA24564@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Aug 12, 2019 at 10:18:32AM -0700, Christoph Hellwig wrote: > please add linux-xfs to the cc list for the whole series. Besides > touching xfs itself it is also mentioned in MAINTAINERS for the iomap > code. Firstly, thank you for the review, highly appreciated! Secondly, not a problem, will do. > On Mon, Aug 12, 2019 at 10:53:11PM +1000, Matthew Bobrowski wrote: > > - if (size <= 0) > > - return size; > > + if (error || !size) > > + return error ? error : size; > > This should be: > > if (error) > return error; > if (!size) > return 0; OK. > > if (flags & IOMAP_DIO_COW) { > > - error = xfs_reflink_end_cow(ip, offset, size); > > - if (error) > > + ret = xfs_reflink_end_cow(ip, offset, size); > > + if (ret) > > I think we can just keep reusing error here. Ah yes, that will work. > > +typedef int (iomap_dio_end_io_t)(struct kiocb *iocb, ssize_t size, > > + ssize_t error, unsigned int flags); > > error should be an int and not a ssize_t. Updated. --M