Message ID | 1477644307-30115-10-git-send-email-damien.lemoal@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> 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 A329E60588 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A17E2A673 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EA002A672; Fri, 28 Oct 2016 08:46:59 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 22DC52A672 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758385AbcJ1Iqy (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Fri, 28 Oct 2016 04:46:54 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:7319 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756127AbcJ1Iqo (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Fri, 28 Oct 2016 04:46:44 -0400 X-IronPort-AV: E=Sophos;i="5.31,557,1473091200"; d="scan'208";a="25250775" Received: from mail-bl2nam02lp0082.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.82]) by ob1.hgst.iphmx.com with ESMTP; 28 Oct 2016 16:46:43 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=P5AoEavWHt9GeFnmwX2dN2qbjP1ToNIsXV+j/hdzfzs=; b=SjcN573C6E+CIJeQHzB/9ycuy7wNzEb+GP16DmQlmpImBqy8FBhMNr33vt1UnkR5s6OuuzV5e60Hcg8X+ra7x1bzcnN0L7IXsVhPmiuwLU+ExqvJFY5mC9PocKnaZiaXgH1JbGhJ0peA8MH9fZ19G8OC4TCqHcMoDqhwgmAOA2Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Damien.LeMoal@wdc.com; Received: from washi.fujisawa.hgst.com (199.255.47.8) by BY2PR04MB1974.namprd04.prod.outlook.com (10.166.111.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12; Fri, 28 Oct 2016 08:46:39 +0000 From: Damien Le Moal <damien.lemoal@wdc.com> To: <jaegeuk@kernel.org>, <yuchao0@huawei.com> CC: <linux-fsdevel@vger.kernel.org>, <linux-f2fs-devel@lists.sourceforge.net>, Hannes Reinecke <hare@suse.de>, Shaun Tancheff <shaun@tancheff.com>, Damien Le Moal <damien.lemoal@wdc.com> Subject: [PATCH v2 9/9] f2fs: Trace reset zone events Date: Fri, 28 Oct 2016 17:45:07 +0900 Message-ID: <1477644307-30115-10-git-send-email-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477644307-30115-1-git-send-email-damien.lemoal@wdc.com> References: <1477644307-30115-1-git-send-email-damien.lemoal@wdc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.47.8] X-ClientProxiedBy: CY1PR19CA0030.namprd19.prod.outlook.com (10.162.38.168) To BY2PR04MB1974.namprd04.prod.outlook.com (10.166.111.14) X-MS-Office365-Filtering-Correlation-Id: 4d7105c4-bc24-4ff6-5672-08d3ff0ef03e X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 2:WiK3WOmfAuONBKAe8xPYuVuQPm87S8z/0HYQJ6QuNYuk1MRbsc0Z4GBRY/3uRQopZXznvoXoIwrnLBRLTpYs0dLahDuvwNoDHbvdKxM2j1iexpWhEDMCIZktoqF7Po/1X82oJtlo52dTRqBEnggimY+qZ9BMjYKmyjRTmCVYWpfCzFmbdEcb9vmciWyX38TcJY21SYDQHVkzc8h5ymrHiw==; 3:ooqo7c1IWBJ+Rdaso0rcAB+cTpItabL9pKuvpyz0vR1hdjAKME86OfjaFCNWMLTWFLFkAHiOJ1APaxzfJhSllTodY8wxM4xrS1E+wT4UG1IVTavzbwhHamKavTD0Hqkyx/AJPEl+e9dQ/HF41/0eZQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR04MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 25:4hc/4rTTJhyf5tt0q3wvf98H/Jo1ua5tIs2bwyFAZRSTD60NYldlJbZ71t1n1d1qVqOLSdGzPQagFvF3xreWTHF1jl1L/jOngXvLYeWhliMLxfxMouzrp+vAMr3Gt1ap5LGWIhvaeVRi3pejBCgln8LUKe3I6Nvc1bObKC45C1zqoIStPn691aDws+lZNyTCvtqO/yeHx48dVNfADGTdfzp/3bJPbW5Lw/dKPYW064bTxChcAf1EWddQxwU4D6noTZnSJKrHVEGaN4RRxOTKbY2d7YSWArICUFp+Qwf+ktegQAcwmwJD2MDpdv3rKfZZMLZVF8ApG7cubo8wEjUrYr1f0SY+CsnR9xx+ZKnZtPOPY7Cn3uMGMq2RZ4sWPzgqAiiJhQDMknA5cMxYQ3Az0LP/S8b7sWMrNxmIEAaH7YOGQm2rphYu9Dn/wjgKFl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qVE62UM7U7YE32P6D X-Microsoft-Antispam-PRVS: <BY2PR04MB197457D6FF92A047FBB17290E7AD0@BY2PR04MB1974.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BY2PR04MB1974; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 4:q16bgzr1OU44X2q2V3ScDyslDgLGk/u1E5lm/jBAf7t6DaSH22IyKqHBE7Emh265ZUp38M+jSjzCUU9BjTvtAusZlXzkkzw9hzik7W2spoM6TuBtkoYR3Jq4vEfq56Begg9IgeH1X/qdngMoFco2Ev6FdeC5FD8bEJ12JWAeXQcXMpZGtWelLsSwLd6c/cMDy6AyzOn+5whEvbQuq2N/Y/9bESAtFlHnYA3k7g25KoBLn17zTliGVz3kJhzamvzmy2HV3jX/yuIi3Z9WLyV7/jhH+o4ci5XjKqANSsFN0fYqtV90flJ0LCWvHbTCV+3oT81Lh5gim8wZdemqLW+NSjvlkhdB2Bq3XPO9rRPZ/l7fLjtGow0a3GoV6ZEKQPEG4qxeOAoNtCF8fkwZChSUUiOfsaPd5gXp5FgasaZ31Vs= X-Forefront-PRVS: 0109D382B0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(76176999)(2950100002)(50986999)(305945005)(42186005)(7846002)(6666003)(4326007)(86362001)(7736002)(5660300001)(106356001)(81166006)(81156014)(66066001)(47776003)(68736007)(48376002)(105586002)(8676002)(50466002)(5003940100001)(229853001)(92566002)(50226002)(101416001)(33646002)(19580405001)(586003)(6116002)(19580395003)(3846002)(36756003)(77096005)(189998001)(5001770100001)(2906002)(97736004)(7099028); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB1974; H:washi.fujisawa.hgst.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: wdc.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR04MB1974; 23:F13msZpAfJlk06/Rghsl1t5Ajx4MJZPRtJ+4DIWS1?= =?us-ascii?Q?DoWhLEwhQe2nUi9wZnzuXWkR79EZ1LEAPgolWVrCDcjR5E9ZHkGtzIHBMHOI?= =?us-ascii?Q?AEJe39aLrDK9DGDj8FSWavR6pUWqphh35UDdKp93Ps9LsWvnWNbvf7xoUTpe?= =?us-ascii?Q?2voQBZSLd+e2eudgyIkyb4ySuyar746Xsw9UJqNABsIRuvshnblsTdZjji/n?= =?us-ascii?Q?UFrjOmH9pBysxQdW0EgrPsSAot9XNJZdzXyymrmUjdDB/ie/bKmToNHj+LDC?= =?us-ascii?Q?majj1LXk7SkqPtaoKrKKOdbx0TYVqxUEnpDVyviVxtBNifdQjats/HhjEUQq?= =?us-ascii?Q?FTwNJ0bT7bD9rMTSBRTA48sAoNEBU5C3sjGYWKJgLY3TLM7Jb630JuxTeg9O?= =?us-ascii?Q?dJez4sbKHfFbiWNPML7zIiLBkCGsDPnae1nPl1CzZg32+lC505lP0LlYqsJD?= =?us-ascii?Q?+r8AKjagt3Ng5xYAGi/la88VTCYBETUDHhzPwQTOjigRSPEPpSL5+BV9fkGC?= =?us-ascii?Q?rKXILrFye1ts+EGGXnEEFd+29/UudZ++pWs5m2uQKTMXB9UiRxKT6q/2WW4d?= =?us-ascii?Q?An4uHJqmy43mHrd+NvWMWm1OBmtjaVAK/wQq9kHLRo4h90VUSMjBiy5IBU3F?= =?us-ascii?Q?DsD7qZSO7VuKLnwgd48/Fr9s8mbcBGjQcQo2feAqHIraPhOi4BZZ1sKHN5qZ?= =?us-ascii?Q?WRj02s8JkwejhkDDKkTARzwrI5xuljFC1yGyu9uTUxroXvgNlfwbEhJTLFLT?= =?us-ascii?Q?TlisyGlHvcO8Tv7vqOgMTZ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change-Diagnostics: 1; BY2PR04MB1974; 7:YpM2iaykLY0woDPa7MEDDyyyUx5rOhvNkR1o73ehbFA8wFXqdlXaj8OV51kVA7nUh2BH0jza+JmSw46xjHNbraRK6s+0+A+2hBOmblKnoyELRIBk7QX1IFqGmo03pqNuJg3TgZtjO9FaNxaJIm5bCSsGwoqZAovbiXgJ1ExZephHSiUEeO+YI1XDYyylMqlg1xg4rI4v4mS8lA/30IX51aPkSxXOOLI7FaxXT1GhcKNxLaCGED1GrviSfTE1BBg9krX3vqbImay1h8jpcLpT81QSVQmfYiN3hwEP/kCSyeGJvNUDrhHgq+xgftm7WGmberrubaxGmC20KbyVxmO/WO8q/vRkkMHpmeY12uGTnFc=; 20:Uj/5rpmiz3UCSg902pgRvbkU4ZMZiHSgCQAJfyQmtEsPDl0474QMA3PStkJH1YgHb0iVlR7sXmrYrNstf0j1Qqhi6+Un0U7lswyiQrpDqkt5MStOzsGshCV28/KwlMYcdMqU7Fto4TloE+QsT9WVZIo4E05mPfEd2jBI2wb7WqveZ921d7mO/WK51NeQYoYdpJWbS/rp8rIxpX8TiOFuN6AUunYYIvHTL+REPytkGNuZBT5eDENvlYx0Nhur3/7Z X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 08:46:39.6229 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR04MB1974 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index ee66e08..125045d 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -690,6 +690,7 @@ static int f2fs_issue_discard_zone(struct f2fs_sb_info *sbi, case BLK_ZONE_TYPE_SEQWRITE_REQ: case BLK_ZONE_TYPE_SEQWRITE_PREF: + trace_f2fs_issue_reset_zone(sbi->sb, blkstart); return blkdev_reset_zones(bdev, sector, nr_sects, GFP_NOFS); diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 903a091..a2193e3 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -1113,6 +1113,27 @@ TRACE_EVENT(f2fs_issue_discard, (unsigned long long)__entry->blklen) ); +TRACE_EVENT(f2fs_issue_reset_zone, + + TP_PROTO(struct super_block *sb, block_t blkstart), + + TP_ARGS(sb, blkstart), + + TP_STRUCT__entry( + __field(dev_t, dev) + __field(block_t, blkstart) + ), + + TP_fast_assign( + __entry->dev = sb->s_dev; + __entry->blkstart = blkstart; + ), + + TP_printk("dev = (%d,%d), reset zone at block = 0x%llx", + show_dev(__entry), + (unsigned long long)__entry->blkstart) +); + TRACE_EVENT(f2fs_issue_flush, TP_PROTO(struct super_block *sb, unsigned int nobarrier,
Similarly to the regular discard, trace zone reset events. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> --- fs/f2fs/segment.c | 1 + include/trace/events/f2fs.h | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+)