Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp856979ybx; Wed, 6 Nov 2019 09:25:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxa3AvstEnMuHXNPYm76izbagnI+k/kngCSFjv+nY3yIUp38sB4pO3Km1vWzC8S37OaWEYY X-Received: by 2002:a50:ac1c:: with SMTP id v28mr4107241edc.156.1573061120085; Wed, 06 Nov 2019 09:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573061120; cv=none; d=google.com; s=arc-20160816; b=w4Y5i3o6WZvv5igq61G+uUP+R5mPUGDIBsShFEjHck375kZNnEwBqKAFs3GIwFCBgH ILuu02XHVN3R0S3Tl/8N5120NuCX0y+kHIPVv+fu4m6/dJOw5IXuWIAL8Ga3rIwgrz0Z 6Doc5AWkZ9Ecs5JHuQqTrnXJuyn3YoEn4o5dNZKGdG1hUDXPLhzc/UISdo8iJXhyq6ks zJ97yVMlUGlxs85k3bL464zB3rTHsjP4mjgKqDWnigF4PbtCHcr8QRDnOGk2+e6Eh+Ww quX1nR8slKUU1vJ25PU7gDex0eyusEFHccvEyiNn6y7W+c1woqAyltsoJsZtBahyZqYL tG/w== 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; bh=O2MuxLl0zooYpjRBf2RjIPyS2BZedEq8A+S0tjsOt8g=; b=kmKmha4AB/ItFMJ8oFtMHpO4/PU+Nf78xbyNoAGDwbIz9RKEHu+9DWSdOhcfUmyBqI Kj6WPTIrL2m0rTfZWr0eaHy9tQXjZ0te+IVdcnIOMEpfk6+cotYbzr+LeWCtlSeE8aJK +kVA3P4k7DspRSWTJBdqikXt82DAaAWRJfy/zRob1OHdMn9bNDSuPi9BnjsmiMtcdjIU z2jNCc9ed87Wa2a8kH8EeYTozhzsXoQm+bWvbIfc1IwBUaND+ujRxWhNx8MHBzOgqFr7 fGBXxQkSGGwn+sIJWF/G99B9RGmPYJINTGkpwFO+85IWT3qXGTS9tsodapuroti/5cxv lJSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 f2si1981404ejf.231.2019.11.06.09.24.48; Wed, 06 Nov 2019 09:25:20 -0800 (PST) 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; 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 S1729400AbfKFRXE (ORCPT + 99 others); Wed, 6 Nov 2019 12:23:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:48946 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729259AbfKFRXE (ORCPT ); Wed, 6 Nov 2019 12:23:04 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B5790B498; Wed, 6 Nov 2019 17:23:02 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 546B61E4353; Wed, 6 Nov 2019 18:23:02 +0100 (CET) Date: Wed, 6 Nov 2019 18:23:02 +0100 From: Jan Kara To: Ritesh Harjani Cc: tytso@mit.edu, jack@suse.cz, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, mbobrowski@mbobrowski.org Subject: Re: [RFC 0/5] Ext4: Add support for blocksize < pagesize for dioread_nolock Message-ID: <20191106172302.GE12685@quack2.suse.cz> References: <20191016073711.4141-1-riteshh@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191016073711.4141-1-riteshh@linux.ibm.com> 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 Wed 16-10-19 13:07:06, Ritesh Harjani wrote: > This patch series adds the support for blocksize < pagesize for > dioread_nolock feature. > > Since in case of blocksize < pagesize, we can have multiple > small buffers of page as unwritten extents, we need to > maintain a vector of these unwritten extents which needs > the conversion after the IO is complete. Thus, we maintain > a list of tuple pair (io_end_vec) for this & > traverse this list to do the unwritten to written conversion. > > Appreciate any reviews/comments on this patches. I know Ted has merged the patches already so this is just informational but I've read the patches and they look fine to me. Thanks for the work! I was just thinking that we could actually make the vector tracking more efficient because the io_end always looks like: one-big-extent-to-fully-write + whatever it takes to fully write out the last page So your vectors could be also expressed as "extent to write" + bitmap of blocks written in the last page. And 64-bits are enough for the bitmap for anything ext4 supports so we could easily save allocation of ioend_vec etc. Just a suggestion. Honza -- Jan Kara SUSE Labs, CR