Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp405671ybg; Sun, 26 Jul 2020 08:18:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNLIPG4MLpDsCRwff0eCm6ptA6GPaglSXkx70ewEOjaLXqmPaz2TYYIQhKxBq7nTxvFbnk X-Received: by 2002:a17:906:430a:: with SMTP id j10mr16515931ejm.163.1595776738728; Sun, 26 Jul 2020 08:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595776738; cv=none; d=google.com; s=arc-20160816; b=reQucsNv7faICGLziGPCSxej3LeroP9mLvBtblov0h3ZzPOstchWtQlXmGyy5f39XD Jkio0kIjElS1T3w2fNMlb0Yq+n1dVZZGC9t6gQZy1JAj1wI5/zPEuzvWNqZykSz+SseZ y9VxQD9VB1cClSQu9rX25HE9hmtX1avLBqHsOoizYMLYYw9YujoZ6zkWlh5diCEsweEq DoyLqBvzi+GDTv9a1a/yOV9wRrQGj1TzhXmZl+WpV1e+zwFAuEBJvrJPocLOewiF+615 KcSPqyiD587YHcSUrImrdgk+eD4ztfdqVlcAZFQI0MjKFViOSIDAXIBlaTzL6gYWK+zB W0Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=khbJGT4iiSr5u+iKgwn7bl9+62UCe+CYOlUWfazTxPM=; b=n3Dvvqtpyw2oQDYt8/Cp/hWITFK5FiI/AeAb0zDoJgtq4jfp2IE2i1vwMf4/Fe9B6W DQmKAHpg52aNo2pTEefk+j+nfoF67pptZejfAv1qXT7XvSlR+jawLjYJhwaUaxrS6XLg hsKB+yjX1UfYpeuW1LP+I2KVWpL3Rx4DoAC/pxV0xD8zd6YRsicOLkSDkMwraSq27Ldo T96fn3CETNGBzfe2ijxhWA1Tp7biZx5iJt6/YzPlTzvS18rvmN2cmc3hwH2RYZtZntUO BLP/qMCVrKxlFzoICQs3ZRUagkFPkQ35lv6iaYzL7q62WJ7m7hX8PSadBfqUiNl2PY8y uSHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=STtIccUJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si4340877ejd.575.2020.07.26.08.18.37; Sun, 26 Jul 2020 08:18:58 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=STtIccUJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgGZPSZ (ORCPT + 99 others); Sun, 26 Jul 2020 11:18:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbgGZPSZ (ORCPT ); Sun, 26 Jul 2020 11:18:25 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB69BC0619D2; Sun, 26 Jul 2020 08:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=khbJGT4iiSr5u+iKgwn7bl9+62UCe+CYOlUWfazTxPM=; b=STtIccUJbrGHRgBJdhNTayz1Ld ljv3MsUoYDsnK8KLZQFsoDnj6ZI7DzwasiQPTfoO9qzR6ViwsCgKrP566P9Ckq3JaJteeiknLstel N2djokW45aiJ75/ZtjAF3dBac/ckrf+MdlBZ/LWWMr9ft3tndvJG5LkG+ITi/fX06N4UlOX/EY1SM l7HYYllyigDLLipFkUIQ48f46/OE08cV4ze3kiWNXcoq6fRZDQj1y1mwx0v5Ya7veVhxM2GxFUWST OHl1fbiMjdeZNkplTIn2JWt+leI8Ry1ze0Ee7N0H28GXr1EeFAp2blNGoopSuWuStZoZMvmML0VP7 nj/IZIEA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jziPr-0006f6-2o; Sun, 26 Jul 2020 15:18:19 +0000 Date: Sun, 26 Jul 2020 16:18:19 +0100 From: Christoph Hellwig To: Kanchan Joshi Cc: axboe@kernel.dk, viro@zeniv.linux.org.uk, bcrl@kvack.org, willy@infradead.org, hch@infradead.org, Damien.LeMoal@wdc.com, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, linux-api@vger.kernel.org, SelvaKumar S , Nitesh Shetty , Javier Gonzalez Subject: Re: [PATCH v4 2/6] fs: change ki_complete interface to support 64bit ret2 Message-ID: <20200726151819.GB25328@infradead.org> References: <1595605762-17010-1-git-send-email-joshi.k@samsung.com> <1595605762-17010-3-git-send-email-joshi.k@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1595605762-17010-3-git-send-email-joshi.k@samsung.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 24, 2020 at 09:19:18PM +0530, Kanchan Joshi wrote: > From: SelvaKumar S > > kiocb->ki_complete(...,long ret2) - change ret2 to long long. > This becomes handy to return 64bit written-offset with appending write. > Change callers using ki_complete prototype. There is no need for this at all. By the time ki_complete is called ki_pos contains the new offset, and you just have to subtract res from that.