Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp987909ybf; Thu, 27 Feb 2020 03:11:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxeyhaYTU0tkCyNAuiQno25/Jvnu0YwwekOlWkIKhpJ0ze9LsOjwxatxXK0aHQ8Eihf/lvu X-Received: by 2002:a54:4805:: with SMTP id j5mr2877195oij.29.1582801875019; Thu, 27 Feb 2020 03:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582801875; cv=none; d=google.com; s=arc-20160816; b=nFpeuhcBNfH+5KE6N2bAdlLFXTUhomQ+V0e0xlhWyQ5a+ohewKA4gHPETwrSnrIWMP 0DK4vB0HOcWb4NvgFhGavZ2g9CFhLhD1sAY9C7YI9+iF5nh9b/VyGosqnyc/2yYv53XF qkT8BlwbL3miMdmpP8AtGgYaqaQkUuorOmUy1IrxuhsJGT7hcWZPpWsoeT79wlDuV7ML vPp3CcCiR5QPpCtsZF3u34ECoNxsYQyfC3yLChfCqczkF9zKDkyWAeQ0SM4nlNwyCfjQ CwallLt1ES2VgmUeVEg9oKn28AramZ/igUMCvS79/gtc3ai+7URp5fAGyrY+Z6A8jXhD 2G6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from; bh=sU55tucsvWIOf8NtiRyA9RTMsqMyDsdXYKt4MMkdPEM=; b=Y/Gcx2tp2AzVHjbil+j/b0zy0s3aYRbbbuSi96u8QYUh8p4OUX3uBtpRWCgLw+ZH1n ub/0bnb8DUTBmx7yXQm87yufcaiPa3XuM/VYzoVs7oTPAnpqyq5zp4J9kBLHCBhktk2Q PhA3rSwLQF6qPG2w8dulHZqxl5BU730Vr33bnJA0VvDF96p0NFL3txplLBYV3lSbmXWP w2Ekp33SIThGGZmwmIVvdCYZ5qRYwhofTt2LrZeKJkm/FiaZ6f3HbQQ6isZx3dzeaBGL HzDpSeIlaZzlULAiQf1GbWu3vPCUgEnXI8yB8/DcwK0O15j1VTuNiLY+b/ULxDzUESX/ fvTA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si1423432otk.109.2020.02.27.03.11.03; Thu, 27 Feb 2020 03:11:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728896AbgB0LKw (ORCPT + 99 others); Thu, 27 Feb 2020 06:10:52 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:62718 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728885AbgB0LKw (ORCPT ); Thu, 27 Feb 2020 06:10:52 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01RBAQDM103486 for ; Thu, 27 Feb 2020 06:10:50 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ydcnhfq3h-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 27 Feb 2020 06:10:50 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Feb 2020 11:10:48 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 27 Feb 2020 11:10:44 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01RBAhFn55967814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Feb 2020 11:10:43 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4203A42042; Thu, 27 Feb 2020 11:10:43 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C714A4203F; Thu, 27 Feb 2020 11:10:40 +0000 (GMT) Received: from dhcp-9-199-158-169.in.ibm.com (unknown [9.199.158.169]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 27 Feb 2020 11:10:40 +0000 (GMT) From: Ritesh Harjani To: jack@suse.cz, tytso@mit.edu, linux-ext4@vger.kernel.org Cc: adilger.kernel@dilger.ca, linux-fsdevel@vger.kernel.org, darrick.wong@oracle.com, hch@infradead.org, cmaiolino@redhat.com, david@fromorbit.com, Ritesh Harjani Subject: [PATCHv4 3/6] ext4: Move ext4 bmap to use iomap infrastructure. Date: Thu, 27 Feb 2020 16:40:24 +0530 X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20022711-0012-0000-0000-0000038AC410 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20022711-0013-0000-0000-000021C76CFB Message-Id: <15b23164d1a65b9fe389f8beee6cc6bdcbb64b4b.1582800839.git.riteshh@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-27_03:2020-02-26,2020-02-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 spamscore=0 suspectscore=3 impostorscore=0 clxscore=1015 mlxscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=524 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002270090 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org ext4_iomap_begin is already implemented which provides ext4_map_blocks, so just move the API from generic_block_bmap to iomap_bmap for iomap conversion. Signed-off-by: Ritesh Harjani Reviewed-by: Jan Kara --- fs/ext4/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 6cf3b969dc86..81fccbae0aea 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3214,7 +3214,7 @@ static sector_t ext4_bmap(struct address_space *mapping, sector_t block) return 0; } - return generic_block_bmap(mapping, block, ext4_get_block); + return iomap_bmap(mapping, block, &ext4_iomap_ops); } static int ext4_readpage(struct file *file, struct page *page) -- 2.21.0