[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210820120848.5692d25a@oasis.local.home>
Date: Fri, 20 Aug 2021 12:08:48 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: David Hildenbrand <david@...hat.com>
Cc: Jeff Layton <jlayton@...nel.org>, torvalds@...ux-foundation.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
ebiederm@...ssion.com, willy@...radead.org,
linux-nfs@...r.kernel.org, viro@...iv.linux.org.uk,
linux-doc@...r.kernel.org, v9fs-developer@...ts.sourceforge.net,
linux-afs@...ts.infradead.org, cluster-devel@...hat.com,
ocfs2-devel@....oracle.com, linux-mm@...ck.org,
akpm@...ux-foundation.org, luto@...nel.org, bfields@...ldses.org,
w@....eu, stable@...r.kernel.org
Subject: Re: [PATCH v2 1/2] fs: warn about impending deprecation of
mandatory locks
On Fri, 20 Aug 2021 17:52:19 +0200
David Hildenbrand <david@...hat.com> wrote:
> > +static bool warned_mand;
> > static inline bool may_mandlock(void)
> > {
> > + if (!warned_mand) {
> > + warned_mand = true;
> > + pr_warn("======================================================\n");
> > + pr_warn("WARNING: the mand mount option is being deprecated and\n");
> > + pr_warn(" will be removed in v5.15!\n");
> > + pr_warn("======================================================\n");
> > + }
>
> Is there a reason not to use pr_warn_once() ?
You would need a single call though, otherwise each pr_warn_once()
would have its own state that it warned once.
const char warning[] =
"======================================================\n"
"WARNING: the mand mount option is being deprecated and\n"
" will be removed in v5.15!\n"
"======================================================\n";
pr_warn_once(warning);
-- Steve
Powered by blists - more mailing lists