Message ID | 20180404214003.GB12737@outlook.office365.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-xfs-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 2E95C60318 for <patchwork-linux-xfs@patchwork.kernel.org>; Wed, 4 Apr 2018 21:41:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16F9529035 for <patchwork-linux-xfs@patchwork.kernel.org>; Wed, 4 Apr 2018 21:41:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B55429039; Wed, 4 Apr 2018 21:41: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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable 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 0C18F29035 for <patchwork-linux-xfs@patchwork.kernel.org>; Wed, 4 Apr 2018 21:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219AbeDDVkb (ORCPT <rfc822;patchwork-linux-xfs@patchwork.kernel.org>); Wed, 4 Apr 2018 17:40:31 -0400 Received: from mail-he1eur01on0131.outbound.protection.outlook.com ([104.47.0.131]:22432 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752134AbeDDVk3 (ORCPT <rfc822;linux-xfs@vger.kernel.org>); Wed, 4 Apr 2018 17:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mfEImcUDPfyfAPTLicwsAAMJ1LKfPLdo5la0bXv4uY4=; b=gNDyYwYJBPKTWHNjhSXUfne9hOcyrpgV2/GVLLHU1013f1x0TPVLXrCAmRmZDx59Z6iAHexA79x7DZBJhQU/HXEhKyspQbMa2u3ZlJPzYBVpomhe86qwlE1ScGtcwecytNeyzI57zGHY+h0BygfX9MC+7/eKnmUOD+NG3JmvPyQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=avagin@virtuozzo.com; Received: from outlook.office365.com (4.16.175.162) by HE1PR08MB0746.eurprd08.prod.outlook.com (2a01:111:e400:59b1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Wed, 4 Apr 2018 21:40:10 +0000 Date: Wed, 4 Apr 2018 14:40:04 -0700 From: Andrei Vagin <avagin@virtuozzo.com> To: Dan Williams <dan.j.williams@intel.com> Cc: linux-nvdimm@lists.01.org, Michal Hocko <mhocko@suse.com>, =?utf-8?B?SsOpcsO0bWU=?= Glisse <jglisse@redhat.com>, Christoph Hellwig <hch@lst.de>, Jan Kara <jack@suse.cz>, david@fromorbit.com, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, snitzer@redhat.com Subject: Re: [v8, 11/18] mm, dax: enable filesystems to trigger dev_pagemap ->page_free callbacks Message-ID: <20180404214003.GB12737@outlook.office365.com> References: <152246898837.36038.26895928842345061.stgit@dwillia2-desk3.amr.corp.intel.com> <20180404212340.GA12737@outlook.office365.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180404212340.GA12737@outlook.office365.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [4.16.175.162] X-ClientProxiedBy: HE1P192CA0021.EURP192.PROD.OUTLOOK.COM (2603:10a6:3:fe::31) To HE1PR08MB0746.eurprd08.prod.outlook.com (2a01:111:e400:59b1::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ac3c7cd-ac90-46dd-0f56-08d59a74a5ed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR08MB0746; X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0746; 3:TvFgV8nBEhuLDufYHwMCi06KV3az02FriW3viMCQUI2a+fcvaLlequU2dE5TYKbojfPE1VfGFRgpgjkFJasWEzNEz+UCtfRarGbfCZuQwQQxw0LiUknZTqJIuF+UDrU1AhW7p/ruPMQys90Kw+ECxU264ts++OXpIsEsJ/u8tlUxpn5phR9hnl9Av0fsp33tdZzTrZauO4WIl4LKi5JaDE7R7ndo8+ob5CvqtOAx3RP6HWUf68FFsZOerDZM5lBb; 25:yDeQX3bGVVYR+43IUW99imibXPztvpZJmuQvYy5VxZgloY3EsCZ5b7YTHivFQpcdp+mePrLJtUB/Jy5T1/VPHwNWV8Kb7rMXNMvnJ1gONimCw7ik47TIx0mZIf23A+GtXXm9IRRh9aaV7Bk7dLzlPIIzGGtK27FN4Y2xA1lspwKMaY6Wlu2NH/fu3X9QCtZRWBfEA8k8LAbaNGoMESITMz/ixJLMQhMr9V+CBsdxnrE/4BWKv93Dj7qCpmycnpyy2LzwZaMfXXwiCSUt4LWq5XHCAG6ojOtS9RSpKOEy5+YXLYTAjAAIoKKY/oSwiSvNdpMoSSZvssUGWy7WPJLQCg==; 31:o6YvwpOL/mCsxbvunE9wXmQpgnQKPhBENEJ3EI4c2u4psPUl3AajYDA8FRwvgR075GXPZY7z59YRz8sl2knpytwK5dDSBOFD0nFP9RmFnVCeeKGKUmDlaOfc8qj7pDFwaBnlpjlhj9QRB2vjRV+ddUdHl5C1m9GGM9W+rZt1Swq9PXz32POeHl9J+hMgvke2gBSqtqaJhxyK/ktjhIRESTL8NU+XnatKsqPqfaEapMA= X-MS-TrafficTypeDiagnostic: HE1PR08MB0746: X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0746; 20:HYQp3vkzsRAxdMSnsyE+MdKt1q6kElFn36ngGYEZOARJFJvyTCnd2LOfdGPxgakZq9j2lNAEnDXY7WKESqfvzoJQQn3l3UTSyvLAEX7iFlMEn3fZMHFuR+Q9b/la/EpGG7oMEdhSlFk6KJ39gFoESPVU955Iws8+ZaUNcM0PtH5MHlSL6c+oQBMdfqazXKlmDDtvgoB+vrleXIDZ4Tuz4VvaMMYefpfgeYMTm8ijiJ/gDEF5M5WXX+4fQtTnceBmDvfYTsQ6RUDgQHtIbu1iC3V5jN1JzO49iGbKGKEz/2wv3wDkQwqZ+cEpNhpQ5UxuEYK5EOh/rby0ITBut9zdewrs0AxeOf/NgwkjG23pgeoV9Eemafw2PnDL0J2BBfXIoGFa0b4lkUKgWYmyG8EJwfcUOWYWaD2TPkYeaSpkIMz5/4iCs2CVcLfVgjAet5F8EvdfCAyly3/2B8p2WrW3ZUsNIkFJtW5nYy+sY0AFM1wzs3JGNXN5995rQ6//Y5x+; 4:4PSjQk5hhe3YOJgmvxPjgln2RhE9fcgI89VSsi+BfYgZ3KnRoIqRI4bOzXULfib93oZEubt1duPrj3EcNH2ce6/5PnR13NHlgy8VA7vowddq9p16dSTCk7AML4Up1uDBpmUfdRV+5A8rHg5iOvbjxxOKsm1oxlN8lZ4AhFHlHcSBUFWBGiTuFmeDl+ueKVVWJ0mSAAco3rLEfA/dH/oVNJ39MJgyt0Q7Xf7h2EWd6cNEJGmN6+dbP/hE+PFSBNl6wCeEXJVvb/UGmWIJeT8mTvH+qJxA7ReLl9k9329ACVPeY1wKW0SBM5TuIhl3Mc/q X-Microsoft-Antispam-PRVS: <HE1PR08MB0746E5BFC3985E37FF247C8CCFA40@HE1PR08MB0746.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR08MB0746; BCL:0; PCL:0; RULEID:; SRVR:HE1PR08MB0746; X-Forefront-PRVS: 0632519F33 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(39850400004)(39380400002)(366004)(346002)(199004)(189003)(186003)(52146003)(106356001)(55016002)(54906003)(26005)(68736007)(6916009)(8676002)(81156014)(45080400002)(97736004)(7416002)(50466002)(23676004)(2906002)(53936002)(8936002)(486006)(476003)(25786009)(6666003)(5890100001)(81166006)(229853002)(52116002)(7696005)(2870700001)(16526019)(5660300001)(7736002)(956004)(2486003)(59450400001)(76176011)(316002)(9686003)(105586002)(11346002)(47776003)(37156001)(6116002)(58126008)(4326008)(6246003)(386003)(33656002)(69596002)(66066001)(53416004)(575784001)(478600001)(6506007)(1076002)(86362001)(3846002)(446003)(305945005)(18370500001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR08MB0746; H:outlook.office365.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4TUIwNzQ2OzIzOjRZQ0NpNDNMVlpXQmR6dDFiTERpWERZUnhr?= =?utf-8?B?NjViUlRUN3FqcXcrNis3N01EVlNPZkFpRG5sQ0doMHlXRGlLZmgySDJDVWht?= =?utf-8?B?ZXU1ajRydlhsZGFESXBVNVczNDlBUE1BbGxGUXJRWC9mNlArQzFVZ3lEc2h4?= =?utf-8?B?c2k2WGFHOTUwZVBiekZoRHE2WlJPK2RXSzl0ZzBpdUg0ZCtOK1V4YX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iagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0746; 7:C+jueaEgCsoj4PZRWYRJcWOZC64qmmDpzl7xcXxEJ5Np1krzfuD07Khgl3Ev1WaOmeqhmGb2fBTfe7uKxzkH/M/eZiuh6Xj+eWObeNr0RBpXAfFpa12EWeaDXUjT0Siu2zMQ3IijDqIMn9Mspb9FVaf50/7ByHDagaYumwdan8riZ4Q7shTxBSxk+BAKiZPhdXyZX1YFTOJ+/EVNP9wLs5kq+TK7eJjsiVyXmuArensM7nUN+HURo8/2v1gEa1DR; 20:cvFMTEMM7+2eMM/4O9AfJQ/pMaY3si3aCq8GRJvHHq54wwJZrOU3IXbHvUG6at6T58f0E26AO/Mj+892aB9LyRD3snjbNMqYRX4h6aRY8silR4l2uQ7upBOiqPIxjnVDKETzVHWXp0DcX6hbTMZ1dmhop2Mz+oYozlQ0ajbyvuI= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2018 21:40:10.7202 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ac3c7cd-ac90-46dd-0f56-08d59a74a5ed X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB0746 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-xfs.vger.kernel.org> X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/dax/super.c b/drivers/dax/super.c index 5b13da127982..a67a7fe75fd5 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -228,6 +228,10 @@ static void __fs_dax_release(struct dax_device *dax_dev, void *owner) void fs_dax_release(struct dax_device *dax_dev, void *owner) { + if (!dax_dev) { + printk("%s:%d: dax_dev == NULL\n", __func__, __LINE__); + return; + } if (dax_dev->ops->fs_release) dax_dev->ops->fs_release(dax_dev, owner); else