Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp175914ybi; Fri, 7 Jun 2019 06:16:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqygbf6bO0vE+Xcxxr0eBH9C6e4scZTZ+ReCQL/+gAt40pW42ydSELsivpLxkZqYaeknNM5O X-Received: by 2002:a17:902:a982:: with SMTP id bh2mr54644829plb.224.1559913366346; Fri, 07 Jun 2019 06:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559913366; cv=none; d=google.com; s=arc-20160816; b=Oe9xoft/isflT87AbnGnuCB/1I0fC6Fj9wZWSI24wdOTCmBMJpUKOJI3jTQRtt95m7 ZGK3gNykPVIhdDUnM+0rDj8FXfF5pkjA92v/OHaKDK7ljyiX+CC27U5sfcE2cCGV2dvX 4E4wwqXcT8Xo0UlBz7JYLpdIhhRb6ChqBlOTzSJnGtPM62qp9tV09szY21UZO7j2z+Bx mRcBPQhESt0a+cJskiFYrGXIFgtWDAIh19uobPulS+jkgHhDtKkv2A+4e2VpjHQRxOn3 V+YFSJ4JhFGAQpxl4g93adpoT/Gu3FhGDkNlQSHPBRzjD/eAXzRZrOdV9cs55tuP2vaU c87Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr:dkim-signature; bh=VcpNDnC7PHL8+uJJeWpjWiuzR6xg42x6BP6ryXvnLII=; b=QpS1fhLR9w5sRugXyZ6kzYqz7AMUnUIaWSz4pgRAxO0yVwmun5qyZ7fk056xpzIKyA z26TeT7modtPsbAqs2n1RA08azbM1GafmwOZE8d3CW7UqazK8GBEz7m5fYdewIC6Qu/T G4QwwM9r2WlliWiWJS8q8ips7U4UyhBN0Ozi5EVpn5sTvsm7FqOGRmhBHfrAsft0FyRh JSjIJefiglp4quM+kFDbahp8ha6ePC0f3BCrgogIpUReylhnNEkGQQWnGigOw8zUMeA5 X5OGp8w0rVkv7rmslWLiJl97yxw7qiUNt0p4DXefPyEpFH9pUQmiC5pWXLRWTXS+KMHg Qwig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=XTmOTyua; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si1709378pfe.220.2019.06.07.06.15.49; Fri, 07 Jun 2019 06:16:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=XTmOTyua; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729266AbfFGNLi (ORCPT + 99 others); Fri, 7 Jun 2019 09:11:38 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:53172 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729175AbfFGNLe (ORCPT ); Fri, 7 Jun 2019 09:11:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1559913094; x=1591449094; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p8z3jb430Qgqzm++OBw+hFbvq/mvjn8Ir5DK424mBcI=; b=XTmOTyuacwVz6PZE8MaxhvlF8/0GtheDkb0wCKs1LVlkjIAQSNVS8/5q 8GqveWxvWm1XqIfar+o0dxcJsLP//xNdj86GQw3hRRL49rGJDLc9L/2T2 FqXLX0Le5C/yPGSx0iPff9I6K5fwd5a5Sm2ejGeaq2ulGoo6EF67CnOhu qvHbcCZBmEy7Ib2vXVuyEGcmOoLe6JjlIx8oCggc1SnM6utsb/rI2aQ/A jMII433QNUkgU+yCTlsw2Z6uYbgEMFs2t9GaZxyIlREMlCRB2pPp0agZM 9MDbhdtxb/bo0V1VxuXw4BFfFphs08kW7hf/Z0F5HZ13a2piMB4v1VnB0 A==; X-IronPort-AV: E=Sophos;i="5.63,563,1557158400"; d="scan'208";a="110027811" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 07 Jun 2019 21:11:34 +0800 IronPort-SDR: ripgf24P5iEILz4XuvxMxYsrvrXtIEZLdESfBqI4FyzF+JDUpPr3k307JQ/i/szMqdOXVLK87D 8db/snQbGRk2H0Re4mAycMKkgTYES5SjLpA0/7ebtg3nStkoUsKFVmID1AAeN47dg9ZsSEGVmU x9toFEd0Ed6hhTsTc7ntKepfD5pwGikGvW+SqFivwtz3YgOjPGaOHrS0SdEuhzXtf4v2xx5/YN Mcx8VClMhNnkUd2jQuPX0Nlfrz+9RkbPyWNs/hB1alPqmox7JYN2ZS/hrf6LgWWrYwaBpffELF 8/zcCYdaKtGhpTbaYwg2UCz+ Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 07 Jun 2019 05:48:51 -0700 IronPort-SDR: 8ZW0jd7H9HZ7r/JhlmGNBuVBz7JFaYUZwT7cYlV5evYbYvsNzZfklaNova3j6NeVtPN0gHBds6 8Xdx0LbkmzMwqBElW1LE4bbcu/EM4OWVivVDAiIKQ6jkrnEFAU7aYcc5DJ9jkSx3WgPNgPXIMQ LlKipULqUQzyOSY/SFRoipc+7JUvUx5AuWIakyz2gjaOweehVUo01Iv3geCJYmxrfuyWbN4c4d IMhaRqfZsstKH4f0pjwxgY5W0XTVjv4lrW50zyQXCK2zeCDztcmLLiIhzVmS0H0nhDcjs6W9kc q6M= Received: from naota.dhcp.fujisawa.hgst.com (HELO naota.fujisawa.hgst.com) ([10.149.53.115]) by uls-op-cesaip02.wdc.com with ESMTP; 07 Jun 2019 06:11:32 -0700 From: Naohiro Aota To: linux-btrfs@vger.kernel.org, David Sterba Cc: Chris Mason , Josef Bacik , Qu Wenruo , Nikolay Borisov , linux-kernel@vger.kernel.org, Hannes Reinecke , linux-fsdevel@vger.kernel.org, Damien Le Moal , =?UTF-8?q?Matias=20Bj=C3=B8rling?= , Johannes Thumshirn , Bart Van Assche , Naohiro Aota Subject: [PATCH 10/19] btrfs: rename btrfs_map_bio() Date: Fri, 7 Jun 2019 22:10:16 +0900 Message-Id: <20190607131025.31996-11-naohiro.aota@wdc.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607131025.31996-1-naohiro.aota@wdc.com> References: <20190607131025.31996-1-naohiro.aota@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch renames btrfs_map_bio() to __btrfs_map_bio() to prepare using __btrfs_map_bio() as a helper function. NOTE: may be squash with next patch? Signed-off-by: Naohiro Aota --- fs/btrfs/volumes.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index c1ed3b6e3cfd..52d0d458c0fd 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -6808,8 +6808,9 @@ static void bbio_error(struct btrfs_bio *bbio, struct bio *bio, u64 logical) } } -blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, - int mirror_num, int async_submit) +static blk_status_t __btrfs_map_bio(struct btrfs_fs_info *fs_info, + struct bio *bio, int mirror_num, + int async_submit) { struct btrfs_device *dev; struct bio *first_bio = bio; @@ -6884,6 +6885,12 @@ blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, return BLK_STS_OK; } +blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, + int mirror_num, int async_submit) +{ + return __btrfs_map_bio(fs_info, bio, mirror_num, async_submit); +} + /* * Find a device specified by @devid or @uuid in the list of @fs_devices, or * return NULL. -- 2.21.0