/* nand_isreserved_bbt -  Check if a block is reserved @mtd: MTD device structure @offs: offset in the device  */
int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs)
/* nand_isreserved_bbt -  Check if a block is reserved @mtd: MTD device structure @offs: offset in the device  */
int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs)
{
	struct nand_chip *this = mtd_to_nand(mtd);
	int block;
	block = (int)(offs >> this->bbt_erase_shift);
	return bbt_get_entry(this, block) == BBT_BLOCK_RESERVED;
}