Message ID | 20210723225032.m8CFwVQJU%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=htka=MP=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 101C7C432BE for <linux-mm@archiver.kernel.org>; Fri, 23 Jul 2021 22:50:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B24C660EB5 for <linux-mm@archiver.kernel.org>; Fri, 23 Jul 2021 22:50:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B24C660EB5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 5B6576B0033; Fri, 23 Jul 2021 18:50:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 567006B007D; Fri, 23 Jul 2021 18:50:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4559D6B007E; Fri, 23 Jul 2021 18:50:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0214.hostedemail.com [216.40.44.214]) by kanga.kvack.org (Postfix) with ESMTP id 2CE7C6B0033 for <linux-mm@kvack.org>; Fri, 23 Jul 2021 18:50:35 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id CE93A8249980 for <linux-mm@kvack.org>; Fri, 23 Jul 2021 22:50:34 +0000 (UTC) X-FDA: 78395348388.37.D908291 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf04.hostedemail.com (Postfix) with ESMTP id 6C97B5002FE1 for <linux-mm@kvack.org>; Fri, 23 Jul 2021 22:50:34 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 5323160F42; Fri, 23 Jul 2021 22:50:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1627080633; bh=x14KZUpMOJWGSa/iEExN+oNJnCajAmq1wktTWR6fZKY=; h=Date:From:To:Subject:In-Reply-To:From; b=j3AM2Bz0c88QE3amXRrlyltIKb1JATRnWna5wIOmGndMJbcjIYgOSBYO/BYYqfEHq t8g3DYA33IlFk9f5C6JkIzsOYN0QdSp3O8YYM+F9/pWi58eXIBzxVTKFzKABeEnzlu 09w7OETfl8bLlEYgRUf4W/gb0mTYpYxCwpJ5h6Pc= Date: Fri, 23 Jul 2021 15:50:32 -0700 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, dchinner@redhat.com, djwong@kernel.org, guro@fb.com, jack@suse.cz, jencce.kernel@gmail.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org, willy@infradead.org Subject: [patch 11/15] writeback, cgroup: do not reparent dax inodes Message-ID: <20210723225032.m8CFwVQJU%akpm@linux-foundation.org> In-Reply-To: <20210723154926.c6cda0f262b1990b950a5886@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=j3AM2Bz0; spf=pass (imf04.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam02 X-Stat-Signature: tb1shux19tmbtetnkn7oy4ryt76usrno X-Rspamd-Queue-Id: 6C97B5002FE1 X-HE-Tag: 1627080634-422530 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/15] userfaultfd: do not untag user pointers
|
expand
|
--- a/fs/fs-writeback.c~writeback-cgroup-do-not-reparent-dax-inodes +++ a/fs/fs-writeback.c @@ -521,6 +521,9 @@ static bool inode_prepare_wbs_switch(str */ smp_mb(); + if (IS_DAX(inode)) + return false; + /* while holding I_WB_SWITCH, no one else can update the association */ spin_lock(&inode->i_lock); if (!(inode->i_sb->s_flags & SB_ACTIVE) ||