From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22666C43219 for ; Mon, 29 Apr 2019 19:42:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE792215EA for ; Mon, 29 Apr 2019 19:42:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729147AbfD2Tmp (ORCPT ); Mon, 29 Apr 2019 15:42:45 -0400 Received: from verein.lst.de ([213.95.11.211]:40820 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729113AbfD2Tmp (ORCPT ); Mon, 29 Apr 2019 15:42:45 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 2E5FB68AFE; Mon, 29 Apr 2019 21:42:28 +0200 (CEST) Date: Mon, 29 Apr 2019 21:42:27 +0200 From: Christoph Hellwig To: Andreas Gruenbacher Cc: cluster-devel , Christoph Hellwig , Bob Peterson , Jan Kara , Dave Chinner , Ross Lagerwall , Mark Syms , Edwin =?iso-8859-1?B?VPZy9ms=?= , linux-fsdevel , linux-mm@kvack.org Subject: Re: [PATCH v6 1/4] iomap: Clean up __generic_write_end calling Message-ID: <20190429194227.GA6138@lst.de> References: <20190429163239.4874-1-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Apr 29, 2019 at 07:46:29PM +0200, Andreas Gruenbacher wrote: > On Mon, 29 Apr 2019 at 18:32, Andreas Gruenbacher wrote: > > From: Christoph Hellwig > > > > Move the call to __generic_write_end into iomap_write_end instead of > > duplicating it in each of the three branches. This requires open coding > > the generic_write_end for the buffer_head case. > > Wouldn't it make sense to turn __generic_write_end into a void > function? Right now, it just oddly return its copied argument. Yes, we could remove the return value. That should be a separate patch after this one, though.