{"id":807112,"url":"http://patchwork.ozlabs.org/api/1.0/patches/807112/?format=json","project":{"id":8,"url":"http://patchwork.ozlabs.org/api/1.0/projects/8/?format=json","name":"Linux ext4 filesystem development","link_name":"linux-ext4","list_id":"linux-ext4.vger.kernel.org","list_email":"linux-ext4@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20170829142942.21594-3-agruenba@redhat.com>","date":"2017-08-29T14:29:40","name":"[2/4] iomap: Add IOMAP_F_DATA_INLINE flag","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"433a3805a536fe9bf3d83d744ae38fe1e84d4ead","submitter":{"id":67290,"url":"http://patchwork.ozlabs.org/api/1.0/people/67290/?format=json","name":"Andreas Gruenbacher","email":"agruenba@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20170829142942.21594-3-agruenba@redhat.com/mbox/","series":[{"id":378,"url":"http://patchwork.ozlabs.org/api/1.0/series/378/?format=json","date":"2017-08-29T14:29:38","name":"ext4: SEEK_HOLE / SEEK_DATA via iomap","version":1,"mbox":"http://patchwork.ozlabs.org/series/378/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/807112/checks/","tags":{},"headers":{"Return-Path":"<linux-ext4-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-ext4-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ext-mx01.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx01.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=agruenba@redhat.com"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xhWHr4NtYz9t38\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 30 Aug 2017 00:30:00 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1754366AbdH2O34 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 29 Aug 2017 10:29:56 -0400","from mx1.redhat.com ([209.132.183.28]:59530 \"EHLO mx1.redhat.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1754350AbdH2O3w (ORCPT <rfc822;linux-ext4@vger.kernel.org>);\n\tTue, 29 Aug 2017 10:29:52 -0400","from smtp.corp.redhat.com\n\t(int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 3423F72F10;\n\tTue, 29 Aug 2017 14:29:52 +0000 (UTC)","from max.home.com (ovpn-116-105.ams2.redhat.com [10.36.116.105])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 1A030692A9;\n\tTue, 29 Aug 2017 14:29:48 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com 3423F72F10","From":"Andreas Gruenbacher <agruenba@redhat.com>","To":"linux-fsdevel@vger.kernel.org","Cc":"linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org,\n\tJan Kara <jack@suse.cz>, Christoph Hellwig <hch@lst.de>,\n\tAndreas Gruenbacher <agruenba@redhat.com>","Subject":"[PATCH 2/4] iomap: Add IOMAP_F_DATA_INLINE flag","Date":"Tue, 29 Aug 2017 16:29:40 +0200","Message-Id":"<20170829142942.21594-3-agruenba@redhat.com>","In-Reply-To":"<20170829142942.21594-1-agruenba@redhat.com>","References":"<20170829142942.21594-1-agruenba@redhat.com>","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.16","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.25]);\n\tTue, 29 Aug 2017 14:29:52 +0000 (UTC)","Sender":"linux-ext4-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<linux-ext4.vger.kernel.org>","X-Mailing-List":"linux-ext4@vger.kernel.org"},"content":"Add a new IOMAP_F_DATA_INLINE flag to indicate that a mapping is in a\ndisk area that contains data as well as metadata.  In iomap_fiemap, map\nthis flag to FIEMAP_EXTENT_DATA_INLINE.\n\nSigned-off-by: Andreas Gruenbacher <agruenba@redhat.com>\n---\n fs/iomap.c            | 2 ++\n include/linux/iomap.h | 5 +++--\n 2 files changed, 5 insertions(+), 2 deletions(-)","diff":"diff --git a/fs/iomap.c b/fs/iomap.c\nindex 7bc1797c2292..f0a263482a0e 100644\n--- a/fs/iomap.c\n+++ b/fs/iomap.c\n@@ -510,6 +510,8 @@ static int iomap_to_fiemap(struct fiemap_extent_info *fi,\n \t\tflags |= FIEMAP_EXTENT_MERGED;\n \tif (iomap->flags & IOMAP_F_SHARED)\n \t\tflags |= FIEMAP_EXTENT_SHARED;\n+\tif (iomap->flags & IOMAP_F_DATA_INLINE)\n+\t\tflags |= FIEMAP_EXTENT_DATA_INLINE;\n \n \treturn fiemap_fill_next_extent(fi, iomap->offset,\n \t\t\tiomap->addr != IOMAP_NULL_ADDR ? iomap->addr : 0,\ndiff --git a/include/linux/iomap.h b/include/linux/iomap.h\nindex 7b8a615fa021..2b0790dbd6ea 100644\n--- a/include/linux/iomap.h\n+++ b/include/linux/iomap.h\n@@ -26,8 +26,9 @@ struct vm_fault;\n /*\n  * Flags that only need to be reported for IOMAP_REPORT requests:\n  */\n-#define IOMAP_F_MERGED\t0x10\t/* contains multiple blocks/extents */\n-#define IOMAP_F_SHARED\t0x20\t/* block shared with another file */\n+#define IOMAP_F_MERGED\t\t0x10\t/* contains multiple blocks/extents */\n+#define IOMAP_F_SHARED\t\t0x20\t/* block shared with another file */\n+#define IOMAP_F_DATA_INLINE\t0x40\t/* data inline in the inode */\n \n /*\n  * Magic value for addr:\n","prefixes":["2/4"]}