public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* typo in buffer_busy macro in fs/buffer.c ??
@ 2001-01-19  1:11 Steven Ellmore
  0 siblings, 0 replies; only message in thread
From: Steven Ellmore @ 2001-01-19  1:11 UTC (permalink / raw)
  To: Kernel Mailing List


This looks like a typo:
(line 2341 of fs/buffer.c in unpatched 2.4.0
line 2345 of fs/buffer.c in 2.4.1-pre8)

#define buffer_busy(bh) (atomic_read(&(bh)->b_count) | ((bh)->b_state &
BUFFER_BUSY_BITS))

surely, it should be:
#define buffer_busy(bh) (atomic_read(&(bh)->b_count) || ((bh)->b_state &
BUFFER_BUSY_BITS))

i.e. logical OR instead of bitwise.

Shouldn't it?


-Steve Ellmore



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-19  1:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-19  1:11 typo in buffer_busy macro in fs/buffer.c ?? Steven Ellmore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox