2013-04-23 11:41:25

by Dmitry Monakhov

[permalink] [raw]

2013-04-23 20:18:41

by Al Viro

[permalink] [raw]
Subject: Re: question about buffer_busy check

On Tue, Apr 23, 2013 at 03:41:18PM +0400, Dmitry Monakhov wrote:
> The only guess I have is that this is a miss typo because buffer
> is busy if some one hold an reference (bh->b_count !=0 ) ||
> it is (dirty | locked). So following patch

... is pointless. All callers only care about the return value being
zero or non-zero and not about specific values. Granted, doing it that
way is a micro-optimization, but it's still a valid one.