From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbdBYSXK (ORCPT ); Sat, 25 Feb 2017 13:23:10 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:43957 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbdBYSXI (ORCPT ); Sat, 25 Feb 2017 13:23:08 -0500 Date: Sat, 25 Feb 2017 10:23:06 -0800 From: Christoph Hellwig To: Ming Lei Cc: Shaohua Li , Jens Axboe , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v1 02/14] block: introduce bio_remove_last_page() Message-ID: <20170225182306.GC26447@infradead.org> References: <1487950971-1131-1-git-send-email-tom.leiming@gmail.com> <1487950971-1131-3-git-send-email-tom.leiming@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1487950971-1131-3-git-send-email-tom.leiming@gmail.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 24, 2017 at 11:42:39PM +0800, Ming Lei wrote: > MD need this helper to remove the last added page, so introduce > it. If MD really has a valid use case for this it should open code the operation. The semantics look deeply fishy to me.