* [PATCH] mm/buffer.c: remove the macro check in check_irqs_on()
@ 2020-12-23 6:30 Hui Su
0 siblings, 0 replies; only message in thread
From: Hui Su @ 2020-12-23 6:30 UTC (permalink / raw)
To: linux-kernel, viro, linux-fsdevel; +Cc: sh_def, songmuchun
The macro irqs_disabled is always defined in include/linux/irqflags.h,
so we don't need the macro check.
Signed-off-by: Hui Su <sh_def@163.com>
---
fs/buffer.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/buffer.c b/fs/buffer.c
index 32647d2011df..34b505542d96 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1247,9 +1247,7 @@ static DEFINE_PER_CPU(struct bh_lru, bh_lrus) = {{ NULL }};
static inline void check_irqs_on(void)
{
-#ifdef irqs_disabled
BUG_ON(irqs_disabled());
-#endif
}
/*
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-23 6:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 6:30 [PATCH] mm/buffer.c: remove the macro check in check_irqs_on() Hui Su
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®