/* Return true if the buffer is up-to-date and false, with the buffer locked, if not.  */
int bh_uptodate_or_lock(struct buffer_head *bh)
/* Return true if the buffer is up-to-date and false, with the buffer locked, if not.  */
int bh_uptodate_or_lock(struct buffer_head *bh)
{
	if (!buffer_uptodate(bh)) {
		lock_buffer(bh);
		if (!buffer_uptodate(bh))
			return 0;
		unlock_buffer(bh);
	}
	return 1;
}