Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4032822ybl; Tue, 20 Aug 2019 06:07:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJ1Ub6Kz1AKhbEtbgrW46YrCrbhFPRfC+zDE1lAiGyIVkQqk3JuHdgQRWmddp4MVRI3FJc X-Received: by 2002:a63:1918:: with SMTP id z24mr23618069pgl.94.1566306441936; Tue, 20 Aug 2019 06:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566306441; cv=none; d=google.com; s=arc-20160816; b=VhqYkFu+02+Sc+BahSEWIW786rGW+CATSbgdQuGQlpo4Q6TYdgH6fkcIQx4wNznNOg OVUD0oXk95SrWoKplEvVyyQihAYb6Geo+1ojLgDiTsAM8zeK+m4VzT77OFx8d0l5Prr8 RwO2eJu1yoN2eYTTEIU+S8zrUaw6pSQ/iGgq0LOGtXaTG77Q24AjqfKAkfKVBvgbkj9T kP90e6EBKSJGF/jWsBNEqQw5PWYJjZrnrQyGDx3gzkyIHUYIrZwtoDfV0uPnZbjXOi00 rWhRRcibkk10CAK0OUGri/qRUN8TTe/ingrV6hrEQ+n8k65VQFpr5RZ3EyfEjCTYlFHg X4xA== 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:date:subject:cc:to:from; bh=otvlWL73m5wA9Wq0/1TpXZCxoCe+8GlfaxRvAZLsIxc=; b=Ejt6JhZwGI6mWGoRxgn6Fwt2kpyBDnDckRMKlP7e6rlUTVUCAFC8PVYhwHlObPx6WX qqQGHX8VXASKVw/qOR5mCj3k4rC+am6VTvjGDRRsQs/DViuqxMDkLvLHj5rxAiSR9Xxr uBbiAy1ojRlz2FdQDE70OoFys/IcyExnJpcWmDHt2yLJJnrBl/bidfQnw2yqb/NJbcUy geHIaiS1iUV/MjuHRxbQB1TY7OJzc6Abq3B39ZgpUbsK+Jbfrkadc2BsYscIvm4izpbp /XxoOqM09ucugJldCkzTm5T4ziqfTAEg4T+crB9DMTtP9zrDZLa5lcj3ltyU3J3qtUcr mPAg== 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 r8si12847164pfh.185.2019.08.20.06.07.03; Tue, 20 Aug 2019 06:07:21 -0700 (PDT) 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 S1728283AbfHTNG7 (ORCPT + 99 others); Tue, 20 Aug 2019 09:06:59 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:9554 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729351AbfHTNG7 (ORCPT ); Tue, 20 Aug 2019 09:06:59 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7KD60Hm085937 for ; Tue, 20 Aug 2019 09:06:57 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ugf4c6xhb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 20 Aug 2019 09:06:57 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Aug 2019 14:06:54 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) 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) Tue, 20 Aug 2019 14:06:50 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x7KD6nka26870016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2019 13:06:50 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B26DB11C064; Tue, 20 Aug 2019 13:06:49 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5EAA111C05B; Tue, 20 Aug 2019 13:06:48 +0000 (GMT) Received: from localhost.in.ibm.com (unknown [9.124.31.57]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 20 Aug 2019 13:06:48 +0000 (GMT) From: Ritesh Harjani To: linux-ext4@vger.kernel.org Cc: adilger.kernel@dilger.ca, jack@suse.cz, tytso@mit.edu, mbobrowski@mbobrowski.org, linux-fsdevel@vger.kernel.org, Ritesh Harjani Subject: [RFC 0/2] ext4: bmap & fiemap conversion to use iomap Date: Tue, 20 Aug 2019 18:36:32 +0530 X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19082013-0012-0000-0000-00000340B5D6 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19082013-0013-0000-0000-0000217ADA00 Message-Id: <20190820130634.25954-1-riteshh@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-20_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=642 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908200137 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hello, These are RFC patches to get community view on converting ext4 bmap & fiemap to iomap infrastructure. This reduces the users of ext4_get_block API and thus a step towards getting rid of buffer_heads from ext4. Also reduces the line of code by making use of iomap infrastructure (ex4_iomap_begin) which is already used for other operations. This gets rid of special implementation of ext4_fill_fiemap_extents & ext4_find_delayed_extent and thus only relies upon ext4_map_blocks & iomap_fiemap (ext4_iomap_begin) for mapping. It looked more logical thing to do, but I appreciate if anyone has any review/feedback comments about this part. Didn't get any regression on some basic xfstests in tests/ext4/ with mkfs option of "-b 4096". Please let me know if I should also test any special configurations? Patches can be cleanly applied over Linux 5.3-rc5. Ritesh Harjani (2): ext4: Move ext4 bmap to use iomap infrastructure. ext4: Move ext4_fiemap to iomap infrastructure fs/ext4/extents.c | 294 +++++++--------------------------------------- fs/ext4/inline.c | 41 ------- fs/ext4/inode.c | 17 ++- 3 files changed, 53 insertions(+), 299 deletions(-) -- 2.21.0