From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 196B41DF991; Wed, 23 Apr 2025 09:36:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745401001; cv=none; b=P1mBhes2r/zxEJhX6Rmx8DvjtUEqYNISW8boxPd+7DjhBSMuvBk7hgoL+6N1w+Nzqp5fjg5KEX+LmrmVby0ojBQ+/w13N2Ay7SHCBxRCMJmX763Yy1HEBmO6wtxvRmjYZMBPJHTVt0eWgm3gpst/HNo4o/x5YnD8aHJPAvFKC1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745401001; c=relaxed/simple; bh=ZoxpxyhXtsPNypA2hqQjiFLs7VljOLOOJXls54dQevA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oJ+vqyJOv02emGOjn2nhGfK0YDIAJ506KuQxlkP15DG0tsNshpdIwljOQJkyp9tthBEmtsIKViBvcA5zin/VaCRawGh03womANPZkLJgeioQBUCVVop325KjSWaN9LPkG6guPKC9Qw4DsSHnfKYC9OppzQUU/TZAHKIgGCPiKIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 7C33268AFE; Wed, 23 Apr 2025 11:36:36 +0200 (CEST) Date: Wed, 23 Apr 2025 11:36:36 +0200 From: Christoph Hellwig To: Hannes Reinecke Cc: Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, "Md. Haris Iqbal" , Jack Wang , Coly Li , Kent Overstreet , Mike Snitzer , Mikulas Patocka , Chris Mason , Josef Bacik , David Sterba , Andreas Gruenbacher , Carlos Maiolino , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , "Rafael J. Wysocki" , Pavel Machek , linux-bcache@vger.kernel.org, dm-devel@lists.linux.dev, linux-btrfs@vger.kernel.org, gfs2@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 02/17] block: add a bdev_rw_virt helper Message-ID: <20250423093636.GB2578@lst.de> References: <20250422142628.1553523-1-hch@lst.de> <20250422142628.1553523-3-hch@lst.de> Precedence: bulk X-Mailing-List: gfs2@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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) On Wed, Apr 23, 2025 at 08:07:19AM +0200, Hannes Reinecke wrote: >> +int submit_bio_wait(struct bio *bio); >> +int bdev_rw_virt(struct block_device *bdev, sector_t sector, void *data, >> + size_t len, enum req_op op); >> + >> int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter); >> void bio_iov_bvec_set(struct bio *bio, const struct iov_iter *iter); >> void __bio_release_pages(struct bio *bio, bool mark_dirty); > > Any specific reason why the declaration of 'submit_bio_wait()' is moved? To keep the related declarations together.