From patchwork Wed Mar 21 08:01:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 10298919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 65806600F6 for ; Wed, 21 Mar 2018 08:02:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5783F29779 for ; Wed, 21 Mar 2018 08:02:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C0F229781; Wed, 21 Mar 2018 08:02:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAE2E29779 for ; Wed, 21 Mar 2018 08:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751701AbeCUIBr (ORCPT ); Wed, 21 Mar 2018 04:01:47 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:38885 "EHLO prv3-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751676AbeCUIBq (ORCPT ); Wed, 21 Mar 2018 04:01:46 -0400 Received: from adam-pc.suse.de (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by prv3-mh.provo.novell.com with ESMTP (NOT encrypted); Wed, 21 Mar 2018 02:01:30 -0600 From: Qu Wenruo To: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org Cc: amir73il@gmail.com, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 2/3] fstests: log-writes: Add support for METADATA flag Date: Wed, 21 Mar 2018 16:01:24 +0800 Message-Id: <20180321080125.30404-2-wqu@suse.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180321080125.30404-1-wqu@suse.com> References: <20180321080125.30404-1-wqu@suse.com> Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Qu Wenruo --- src/log-writes/log-writes.c | 3 ++- src/log-writes/log-writes.h | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/log-writes/log-writes.c b/src/log-writes/log-writes.c index a872429d..5dc22c24 100644 --- a/src/log-writes/log-writes.c +++ b/src/log-writes/log-writes.c @@ -130,7 +130,8 @@ struct flags_to_str_entry { DEFINE_LOG_FLAGS_STR_ENTRY(FLUSH), DEFINE_LOG_FLAGS_STR_ENTRY(FUA), DEFINE_LOG_FLAGS_STR_ENTRY(DISCARD), - DEFINE_LOG_FLAGS_STR_ENTRY(MARK) + DEFINE_LOG_FLAGS_STR_ENTRY(MARK), + DEFINE_LOG_FLAGS_STR_ENTRY(METADATA) }; #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) diff --git a/src/log-writes/log-writes.h b/src/log-writes/log-writes.h index 35ca3583..75fb8ac0 100644 --- a/src/log-writes/log-writes.h +++ b/src/log-writes/log-writes.h @@ -20,10 +20,11 @@ typedef __u32 u32; /* * Constants copied from kernel file drivers/md/dm-log-writes.c */ -#define LOG_FLUSH_FLAG (1 << 0) -#define LOG_FUA_FLAG (1 << 1) -#define LOG_DISCARD_FLAG (1 << 2) -#define LOG_MARK_FLAG (1 << 3) +#define LOG_FLUSH_FLAG (1 << 0) +#define LOG_FUA_FLAG (1 << 1) +#define LOG_DISCARD_FLAG (1 << 2) +#define LOG_MARK_FLAG (1 << 3) +#define LOG_METADATA_FLAG (1 << 4) #define WRITE_LOG_VERSION 1 #define WRITE_LOG_MAGIC 0x6a736677736872