taglinefilesource code
bh24fs/block_dev.cstruct buffer_head * bh;
bh39fs/block_dev.cbh = getblk(dev, block, BLOCK_SIZE);
bh41fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
bh43fs/block_dev.cif (!bh)
bh45fs/block_dev.cp = offset + bh->b_data;
bh53fs/block_dev.cbh->b_uptodate = 1;
bh54fs/block_dev.cbh->b_dirt = 1;
bh55fs/block_dev.cbrelse(bh);
bh59fs/buffer.cvoid __wait_on_buffer(struct buffer_head * bh)
bh63fs/buffer.cadd_wait_queue(&bh->b_wait, &wait);
bh66fs/buffer.cif (bh->b_lock) {
bh70fs/buffer.cremove_wait_queue(&bh->b_wait, &wait);
bh77fs/buffer.cstruct buffer_head * bh;
bh79fs/buffer.cbh = free_list;
bh80fs/buffer.cfor (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) {
bh81fs/buffer.cif (dev && bh->b_dev != dev)
bh83fs/buffer.cif (bh->b_lock)
bh85fs/buffer.cif (!bh->b_dirt)
bh87fs/buffer.cll_rw_block(WRITE, 1, &bh);
bh108fs/buffer.cstruct buffer_head * bh;
bh110fs/buffer.cbh = free_list;
bh111fs/buffer.cfor (i = nr_buffers*2 ; --i > 0 ; bh = bh->b_next_free) {
bh112fs/buffer.cif (bh->b_dev != dev)
bh114fs/buffer.cwait_on_buffer(bh);
bh115fs/buffer.cif (bh->b_dev == dev)
bh116fs/buffer.cbh->b_uptodate = bh->b_dirt = 0;
bh137fs/buffer.cstruct buffer_head * bh;
bh141fs/buffer.cif (!(bh = getblk(dev,0,1024)))
bh143fs/buffer.ci = floppy_change(bh);
bh144fs/buffer.cbrelse(bh);
bh184fs/buffer.cstatic inline void remove_from_hash_queue(struct buffer_head * bh)
bh186fs/buffer.cif (bh->b_next)
bh187fs/buffer.cbh->b_next->b_prev = bh->b_prev;
bh188fs/buffer.cif (bh->b_prev)
bh189fs/buffer.cbh->b_prev->b_next = bh->b_next;
bh190fs/buffer.cif (hash(bh->b_dev,bh->b_blocknr) == bh)
bh191fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh->b_next;
bh192fs/buffer.cbh->b_next = bh->b_prev = NULL;
bh195fs/buffer.cstatic inline void remove_from_free_list(struct buffer_head * bh)
bh197fs/buffer.cif (!(bh->b_prev_free) || !(bh->b_next_free))
bh199fs/buffer.cbh->b_prev_free->b_next_free = bh->b_next_free;
bh200fs/buffer.cbh->b_next_free->b_prev_free = bh->b_prev_free;
bh201fs/buffer.cif (free_list == bh)
bh202fs/buffer.cfree_list = bh->b_next_free;
bh203fs/buffer.cbh->b_next_free = bh->b_prev_free = NULL;
bh206fs/buffer.cstatic inline void remove_from_queues(struct buffer_head * bh)
bh208fs/buffer.cremove_from_hash_queue(bh);
bh209fs/buffer.cremove_from_free_list(bh);
bh212fs/buffer.cstatic inline void put_first_free(struct buffer_head * bh)
bh214fs/buffer.cif (!bh || (bh == free_list))
bh216fs/buffer.cremove_from_free_list(bh);
bh218fs/buffer.cbh->b_next_free = free_list;
bh219fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh220fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh221fs/buffer.cfree_list->b_prev_free = bh;
bh222fs/buffer.cfree_list = bh;
bh225fs/buffer.cstatic inline void put_last_free(struct buffer_head * bh)
bh227fs/buffer.cif (!bh)
bh229fs/buffer.cif (bh == free_list) {
bh230fs/buffer.cfree_list = bh->b_next_free;
bh233fs/buffer.cremove_from_free_list(bh);
bh235fs/buffer.cbh->b_next_free = free_list;
bh236fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh237fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh238fs/buffer.cfree_list->b_prev_free = bh;
bh241fs/buffer.cstatic inline void insert_into_queues(struct buffer_head * bh)
bh244fs/buffer.cbh->b_next_free = free_list;
bh245fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh246fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh247fs/buffer.cfree_list->b_prev_free = bh;
bh249fs/buffer.cbh->b_prev = NULL;
bh250fs/buffer.cbh->b_next = NULL;
bh251fs/buffer.cif (!bh->b_dev)
bh253fs/buffer.cbh->b_next = hash(bh->b_dev,bh->b_blocknr);
bh254fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh;
bh255fs/buffer.cif (bh->b_next)
bh256fs/buffer.cbh->b_next->b_prev = bh;
bh284fs/buffer.cstruct buffer_head * bh;
bh287fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
bh289fs/buffer.cbh->b_count++;
bh290fs/buffer.cwait_on_buffer(bh);
bh291fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
bh292fs/buffer.creturn bh;
bh293fs/buffer.cbh->b_count--;
bh307fs/buffer.c#define BADNESS(bh) (((bh)->b_dirt<<1)+(bh)->b_lock)
bh310fs/buffer.cstruct buffer_head * bh, * tmp;
bh315fs/buffer.cbh = get_hash_table(dev, block, size);
bh316fs/buffer.cif (bh) {
bh317fs/buffer.cif (bh->b_uptodate && !bh->b_dirt)
bh318fs/buffer.cput_last_free(bh);
bh319fs/buffer.creturn bh;
bh329fs/buffer.cbh = NULL;
bh336fs/buffer.cif (!bh || BADNESS(tmp)<BADNESS(bh)) {
bh337fs/buffer.cbh = tmp;
bh347fs/buffer.cif (!bh && nr_free_pages > 5) {
bh353fs/buffer.cif (!bh) {
bh357fs/buffer.cwait_on_buffer(bh);
bh358fs/buffer.cif (bh->b_count || bh->b_size != size)
bh360fs/buffer.cif (bh->b_dirt) {
bh361fs/buffer.csync_buffers(bh->b_dev);
bh370fs/buffer.cbh->b_count=1;
bh371fs/buffer.cbh->b_dirt=0;
bh372fs/buffer.cbh->b_uptodate=0;
bh373fs/buffer.cremove_from_queues(bh);
bh374fs/buffer.cbh->b_dev=dev;
bh375fs/buffer.cbh->b_blocknr=block;
bh376fs/buffer.cinsert_into_queues(bh);
bh377fs/buffer.creturn bh;
bh400fs/buffer.cstruct buffer_head * bh;
bh402fs/buffer.cif (!(bh = getblk(dev, block, size))) {
bh407fs/buffer.cif (bh->b_uptodate)
bh408fs/buffer.creturn bh;
bh409fs/buffer.cll_rw_block(READ, 1, &bh);
bh410fs/buffer.cwait_on_buffer(bh);
bh411fs/buffer.cif (bh->b_uptodate)
bh412fs/buffer.creturn bh;
bh413fs/buffer.cbrelse(bh);
bh425fs/buffer.cstruct buffer_head * bh, *tmp;
bh428fs/buffer.cif (!(bh = getblk(dev, first, 1024))) {
bh433fs/buffer.cif (!bh->b_uptodate)
bh434fs/buffer.cll_rw_block(READ, 1, &bh);
bh444fs/buffer.cwait_on_buffer(bh);
bh445fs/buffer.cif (bh->b_uptodate)
bh446fs/buffer.creturn bh;
bh447fs/buffer.cbrelse(bh);
bh454fs/buffer.cstatic void put_unused_buffer_head(struct buffer_head * bh)
bh458fs/buffer.cwait = ((volatile struct buffer_head *) bh)->b_wait;
bh459fs/buffer.cmemset((void *) bh,0,sizeof(*bh));
bh460fs/buffer.c((volatile struct buffer_head *) bh)->b_wait = wait;
bh461fs/buffer.cbh->b_next_free = unused_list;
bh462fs/buffer.cunused_list = bh;
bh468fs/buffer.cstruct buffer_head * bh;
bh475fs/buffer.cbh = (struct buffer_head *) page;
bh476fs/buffer.cwhile ((unsigned long) (bh+1) <= page+4096) {
bh477fs/buffer.cput_unused_buffer_head(bh);
bh478fs/buffer.cbh++;
bh485fs/buffer.cstruct buffer_head * bh;
bh490fs/buffer.cbh = unused_list;
bh491fs/buffer.cunused_list = bh->b_next_free;
bh492fs/buffer.cbh->b_next_free = NULL;
bh493fs/buffer.cbh->b_data = NULL;
bh494fs/buffer.cbh->b_size = 0;
bh495fs/buffer.creturn bh;
bh517fs/buffer.cstruct buffer_head * bh[4];
bh529fs/buffer.cbh[i] = NULL;
bh531fs/buffer.cbh[i] = getblk(dev, b[i], size);
bh532fs/buffer.cif (bh[i] && !bh[i]->b_uptodate)
bh533fs/buffer.cbhr[bhnum++] = bh[i];
bh540fs/buffer.cif (bh[i]) {
bh541fs/buffer.cwait_on_buffer(bh[i]);
bh542fs/buffer.cif (bh[i]->b_uptodate)
bh543fs/buffer.cCOPYBLK((unsigned long) bh[i]->b_data,address);
bh544fs/buffer.cbrelse(bh[i]);
bh560fs/buffer.cstruct buffer_head *bh, *tmp;
bh572fs/buffer.cbh = get_unused_buffer_head();
bh573fs/buffer.cif (!bh)
bh575fs/buffer.cbh->b_this_page = tmp;
bh576fs/buffer.ctmp = bh;
bh577fs/buffer.cbh->b_data = (char * ) (page+i);
bh578fs/buffer.cbh->b_size = size;
bh580fs/buffer.ctmp = bh;
bh598fs/buffer.ctmp->b_this_page = bh;
bh605fs/buffer.cbh = tmp;
bh606fs/buffer.cwhile (bh) {
bh607fs/buffer.ctmp = bh;
bh608fs/buffer.cbh = bh->b_this_page;
bh618fs/buffer.cstatic int try_to_free(struct buffer_head * bh)
bh623fs/buffer.cpage = (unsigned long) bh->b_data;
bh627fs/buffer.ctmp = bh;
bh634fs/buffer.c} while (tmp != bh);
bh635fs/buffer.ctmp = bh;
bh642fs/buffer.c} while (tmp != bh);
bh657fs/buffer.cstruct buffer_head *bh;
bh662fs/buffer.cbh = free_list;
bh664fs/buffer.cfor ( ; i-- > 0 ; bh = bh->b_next_free) {
bh665fs/buffer.cif (bh->b_count || !bh->b_this_page)
bh667fs/buffer.cif (bh->b_lock)
bh671fs/buffer.cwait_on_buffer(bh);
bh672fs/buffer.cif (bh->b_dirt) {
bh673fs/buffer.cll_rw_block(WRITEA, 1, &bh);
bh676fs/buffer.cif (try_to_free(bh))
bh185fs/exec.cstruct buffer_head * bh;
bh205fs/exec.cif (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) {
bh213fs/exec.cex = *(struct exec *) bh->b_data;
bh214fs/exec.cbrelse(bh);
bh69fs/ext/dir.cstruct buffer_head * bh;
bh78fs/ext/dir.cbh = ext_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0);
bh79fs/ext/dir.cif (!bh) {
bh83fs/ext/dir.cde = (struct ext_dir_entry *) (offset + bh->b_data);
bh108fs/ext/dir.cbrelse(bh);
bh115fs/ext/dir.cbrelse(bh);
bh197fs/ext/file.cstruct buffer_head * bh;
bh218fs/ext/file.cbh = ext_getblk(inode,pos/BLOCK_SIZE,1);
bh219fs/ext/file.cif (!bh) {
bh227fs/ext/file.cif (c != BLOCK_SIZE && !bh->b_uptodate) {
bh228fs/ext/file.cll_rw_block(READ, 1, &bh);
bh229fs/ext/file.cwait_on_buffer(bh);
bh230fs/ext/file.cif (!bh->b_uptodate) {
bh231fs/ext/file.cbrelse(bh);
bh237fs/ext/file.cp = (pos % BLOCK_SIZE) + bh->b_data;
bh246fs/ext/file.cbh->b_uptodate = 1;
bh247fs/ext/file.cbh->b_dirt = 1;
bh248fs/ext/file.cbrelse(bh);
bh48fs/ext/freelists.cstruct buffer_head * bh;
bh61fs/ext/freelists.cbh = get_hash_table(sb->s_dev, block, sb->s_blocksize);
bh62fs/ext/freelists.cif (bh)
bh63fs/ext/freelists.cbh->b_dirt=0;
bh64fs/ext/freelists.cbrelse(bh);
bh92fs/ext/freelists.cstruct buffer_head * bh;
bh131fs/ext/freelists.cif (!(bh=getblk(sb->s_dev, j, sb->s_blocksize))) {
bh135fs/ext/freelists.cclear_block(bh->b_data);
bh136fs/ext/freelists.cbh->b_uptodate = 1;
bh137fs/ext/freelists.cbh->b_dirt = 1;
bh138fs/ext/freelists.cbrelse(bh);
bh149fs/ext/freelists.cstruct buffer_head * bh;
bh161fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
bh165fs/ext/freelists.cefb = (struct ext_free_block *) bh->b_data;
bh168fs/ext/freelists.cbrelse (bh);
bh183fs/ext/freelists.cstruct buffer_head * bh;
bh221fs/ext/freelists.cif (!(bh = bread(inode->i_dev, block, inode->i_sb->s_blocksize)))
bh223fs/ext/freelists.cefi = ((struct ext_free_inode *) bh->b_data) +
bh228fs/ext/freelists.cinode->i_sb->u.ext_sb.s_firstfreeinodeblock = bh;
bh302fs/ext/freelists.cstruct buffer_head * bh;
bh321fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
bh325fs/ext/freelists.cefi = ((struct ext_free_inode *) bh->b_data) +
bh329fs/ext/freelists.cbrelse (bh);
bh58fs/ext/inode.cstruct buffer_head *bh;
bh63fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
bh69fs/ext/inode.ces = (struct ext_super_block *) bh->b_data;
bh81fs/ext/inode.cbrelse(bh);
bh124fs/ext/inode.cstruct buffer_head * bh;
bh127fs/ext/inode.cif (!(bh = bread(sb->s_dev, 1, BLOCK_SIZE))) {
bh131fs/ext/inode.ces = (struct ext_super_block *) bh->b_data;
bh136fs/ext/inode.cbh->b_dirt = 1;
bh137fs/ext/inode.cbrelse (bh);
bh159fs/ext/inode.cstatic int block_bmap(struct buffer_head * bh, int nr)
bh163fs/ext/inode.cif (!bh)
bh165fs/ext/inode.ctmp = ((unsigned long *) bh->b_data)[nr];
bh166fs/ext/inode.cbrelse(bh);
bh248fs/ext/inode.cstruct buffer_head * bh, int nr, int create)
bh254fs/ext/inode.cif (!bh)
bh256fs/ext/inode.cif (!bh->b_uptodate) {
bh257fs/ext/inode.cll_rw_block(READ, 1, &bh);
bh258fs/ext/inode.cwait_on_buffer(bh);
bh259fs/ext/inode.cif (!bh->b_uptodate) {
bh260fs/ext/inode.cbrelse(bh);
bh264fs/ext/inode.cp = nr + (unsigned long *) bh->b_data;
bh268fs/ext/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh270fs/ext/inode.cbrelse(bh);
bh277fs/ext/inode.cbrelse(bh);
bh282fs/ext/inode.cbrelse(bh);
bh285fs/ext/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh292fs/ext/inode.cbh->b_dirt = 1;
bh293fs/ext/inode.cbrelse(bh);
bh299fs/ext/inode.cstruct buffer_head * bh;
bh313fs/ext/inode.cbh = inode_getblk(inode,9,create);
bh314fs/ext/inode.creturn block_getblk(inode,bh,block,create);
bh318fs/ext/inode.cbh = inode_getblk(inode,10,create);
bh319fs/ext/inode.cbh = block_getblk(inode,bh,block>>8,create);
bh320fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
bh323fs/ext/inode.cbh = inode_getblk(inode,11,create);
bh324fs/ext/inode.cbh = block_getblk(inode,bh,block>>16,create);
bh325fs/ext/inode.cbh = block_getblk(inode,bh,(block>>8) & 255,create);
bh326fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
bh331fs/ext/inode.cstruct buffer_head * bh;
bh333fs/ext/inode.cbh = ext_getblk(inode,block,create);
bh334fs/ext/inode.cif (!bh || bh->b_uptodate) 
bh335fs/ext/inode.creturn bh;
bh336fs/ext/inode.cll_rw_block(READ, 1, &bh);
bh337fs/ext/inode.cwait_on_buffer(bh);
bh338fs/ext/inode.cif (bh->b_uptodate)
bh339fs/ext/inode.creturn bh;
bh340fs/ext/inode.cbrelse(bh);
bh346fs/ext/inode.cstruct buffer_head * bh;
bh351fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh353fs/ext/inode.craw_inode = ((struct ext_inode *) bh->b_data) +
bh366fs/ext/inode.cbrelse(bh);
bh390fs/ext/inode.cstruct buffer_head * bh;
bh395fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh397fs/ext/inode.craw_inode = ((struct ext_inode *)bh->b_data) +
bh409fs/ext/inode.cbh->b_dirt=1;
bh411fs/ext/inode.cbrelse(bh);
bh92fs/ext/namei.cstruct buffer_head * bh;
bh105fs/ext/namei.cbh = ext_bread(dir,0,0);
bh106fs/ext/namei.cif (!bh)
bh113fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh115fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data) {
bh116fs/ext/namei.cbrelse(bh);
bh117fs/ext/namei.cbh = NULL;
bh118fs/ext/namei.cbh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,0);
bh119fs/ext/namei.cif (!bh)
bh121fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh127fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
bh131fs/ext/namei.cde = (struct ext_dir_entry *) (bh->b_data+BLOCK_SIZE);
bh141fs/ext/namei.c((char *)de) + de->rec_len < BLOCK_SIZE+bh->b_data)
bh146fs/ext/namei.creturn bh;
bh153fs/ext/namei.cbrelse(bh);
bh162fs/ext/namei.cstruct buffer_head * bh;
bh171fs/ext/namei.cif (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) {
bh176fs/ext/namei.cbrelse(bh);
bh201fs/ext/namei.cstruct buffer_head * bh;
bh216fs/ext/namei.cbh = ext_bread(dir,0,0);
bh217fs/ext/namei.cif (!bh)
bh221fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh223fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) {
bh227fs/ext/namei.cbrelse(bh);
bh228fs/ext/namei.cbh = NULL;
bh229fs/ext/namei.cbh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,0);
bh230fs/ext/namei.cif (!bh)
bh232fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh250fs/ext/namei.cbh->b_dirt = 1;
bh252fs/ext/namei.cbrelse (bh);
bh253fs/ext/namei.cbh = NULL;
bh257fs/ext/namei.cbh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,1);
bh258fs/ext/namei.cif (!bh)
bh260fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh271fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
bh275fs/ext/namei.cbrelse (bh);
bh295fs/ext/namei.cbh->b_dirt = 1;
bh297fs/ext/namei.creturn bh;
bh302fs/ext/namei.cbrelse(bh);
bh310fs/ext/namei.cstruct buffer_head * bh;
bh324fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh325fs/ext/namei.cif (!bh) {
bh333fs/ext/namei.cbh->b_dirt = 1;
bh334fs/ext/namei.cbrelse(bh);
bh343fs/ext/namei.cstruct buffer_head * bh;
bh348fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh349fs/ext/namei.cif (bh) {
bh350fs/ext/namei.cbrelse(bh);
bh387fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh388fs/ext/namei.cif (!bh) {
bh396fs/ext/namei.cbh->b_dirt = 1;
bh397fs/ext/namei.cbrelse(bh);
bh406fs/ext/namei.cstruct buffer_head * bh, *dir_block;
bh409fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh410fs/ext/namei.cif (bh) {
bh411fs/ext/namei.cbrelse(bh);
bh452fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh453fs/ext/namei.cif (!bh) {
bh460fs/ext/namei.cbh->b_dirt = 1;
bh465fs/ext/namei.cbrelse(bh);
bh475fs/ext/namei.cstruct buffer_head * bh;
bh478fs/ext/namei.cif (inode->i_size < 2 * 12 || !(bh = ext_bread(inode,0,0))) {
bh482fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh492fs/ext/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
bh493fs/ext/namei.cbrelse(bh);
bh494fs/ext/namei.cbh = ext_bread(inode, offset >> BLOCK_SIZE_BITS,1);
bh495fs/ext/namei.cif (!bh) {
bh499fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh506fs/ext/namei.cbrelse (bh);
bh510fs/ext/namei.cbrelse(bh);
bh516fs/ext/namei.cbrelse(bh);
bh533fs/ext/namei.cstruct buffer_head * bh;
bh537fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
bh539fs/ext/namei.cif (!bh)
bh568fs/ext/namei.cbh->b_dirt = 1;
bh578fs/ext/namei.cbrelse(bh);
bh586fs/ext/namei.cstruct buffer_head * bh;
bh591fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
bh592fs/ext/namei.cif (!bh)
bh611fs/ext/namei.cbh->b_dirt = 1;
bh619fs/ext/namei.cbrelse(bh);
bh629fs/ext/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh655fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh656fs/ext/namei.cif (bh) {
bh660fs/ext/namei.cbrelse(bh);
bh664fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh665fs/ext/namei.cif (!bh) {
bh673fs/ext/namei.cbh->b_dirt = 1;
bh674fs/ext/namei.cbrelse(bh);
bh683fs/ext/namei.cstruct buffer_head * bh;
bh695fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh696fs/ext/namei.cif (bh) {
bh697fs/ext/namei.cbrelse(bh);
bh702fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh703fs/ext/namei.cif (!bh) {
bh709fs/ext/namei.cbh->b_dirt = 1;
bh710fs/ext/namei.cbrelse(bh);
bh52fs/ext/symlink.cstruct buffer_head * bh;
bh73fs/ext/symlink.cif (!(bh = ext_bread(inode, 0, 0))) {
bh80fs/ext/symlink.cerror = open_namei(bh->b_data,flag,mode,res_inode,dir);
bh82fs/ext/symlink.cbrelse(bh);
bh88fs/ext/symlink.cstruct buffer_head * bh;
bh98fs/ext/symlink.cbh = ext_bread(inode, 0, 0);
bh100fs/ext/symlink.cif (!bh)
bh103fs/ext/symlink.cwhile (i<buflen && (c = bh->b_data[i])) {
bh107fs/ext/symlink.cbrelse(bh);
bh37fs/ext/truncate.cstruct buffer_head * bh;
bh46fs/ext/truncate.cbh = getblk(inode->i_dev,tmp,BLOCK_SIZE);
bh48fs/ext/truncate.cbrelse(bh);
bh51fs/ext/truncate.cif ((bh && bh->b_count != 1) || tmp != *p) {
bh53fs/ext/truncate.cbrelse(bh);
bh58fs/ext/truncate.cbrelse(bh);
bh67fs/ext/truncate.cstruct buffer_head * bh;
bh95fs/ext/truncate.cbh = getblk(inode->i_dev,tmp,BLOCK_SIZE);
bh97fs/ext/truncate.cbrelse(bh);
bh100fs/ext/truncate.cif ((bh && bh->b_count != 1) || tmp != *ind) {
bh102fs/ext/truncate.cbrelse(bh);
bh107fs/ext/truncate.cbrelse(bh);
bh84fs/ext2/balloc.cstruct buffer_head * bh;
bh94fs/ext2/balloc.cbh = bread (sb->s_dev, gdp[desc].bg_block_bitmap, sb->s_blocksize);
bh95fs/ext2/balloc.cif (!bh) {
bh101fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[bitmap_nr] = bh;
bh176fs/ext2/balloc.cstruct buffer_head * bh;
bh201fs/ext2/balloc.cbh = get_hash_table (sb->s_dev, block, sb->s_blocksize);
bh202fs/ext2/balloc.cif (bh)
bh203fs/ext2/balloc.cbh->b_dirt = 0;
bh204fs/ext2/balloc.cbrelse (bh);
bh210fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
bh211fs/ext2/balloc.cif (!bh) {
bh215fs/ext2/balloc.cif (clear_bit (bit, bh->b_data))
bh230fs/ext2/balloc.cbh->b_dirt = 1;
bh245fs/ext2/balloc.cstruct buffer_head * bh;
bh292fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
bh293fs/ext2/balloc.cif (!bh) {
bh297fs/ext2/balloc.cif ((j = find_first_zero (bh->b_data, EXT2_BLOCKS_PER_GROUP(sb))) <
bh299fs/ext2/balloc.cif (set_bit (j, bh->b_data)) {
bh303fs/ext2/balloc.cbh->b_dirt = 1;
bh316fs/ext2/balloc.cif (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) {
bh321fs/ext2/balloc.cclear_block (bh->b_data, sb->s_blocksize);
bh322fs/ext2/balloc.cbh->b_uptodate = 1;
bh323fs/ext2/balloc.cbh->b_dirt = 1;
bh324fs/ext2/balloc.cbrelse (bh);
bh72fs/ext2/dir.cstruct buffer_head * bh;
bh81fs/ext2/dir.cbh = ext2_bread (inode, (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb), 0);
bh82fs/ext2/dir.cif (!bh) {
bh86fs/ext2/dir.cde = (struct ext2_dir_entry *) (offset + bh->b_data);
bh95fs/ext2/dir.cbrelse (bh);
bh112fs/ext2/dir.cbrelse (bh);
bh118fs/ext2/dir.cbrelse (bh);
bh203fs/ext2/file.cstruct buffer_head * bh;
bh226fs/ext2/file.cbh = ext2_getblk (inode, pos / sb->s_blocksize, 1);
bh227fs/ext2/file.cif (!bh) {
bh238fs/ext2/file.cif (c != sb->s_blocksize && !bh->b_uptodate) {
bh239fs/ext2/file.cll_rw_block (READ, 1, &bh);
bh240fs/ext2/file.cwait_on_buffer (bh);
bh241fs/ext2/file.cif (!bh->b_uptodate) {
bh242fs/ext2/file.cbrelse (bh);
bh248fs/ext2/file.cp = (pos % sb->s_blocksize) + bh->b_data;
bh257fs/ext2/file.cbh->b_uptodate = 1;
bh258fs/ext2/file.cbh->b_dirt = 1;
bh259fs/ext2/file.cbrelse (bh);
bh77fs/ext2/ialloc.cstruct buffer_head * bh;
bh87fs/ext2/ialloc.cbh = bread (sb->s_dev, gdp[desc].bg_inode_bitmap, sb->s_blocksize);
bh88fs/ext2/ialloc.cif (!bh) {
bh94fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[bitmap_nr] = bh;
bh176fs/ext2/ialloc.cstruct buffer_head * bh;
bh182fs/ext2/ialloc.cbh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize);
bh183fs/ext2/ialloc.cif (!bh) {
bh187fs/ext2/ialloc.craw_inode = ((struct ext2_inode *) bh->b_data) +
bh192fs/ext2/ialloc.cbh->b_dirt = 1;
bh193fs/ext2/ialloc.cbrelse (bh);
bh199fs/ext2/ialloc.cstruct buffer_head * bh;
bh243fs/ext2/ialloc.cbh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr];
bh244fs/ext2/ialloc.cif (!bh) {
bh248fs/ext2/ialloc.cif (clear_bit (bit, bh->b_data))
bh266fs/ext2/ialloc.cbh->b_dirt = 1;
bh284fs/ext2/ialloc.cstruct buffer_head * bh;
bh290fs/ext2/ialloc.cbh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize);
bh291fs/ext2/ialloc.cif (!bh) {
bh298fs/ext2/ialloc.craw_inode = ((struct ext2_inode *) bh->b_data) +
bh304fs/ext2/ialloc.cbh->b_dirt = 1;
bh305fs/ext2/ialloc.cbrelse (bh);
bh316fs/ext2/ialloc.cstruct buffer_head * bh;
bh356fs/ext2/ialloc.cbh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr];
bh357fs/ext2/ialloc.cif (!bh) {
bh361fs/ext2/ialloc.cif ((j = find_first_zero (bh->b_data, EXT2_INODES_PER_GROUP(sb))) <
bh363fs/ext2/ialloc.cif (set_bit (j, bh->b_data)) {
bh367fs/ext2/ialloc.cbh->b_dirt = 1;
bh71fs/ext2/inode.cstruct buffer_head * bh)
bh80fs/ext2/inode.ces = (struct ext2_super_block *) bh->b_data;
bh103fs/ext2/inode.cbh->b_dirt = 1;
bh110fs/ext2/inode.cstruct buffer_head * bh;
bh118fs/ext2/inode.cif (!(bh = bread (dev, 1, BLOCK_SIZE))) {
bh124fs/ext2/inode.ces = (struct ext2_super_block *) bh->b_data;
bh144fs/ext2/inode.cs->u.ext2_sb.s_sbh = bh;
bh152fs/ext2/inode.cbrelse (bh);
bh162fs/ext2/inode.cbrelse (bh);
bh166fs/ext2/inode.cif (!convert_pre_02b_fs (s, bh)) {
bh169fs/ext2/inode.cbrelse (bh);
bh179fs/ext2/inode.cbrelse (bh);
bh186fs/ext2/inode.cbrelse (bh);
bh208fs/ext2/inode.cbrelse (bh);
bh230fs/ext2/inode.cbrelse (bh);
bh237fs/ext2/inode.cbh->b_dirt = 1;
bh268fs/ext2/inode.cstruct buffer_head * bh;
bh287fs/ext2/inode.cif (!(bh = bread (sb->s_dev, block, BLOCK_SIZE)))
bh293fs/ext2/inode.cmemcpy (bh->b_data, es, BLOCK_SIZE);
bh294fs/ext2/inode.cbh ->b_dirt = 1;
bh295fs/ext2/inode.cbrelse (bh);
bh302fs/ext2/inode.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize)))
bh305fs/ext2/inode.cmemcpy (bh->b_data, sb->u.ext2_sb.s_group_desc[j]->b_data, sb->s_blocksize);
bh306fs/ext2/inode.cbh ->b_dirt = 1;
bh307fs/ext2/inode.cbrelse (bh);
bh334fs/ext2/inode.cstatic int block_bmap (struct buffer_head * bh, int nr)
bh338fs/ext2/inode.cif (!bh)
bh340fs/ext2/inode.ctmp = ((unsigned long *) bh->b_data)[nr];
bh341fs/ext2/inode.cbrelse (bh);
bh437fs/ext2/inode.cstruct buffer_head * bh, int nr,
bh445fs/ext2/inode.cif (!bh)
bh447fs/ext2/inode.cif (!bh->b_uptodate) {
bh448fs/ext2/inode.cll_rw_block (READ, 1, &bh);
bh449fs/ext2/inode.cwait_on_buffer (bh);
bh450fs/ext2/inode.cif (!bh->b_uptodate) {
bh451fs/ext2/inode.cbrelse (bh);
bh455fs/ext2/inode.cp = nr + (unsigned long *) bh->b_data;
bh459fs/ext2/inode.cresult = getblk (bh->b_dev, tmp, blocksize);
bh461fs/ext2/inode.cbrelse (bh);
bh468fs/ext2/inode.cbrelse (bh);
bh476fs/ext2/inode.cbrelse (bh);
bh479fs/ext2/inode.cresult = getblk (bh->b_dev, tmp, blocksize);
bh486fs/ext2/inode.cbh->b_dirt = 1;
bh489fs/ext2/inode.cbrelse (bh);
bh496fs/ext2/inode.cstruct buffer_head * bh;
bh513fs/ext2/inode.cbh = inode_getblk (inode, EXT2_IND_BLOCK, create);
bh514fs/ext2/inode.creturn block_getblk (inode, bh, block, create,
bh519fs/ext2/inode.cbh = inode_getblk (inode, EXT2_DIND_BLOCK, create);
bh520fs/ext2/inode.cbh = block_getblk (inode, bh, block / addr_per_block, create,
bh522fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1),
bh526fs/ext2/inode.cbh = inode_getblk (inode, EXT2_IND_BLOCK, create);
bh527fs/ext2/inode.cbh = block_getblk (inode, bh, block / (addr_per_block * addr_per_block),
bh529fs/ext2/inode.cbh = block_getblk (inode, bh, (block / addr_per_block) & (addr_per_block - 1),
bh531fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1), create,
bh537fs/ext2/inode.cstruct buffer_head * bh;
bh539fs/ext2/inode.cbh = ext2_getblk (inode, block, create);
bh540fs/ext2/inode.cif (!bh || bh->b_uptodate)
bh541fs/ext2/inode.creturn bh;
bh542fs/ext2/inode.cll_rw_block (READ, 1, &bh);
bh543fs/ext2/inode.cwait_on_buffer (bh);
bh544fs/ext2/inode.cif (bh->b_uptodate)
bh545fs/ext2/inode.creturn bh;
bh546fs/ext2/inode.cbrelse (bh);
bh552fs/ext2/inode.cstruct buffer_head * bh;
bh571fs/ext2/inode.cbh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc];
bh572fs/ext2/inode.cif (!bh)
bh574fs/ext2/inode.cgdp = (struct ext2_group_desc *) bh->b_data;
bh578fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
bh580fs/ext2/inode.craw_inode = ((struct ext2_inode *) bh->b_data) +
bh605fs/ext2/inode.cbrelse (bh);
bh629fs/ext2/inode.cstruct buffer_head * bh;
bh648fs/ext2/inode.cbh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc];
bh649fs/ext2/inode.cif (!bh)
bh651fs/ext2/inode.cgdp = (struct ext2_group_desc *) bh->b_data;
bh655fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
bh657fs/ext2/inode.craw_inode = ((struct ext2_inode *)bh->b_data) +
bh680fs/ext2/inode.cbh->b_dirt = 1;
bh682fs/ext2/inode.cbrelse (bh);
bh75fs/ext2/namei.cstruct buffer_head * bh;
bh90fs/ext2/namei.cbh = ext2_bread (dir, 0, 0);
bh91fs/ext2/namei.cif (!bh)
bh96fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh98fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
bh99fs/ext2/namei.cbrelse (bh);
bh100fs/ext2/namei.cbh = NULL;
bh101fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 0);
bh102fs/ext2/namei.cif (!bh)
bh104fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh115fs/ext2/namei.cbrelse (bh);
bh120fs/ext2/namei.creturn bh;
bh127fs/ext2/namei.cbrelse (bh);
bh136fs/ext2/namei.cstruct buffer_head * bh;
bh148fs/ext2/namei.cif (!(bh = ext2_find_entry (dir, name, len, &de, NULL))) {
bh157fs/ext2/namei.cbrelse (bh);
bh186fs/ext2/namei.cstruct buffer_head * bh;
bh203fs/ext2/namei.cbh = ext2_bread (dir, 0, 0);
bh204fs/ext2/namei.cif (!bh)
bh208fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh210fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
bh211fs/ext2/namei.cbrelse (bh);
bh212fs/ext2/namei.cbh = NULL;
bh213fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 0);
bh214fs/ext2/namei.cif (!bh) {
bh218fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1);
bh219fs/ext2/namei.cif (!bh)
bh221fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh230fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh240fs/ext2/namei.cbrelse (bh);
bh259fs/ext2/namei.cbh->b_dirt = 1;
bh261fs/ext2/namei.creturn bh;
bh266fs/ext2/namei.cbrelse (bh);
bh274fs/ext2/namei.cstruct buffer_head * bh;
bh288fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh289fs/ext2/namei.cif (!bh) {
bh301fs/ext2/namei.cbh->b_dirt = 1;
bh302fs/ext2/namei.cbrelse (bh);
bh312fs/ext2/namei.cstruct buffer_head * bh;
bh317fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh318fs/ext2/namei.cif (bh) {
bh319fs/ext2/namei.cbrelse (bh);
bh356fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh357fs/ext2/namei.cif (!bh) {
bh369fs/ext2/namei.cbh->b_dirt = 1;
bh370fs/ext2/namei.cbrelse (bh);
bh379fs/ext2/namei.cstruct buffer_head * bh, * dir_block;
bh382fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh383fs/ext2/namei.cif (bh) {
bh384fs/ext2/namei.cbrelse (bh);
bh422fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh423fs/ext2/namei.cif (!bh) {
bh434fs/ext2/namei.cbh->b_dirt = 1;
bh439fs/ext2/namei.cbrelse (bh);
bh449fs/ext2/namei.cstruct buffer_head * bh;
bh455fs/ext2/namei.c!(bh = ext2_bread (inode, 0, 0))) {
bh460fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh471fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
bh472fs/ext2/namei.cbrelse (bh);
bh473fs/ext2/namei.cbh = ext2_bread (inode, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1);
bh474fs/ext2/namei.cif (!bh) {
bh478fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh487fs/ext2/namei.cbrelse (bh);
bh491fs/ext2/namei.cbrelse (bh);
bh497fs/ext2/namei.cbrelse (bh);
bh505fs/ext2/namei.cstruct buffer_head * bh;
bh509fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, &pde);
bh511fs/ext2/namei.cif (!bh)
bh544fs/ext2/namei.cbh->b_dirt = 1;
bh554fs/ext2/namei.cbrelse (bh);
bh562fs/ext2/namei.cstruct buffer_head * bh;
bh567fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, &pde);
bh568fs/ext2/namei.cif (!bh)
bh591fs/ext2/namei.cbh->b_dirt = 1;
bh599fs/ext2/namei.cbrelse (bh);
bh610fs/ext2/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh654fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh655fs/ext2/namei.cif (bh) {
bh659fs/ext2/namei.cbrelse (bh);
bh663fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh664fs/ext2/namei.cif (!bh) {
bh676fs/ext2/namei.cbh->b_dirt = 1;
bh677fs/ext2/namei.cbrelse (bh);
bh687fs/ext2/namei.cstruct buffer_head * bh;
bh699fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh700fs/ext2/namei.cif (bh) {
bh701fs/ext2/namei.cbrelse (bh);
bh706fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh707fs/ext2/namei.cif (!bh) {
bh717fs/ext2/namei.cbh->b_dirt = 1;
bh718fs/ext2/namei.cbrelse (bh);
bh52fs/ext2/symlink.cstruct buffer_head * bh = NULL;
bh75fs/ext2/symlink.cif (!(bh = ext2_bread (inode, 0, 0))) {
bh80fs/ext2/symlink.clink = bh->b_data;
bh87fs/ext2/symlink.cif (bh)
bh88fs/ext2/symlink.cbrelse (bh);
bh94fs/ext2/symlink.cstruct buffer_head * bh = NULL;
bh106fs/ext2/symlink.cbh = ext2_bread (inode, 0, 0);
bh107fs/ext2/symlink.cif (!bh) {
bh111fs/ext2/symlink.clink = bh->b_data;
bh121fs/ext2/symlink.cif (bh)
bh122fs/ext2/symlink.cbrelse (bh);
bh37fs/ext2/truncate.cstruct buffer_head * bh;
bh50fs/ext2/truncate.cbh = getblk (inode->i_dev, tmp, inode->i_sb->s_blocksize);
bh52fs/ext2/truncate.cbrelse (bh);
bh55fs/ext2/truncate.cif ((bh && bh->b_count != 1) || tmp != *p) {
bh57fs/ext2/truncate.cbrelse (bh);
bh63fs/ext2/truncate.cbrelse (bh);
bh72fs/ext2/truncate.cstruct buffer_head * bh;
bh103fs/ext2/truncate.cbh = getblk (inode->i_dev, tmp, inode->i_sb->s_blocksize);
bh105fs/ext2/truncate.cbrelse (bh);
bh108fs/ext2/truncate.cif ((bh && bh->b_count != 1) || tmp != *ind) {
bh110fs/ext2/truncate.cbrelse (bh);
bh115fs/ext2/truncate.cbrelse (bh);
bh69fs/isofs/dir.cstruct buffer_head * bh;
bh81fs/isofs/dir.cif (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE)))
bh88fs/isofs/dir.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh95fs/isofs/dir.cbrelse(bh);
bh99fs/isofs/dir.cif (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE)))
bh113fs/isofs/dir.cmemcpy(cpnt, bh->b_data, BLOCK_SIZE);
bh115fs/isofs/dir.cbrelse(bh);
bh118fs/isofs/dir.cif (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE)))
bh120fs/isofs/dir.cmemcpy(cpnt+BLOCK_SIZE, bh->b_data, BLOCK_SIZE);
bh214fs/isofs/dir.cbrelse(bh);
bh222fs/isofs/dir.cbrelse(bh);
bh92fs/isofs/file.cstruct buffer_head * bh;
bh96fs/isofs/file.cif (block && (bh = bread(inode->i_dev,block, ISOFS_BUFFER_SIZE))) {
bh97fs/isofs/file.cpnt = (char*) bh->b_data;
bh108fs/isofs/file.cbrelse(bh);
bh96fs/isofs/inode.cstruct buffer_head *bh;
bh120fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-ISOFS_BUFFER_BITS), ISOFS_BUFFER_SIZE))) {
bh128fs/isofs/inode.cvdp = (struct iso_volume_descriptor *)bh->b_data;
bh129fs/isofs/inode.chdp = (struct hs_volume_descriptor *)bh->b_data;
bh155fs/isofs/inode.cbrelse(bh);
bh203fs/isofs/inode.cbrelse(bh);
bh235fs/isofs/inode.cbrelse(bh);
bh265fs/isofs/inode.cstruct buffer_head * bh;
bh273fs/isofs/inode.cif (!(bh=bread(inode->i_dev,block, ISOFS_BUFFER_SIZE)))
bh276fs/isofs/inode.cpnt = ((char *) bh->b_data) + (inode->i_ino & (ISOFS_BUFFER_SIZE - 1));
bh283fs/isofs/inode.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh284fs/isofs/inode.cbrelse(bh);
bh285fs/isofs/inode.cif (!(bh = bread(inode->i_dev,++block, ISOFS_BUFFER_SIZE)))
bh287fs/isofs/inode.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh400fs/isofs/inode.cbrelse(bh);
bh453fs/isofs/inode.cstruct buffer_head * bh;
bh458fs/isofs/inode.cif (!(bh = bread(parent->i_dev, block, ISOFS_BUFFER_SIZE)))  return 0;
bh461fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh465fs/isofs/inode.cbrelse(bh);
bh474fs/isofs/inode.cbrelse(bh);
bh481fs/isofs/inode.cbrelse(bh);
bh496fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh500fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh508fs/isofs/inode.cbrelse(bh);
bh512fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh526fs/isofs/inode.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh528fs/isofs/inode.cbrelse(bh);
bh532fs/isofs/inode.cif (!(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh534fs/isofs/inode.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh555fs/isofs/inode.cbrelse(bh);
bh585fs/isofs/inode.cvoid leak_check_brelse(struct buffer_head * bh){
bh587fs/isofs/inode.creturn brelse(bh);
bh68fs/isofs/namei.cstruct buffer_head * bh;
bh86fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,ISOFS_BUFFER_SIZE))) return NULL;
bh89fs/isofs/namei.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh97fs/isofs/namei.cbrelse(bh);
bh101fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,ISOFS_BUFFER_SIZE)))
bh115fs/isofs/namei.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh117fs/isofs/namei.cbrelse(bh);
bh120fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,ISOFS_BUFFER_SIZE)))
bh122fs/isofs/namei.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh184fs/isofs/namei.creturn bh;
bh189fs/isofs/namei.cbrelse(bh);
bh197fs/isofs/namei.cstruct buffer_head * bh;
bh230fs/isofs/namei.cif (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) {
bh234fs/isofs/namei.cbrelse(bh);
bh56fs/isofs/rock.cstruct buffer_head * bh; \
bh62fs/isofs/rock.cbh = bread(DEV, block, 1024); \
bh63fs/isofs/rock.cif (bh) { \
bh64fs/isofs/rock.cmemcpy(buffer, bh->b_data, cont_size); \
bh65fs/isofs/rock.cbrelse(bh); \
bh364fs/isofs/rock.cstruct buffer_head * bh;
bh381fs/isofs/rock.cif (!(bh=bread(inode->i_dev,block, ISOFS_BUFFER_SIZE)))
bh384fs/isofs/rock.cpnt = ((char *) bh->b_data) + (inode->i_ino & (ISOFS_BUFFER_SIZE - 1));
bh390fs/isofs/rock.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh391fs/isofs/rock.cbrelse(bh);
bh392fs/isofs/rock.cif (!(bh = bread(inode->i_dev,++block, ISOFS_BUFFER_SIZE)))
bh394fs/isofs/rock.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh459fs/isofs/rock.cbrelse(bh);
bh44fs/minix/bitmap.cstruct buffer_head *bh;
bh47fs/minix/bitmap.cif (!(bh=map[i])) 
bh56fs/minix/bitmap.ctmp = bh->b_data[end] & ((1<<numbits)-1);
bh61fs/minix/bitmap.csum += nibblemap[bh->b_data[j] & 0xf] 
bh62fs/minix/bitmap.c+ nibblemap[(bh->b_data[j]>>4)&0xf];
bh69fs/minix/bitmap.cstruct buffer_head * bh;
bh81fs/minix/bitmap.cbh = get_hash_table(sb->s_dev,block,BLOCK_SIZE);
bh82fs/minix/bitmap.cif (bh)
bh83fs/minix/bitmap.cbh->b_dirt=0;
bh84fs/minix/bitmap.cbrelse(bh);
bh88fs/minix/bitmap.cbh = sb->u.minix_sb.s_zmap[zone];
bh89fs/minix/bitmap.cif (!bh) {
bh93fs/minix/bitmap.cif (clear_bit(bit,bh->b_data))
bh95fs/minix/bitmap.cbh->b_dirt = 1;
bh101fs/minix/bitmap.cstruct buffer_head * bh;
bh111fs/minix/bitmap.cif ((bh=sb->u.minix_sb.s_zmap[i]) != NULL)
bh112fs/minix/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh114fs/minix/bitmap.cif (i>=8 || !bh || j>=8192)
bh116fs/minix/bitmap.cif (set_bit(j,bh->b_data)) {
bh120fs/minix/bitmap.cbh->b_dirt = 1;
bh125fs/minix/bitmap.cif (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) {
bh129fs/minix/bitmap.cclear_block(bh->b_data);
bh130fs/minix/bitmap.cbh->b_uptodate = 1;
bh131fs/minix/bitmap.cbh->b_dirt = 1;
bh132fs/minix/bitmap.cbrelse(bh);
bh144fs/minix/bitmap.cstruct buffer_head * bh;
bh168fs/minix/bitmap.cif (!(bh=inode->i_sb->u.minix_sb.s_imap[inode->i_ino>>13])) {
bh172fs/minix/bitmap.cif (clear_bit(inode->i_ino&8191,bh->b_data))
bh174fs/minix/bitmap.cbh->b_dirt = 1;
bh182fs/minix/bitmap.cstruct buffer_head * bh;
bh192fs/minix/bitmap.cif ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL)
bh193fs/minix/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh195fs/minix/bitmap.cif (!bh || j >= 8192) {
bh199fs/minix/bitmap.cif (set_bit(j,bh->b_data)) {  /* shouldn't happen */
bh204fs/minix/bitmap.cbh->b_dirt = 1;
bh62fs/minix/dir.cstruct buffer_head * bh;
bh73fs/minix/dir.cbh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0);
bh74fs/minix/dir.cif (!bh) {
bh79fs/minix/dir.cde = (struct minix_dir_entry *) (offset + bh->b_data);
bh92fs/minix/dir.cbrelse(bh);
bh97fs/minix/dir.cbrelse(bh);
bh191fs/minix/file.cstruct buffer_head * bh;
bh212fs/minix/file.cbh = minix_getblk(inode,pos/BLOCK_SIZE,1);
bh213fs/minix/file.cif (!bh) {
bh221fs/minix/file.cif (c != BLOCK_SIZE && !bh->b_uptodate) {
bh222fs/minix/file.cll_rw_block(READ, 1, &bh);
bh223fs/minix/file.cwait_on_buffer(bh);
bh224fs/minix/file.cif (!bh->b_uptodate) {
bh225fs/minix/file.cbrelse(bh);
bh231fs/minix/file.cp = (pos % BLOCK_SIZE) + bh->b_data;
bh240fs/minix/file.cbh->b_uptodate = 1;
bh241fs/minix/file.cbh->b_dirt = 1;
bh242fs/minix/file.cbrelse(bh);
bh53fs/minix/inode.cstruct buffer_head *bh;
bh60fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
bh66fs/minix/inode.cms = (struct minix_super_block *) bh->b_data;
bh76fs/minix/inode.cbrelse(bh);
bh146fs/minix/inode.cstatic int block_bmap(struct buffer_head * bh, int nr)
bh150fs/minix/inode.cif (!bh)
bh152fs/minix/inode.ctmp = ((unsigned short *) bh->b_data)[nr];
bh153fs/minix/inode.cbrelse(bh);
bh222fs/minix/inode.cstruct buffer_head * bh, int nr, int create)
bh228fs/minix/inode.cif (!bh)
bh230fs/minix/inode.cif (!bh->b_uptodate) {
bh231fs/minix/inode.cll_rw_block(READ, 1, &bh);
bh232fs/minix/inode.cwait_on_buffer(bh);
bh233fs/minix/inode.cif (!bh->b_uptodate) {
bh234fs/minix/inode.cbrelse(bh);
bh238fs/minix/inode.cp = nr + (unsigned short *) bh->b_data;
bh242fs/minix/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh244fs/minix/inode.cbrelse(bh);
bh251fs/minix/inode.cbrelse(bh);
bh256fs/minix/inode.cbrelse(bh);
bh259fs/minix/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh266fs/minix/inode.cbh->b_dirt = 1;
bh267fs/minix/inode.cbrelse(bh);
bh273fs/minix/inode.cstruct buffer_head * bh;
bh287fs/minix/inode.cbh = inode_getblk(inode,7,create);
bh288fs/minix/inode.creturn block_getblk(inode, bh, block, create);
bh291fs/minix/inode.cbh = inode_getblk(inode,8,create);
bh292fs/minix/inode.cbh = block_getblk(inode, bh, block>>9, create);
bh293fs/minix/inode.creturn block_getblk(inode, bh, block & 511, create);
bh298fs/minix/inode.cstruct buffer_head * bh;
bh300fs/minix/inode.cbh = minix_getblk(inode,block,create);
bh301fs/minix/inode.cif (!bh || bh->b_uptodate)
bh302fs/minix/inode.creturn bh;
bh303fs/minix/inode.cll_rw_block(READ, 1, &bh);
bh304fs/minix/inode.cwait_on_buffer(bh);
bh305fs/minix/inode.cif (bh->b_uptodate)
bh306fs/minix/inode.creturn bh;
bh307fs/minix/inode.cbrelse(bh);
bh313fs/minix/inode.cstruct buffer_head * bh;
bh328fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) {
bh333fs/minix/inode.craw_inode = ((struct minix_inode *) bh->b_data) +
bh346fs/minix/inode.cbrelse(bh);
bh369fs/minix/inode.cstruct buffer_head * bh;
bh382fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) {
bh387fs/minix/inode.craw_inode = ((struct minix_inode *)bh->b_data) +
bh400fs/minix/inode.cbh->b_dirt=1;
bh401fs/minix/inode.cbrelse(bh);
bh31fs/minix/namei.cstruct buffer_head * bh, unsigned long * offset,
bh37fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + *offset);
bh67fs/minix/namei.cstruct buffer_head * bh;
bh81fs/minix/namei.cbh = NULL;
bh84fs/minix/namei.cif (!bh) {
bh85fs/minix/namei.cbh = minix_bread(dir,block,0);
bh86fs/minix/namei.cif (!bh) {
bh91fs/minix/namei.c*res_dir = (struct minix_dir_entry *) (bh->b_data + offset);
bh92fs/minix/namei.cif (minix_match(namelen,name,bh,&offset,info))
bh93fs/minix/namei.creturn bh;
bh94fs/minix/namei.cif (offset < bh->b_size)
bh96fs/minix/namei.cbrelse(bh);
bh97fs/minix/namei.cbh = NULL;
bh101fs/minix/namei.cbrelse(bh);
bh111fs/minix/namei.cstruct buffer_head * bh;
bh120fs/minix/namei.cif (!(bh = minix_find_entry(dir,name,len,&de))) {
bh125fs/minix/namei.cbrelse(bh);
bh149fs/minix/namei.cstruct buffer_head * bh;
bh166fs/minix/namei.cbh = NULL;
bh169fs/minix/namei.cif (!bh) {
bh170fs/minix/namei.cbh = minix_bread(dir,block,1);
bh171fs/minix/namei.cif (!bh)
bh174fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
bh176fs/minix/namei.cif (block*bh->b_size + offset > dir->i_size) {
bh178fs/minix/namei.cdir->i_size = block*bh->b_size + offset;
bh186fs/minix/namei.cbh->b_dirt = 1;
bh190fs/minix/namei.cif (offset < bh->b_size)
bh192fs/minix/namei.cbrelse(bh);
bh193fs/minix/namei.cbh = NULL;
bh197fs/minix/namei.creturn bh;
bh204fs/minix/namei.cstruct buffer_head * bh;
bh218fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh219fs/minix/namei.cif (!bh) {
bh227fs/minix/namei.cbh->b_dirt = 1;
bh228fs/minix/namei.cbrelse(bh);
bh237fs/minix/namei.cstruct buffer_head * bh;
bh242fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh243fs/minix/namei.cif (bh) {
bh244fs/minix/namei.cbrelse(bh);
bh281fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh282fs/minix/namei.cif (!bh) {
bh290fs/minix/namei.cbh->b_dirt = 1;
bh291fs/minix/namei.cbrelse(bh);
bh300fs/minix/namei.cstruct buffer_head * bh, *dir_block;
bh309fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh310fs/minix/namei.cif (bh) {
bh311fs/minix/namei.cbrelse(bh);
bh348fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh349fs/minix/namei.cif (!bh) {
bh356fs/minix/namei.cbh->b_dirt = 1;
bh361fs/minix/namei.cbrelse(bh);
bh371fs/minix/namei.cstruct buffer_head * bh;
bh384fs/minix/namei.cbh = minix_bread(inode,0,0);
bh385fs/minix/namei.cif (!bh)
bh387fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh390fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize);
bh394fs/minix/namei.cif (!bh) {
bh395fs/minix/namei.cbh = minix_bread(inode,block,0);
bh396fs/minix/namei.cif (!bh) {
bh401fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
bh404fs/minix/namei.cbrelse(bh);
bh407fs/minix/namei.cif (offset < bh->b_size)
bh409fs/minix/namei.cbrelse(bh);
bh410fs/minix/namei.cbh = NULL;
bh414fs/minix/namei.cbrelse(bh);
bh417fs/minix/namei.cbrelse(bh);
bh426fs/minix/namei.cstruct buffer_head * bh;
bh430fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh432fs/minix/namei.cif (!bh)
bh459fs/minix/namei.cbh->b_dirt = 1;
bh469fs/minix/namei.cbrelse(bh);
bh477fs/minix/namei.cstruct buffer_head * bh;
bh483fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh484fs/minix/namei.cif (!bh)
bh490fs/minix/namei.cbrelse(bh);
bh508fs/minix/namei.cbh->b_dirt = 1;
bh516fs/minix/namei.cbrelse(bh);
bh526fs/minix/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh552fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh553fs/minix/namei.cif (bh) {
bh557fs/minix/namei.cbrelse(bh);
bh561fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh562fs/minix/namei.cif (!bh) {
bh570fs/minix/namei.cbh->b_dirt = 1;
bh571fs/minix/namei.cbrelse(bh);
bh580fs/minix/namei.cstruct buffer_head * bh;
bh592fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh593fs/minix/namei.cif (bh) {
bh594fs/minix/namei.cbrelse(bh);
bh599fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh600fs/minix/namei.cif (!bh) {
bh606fs/minix/namei.cbh->b_dirt = 1;
bh607fs/minix/namei.cbrelse(bh);
bh45fs/minix/symlink.cstruct buffer_head * bh;
bh66fs/minix/symlink.cif (!(bh = minix_bread(inode, 0, 0))) {
bh73fs/minix/symlink.cerror = open_namei(bh->b_data,flag,mode,res_inode,dir);
bh75fs/minix/symlink.cbrelse(bh);
bh81fs/minix/symlink.cstruct buffer_head * bh;
bh91fs/minix/symlink.cbh = minix_bread(inode, 0, 0);
bh93fs/minix/symlink.cif (!bh)
bh96fs/minix/symlink.cwhile (i<buflen && (c = bh->b_data[i])) {
bh100fs/minix/symlink.cbrelse(bh);
bh30fs/minix/truncate.cstruct buffer_head * bh;
bh40fs/minix/truncate.cbh = get_hash_table(inode->i_dev,tmp,BLOCK_SIZE);
bh42fs/minix/truncate.cbrelse(bh);
bh45fs/minix/truncate.cif ((bh && bh->b_count != 1) || tmp != *p) {
bh47fs/minix/truncate.cbrelse(bh);
bh52fs/minix/truncate.cbrelse(bh);
bh60fs/minix/truncate.cstruct buffer_head * bh;
bh89fs/minix/truncate.cbh = get_hash_table(inode->i_dev,tmp,BLOCK_SIZE);
bh91fs/minix/truncate.cbrelse(bh);
bh94fs/minix/truncate.cif ((bh && bh->b_count != 1) || tmp != *ind) {
bh96fs/minix/truncate.cbrelse(bh);
bh101fs/minix/truncate.cbrelse(bh);
bh61fs/msdos/dir.cstruct buffer_head *bh;
bh79fs/msdos/dir.cbh = NULL;
bh80fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
bh107fs/msdos/dir.cbrelse(bh);
bh112fs/msdos/dir.cif (bh) brelse(bh);
bh20fs/msdos/fat.cstruct buffer_head *bh,*bh2,*c_bh,*c_bh2;
bh30fs/msdos/fat.cif (!(bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >>
bh36fs/msdos/fat.cbh2 = bh;
bh42fs/msdos/fat.cbrelse(bh);
bh76fs/msdos/fat.cbh->b_dirt = 1;
bh83fs/msdos/fat.cif (data != data2 || bh != bh2) {
bh97fs/msdos/fat.cbrelse(bh);
bh86fs/msdos/file.cstruct buffer_head *bh;
bh104fs/msdos/file.cif (!(bh = msdos_sread(inode->i_dev,sector,&data))) break;
bh117fs/msdos/file.cbrelse(bh);
bh122fs/msdos/file.cbrelse(bh);
bh135fs/msdos/file.cstruct buffer_head *bh;
bh162fs/msdos/file.cif (!(bh = msdos_sread(inode->i_dev,sector,&data))) {
bh197fs/msdos/file.cbh->b_dirt = 1;
bh198fs/msdos/file.cbrelse(bh);
bh122fs/msdos/inode.cstruct buffer_head *bh;
bh136fs/msdos/inode.cbh = bread(s->s_dev, 0, BLOCK_SIZE);
bh138fs/msdos/inode.cif (bh == NULL) {
bh143fs/msdos/inode.cb = (struct msdos_boot_sector *) bh->b_data;
bh158fs/msdos/inode.cbrelse(bh);
bh236fs/msdos/inode.cstruct buffer_head *bh;
bh263fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS, BLOCK_SIZE)))
bh265fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh310fs/msdos/inode.cbrelse(bh);
bh316fs/msdos/inode.cstruct buffer_head *bh;
bh321fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS, BLOCK_SIZE)))
bh323fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh337fs/msdos/inode.cbh->b_dirt = 1;
bh338fs/msdos/inode.cbrelse(bh);
bh86fs/msdos/misc.cstruct buffer_head *bh;
bh148fs/msdos/misc.cif (!(bh = getblk(inode->i_dev,sector >> 1, BLOCK_SIZE)))
bh151fs/msdos/misc.cmemset(bh->b_data,0,BLOCK_SIZE);
bh152fs/msdos/misc.cbh->b_uptodate = 1;
bh157fs/msdos/misc.cif (!(bh = msdos_sread(inode->i_dev,sector,&data)))
bh161fs/msdos/misc.cif (bh) {
bh162fs/msdos/misc.cbh->b_dirt = 1;
bh163fs/msdos/misc.cbrelse(bh);
bh238fs/msdos/misc.cint msdos_get_entry(struct inode *dir,int *pos,struct buffer_head **bh,
bh251fs/msdos/misc.cif (*bh)
bh252fs/msdos/misc.cbrelse(*bh);
bh253fs/msdos/misc.cif (!(*bh = msdos_sread(dir->i_dev,sector,&data))) {
bh315fs/msdos/misc.cstruct buffer_head *bh;
bh319fs/msdos/misc.cif (!(bh = msdos_sread(sb->s_dev,sector,(void **) &data))) return -EIO;
bh337fs/msdos/misc.cbrelse(bh);
bh341fs/msdos/misc.cbrelse(bh);
bh100fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
bh107fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino);
bh116fs/msdos/namei.cstruct buffer_head *bh;
bh137fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
bh141fs/msdos/namei.cif (bh) brelse(bh);
bh168fs/msdos/namei.cstruct buffer_head *bh;
bh172fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) {
bh175fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res;
bh182fs/msdos/namei.cbh->b_dirt = 1;
bh185fs/msdos/namei.cbrelse(bh);
bh197fs/msdos/namei.cstruct buffer_head *bh;
bh209fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
bh211fs/msdos/namei.cbrelse(bh);
bh244fs/msdos/namei.cstruct buffer_head *bh;
bh256fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
bh258fs/msdos/namei.cbrelse(bh);
bh301fs/msdos/namei.cstruct buffer_head *bh,*dbh;
bh305fs/msdos/namei.cbh = NULL;
bh310fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
bh334fs/msdos/namei.cbh->b_dirt = 1;
bh337fs/msdos/namei.cbrelse(bh);
bh347fs/msdos/namei.cstruct buffer_head *bh;
bh351fs/msdos/namei.cbh = NULL;
bh353fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
bh367fs/msdos/namei.cbh->b_dirt = 1;
bh369fs/msdos/namei.cbrelse(bh);
bh32fs/xiafs/bitmap.cstatic int find_first_zero(struct buffer_head *bh, int start_bit, int end_bit) 
bh44fs/xiafs/bitmap.cbmap=(u_long *)bh->b_data;
bh68fs/xiafs/bitmap.cbh->b_dirt=1;
bh72fs/xiafs/bitmap.cstatic void clear_buf(struct buffer_head * bh) 
bh77fs/xiafs/bitmap.clp=(long *)bh->b_data;
bh78fs/xiafs/bitmap.cfor (i= bh->b_size >> 2; i-- > 0; )
bh179fs/xiafs/bitmap.cstruct buffer_head * bh;
bh202fs/xiafs/bitmap.cbh = get__map_zone(sb, bmap_buf, bznr, cache, first_zone, 
bh204fs/xiafs/bitmap.cif (!bh)
bh206fs/xiafs/bitmap.ctmp=find_first_zero(bh, start_bit, end_bit);
bh223fs/xiafs/bitmap.cstruct buffer_head * bh;
bh235fs/xiafs/bitmap.cbh = get_hash_table(sb->s_dev, d_addr, XIAFS_ZSIZE(sb));
bh236fs/xiafs/bitmap.cif (bh)
bh237fs/xiafs/bitmap.cbh->b_dirt=0;
bh238fs/xiafs/bitmap.cbrelse(bh);
bh240fs/xiafs/bitmap.cbh = get_zmap_zone(sb, bit, NULL);
bh241fs/xiafs/bitmap.cif (!bh)
bh244fs/xiafs/bitmap.cif (clear_bit(offset, bh->b_data))
bh246fs/xiafs/bitmap.cbh->b_dirt = 1;
bh252fs/xiafs/bitmap.cstruct buffer_head * bh;
bh268fs/xiafs/bitmap.cif (!(bh = getblk(sb->s_dev, tmp, XIAFS_ZSIZE(sb)))) {
bh272fs/xiafs/bitmap.cif (bh->b_count != 1) {
bh276fs/xiafs/bitmap.cclear_buf(bh);
bh277fs/xiafs/bitmap.cbh->b_uptodate = 1;
bh278fs/xiafs/bitmap.cbh->b_dirt = 1;
bh279fs/xiafs/bitmap.cbrelse(bh);
bh285fs/xiafs/bitmap.cstruct buffer_head * bh;
bh295fs/xiafs/bitmap.cbh = get_imap_zone(inode->i_sb, inode->i_ino, NULL);
bh296fs/xiafs/bitmap.cif (!bh)
bh299fs/xiafs/bitmap.cif (clear_bit(tmp, bh->b_data))
bh302fs/xiafs/bitmap.cbh->b_dirt = 1;
bh339fs/xiafs/bitmap.cstatic u_long count_zone(struct buffer_head * bh)
bh345fs/xiafs/bitmap.cfor (i=bh->b_size; i-- > 0; ) {
bh346fs/xiafs/bitmap.ctmp=bh->b_data[i];
bh354fs/xiafs/bitmap.cstruct buffer_head * bh;
bh361fs/xiafs/bitmap.cbh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
bh362fs/xiafs/bitmap.cif (bh) {
bh363fs/xiafs/bitmap.csum += count_zone(bh);
bh373fs/xiafs/bitmap.cstruct buffer_head * bh;
bh380fs/xiafs/bitmap.cbh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
bh381fs/xiafs/bitmap.cif (bh) {
bh382fs/xiafs/bitmap.csum += count_zone(bh);
bh69fs/xiafs/dir.cstruct buffer_head * bh;
bh78fs/xiafs/dir.cbh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0);
bh79fs/xiafs/dir.cif (!bh) {
bh83fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
bh87fs/xiafs/dir.c(char *)de+de->d_rec_len > XIAFS_ZSIZE(inode->i_sb)+bh->b_data ||
bh92fs/xiafs/dir.cbrelse(bh);
bh103fs/xiafs/dir.cbrelse(bh);
bh108fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
bh110fs/xiafs/dir.cbrelse(bh);
bh189fs/xiafs/file.cstruct buffer_head * bh;
bh210fs/xiafs/file.cbh = xiafs_getblk(inode, pos >> XIAFS_ZSIZE_BITS(inode->i_sb), 1);
bh211fs/xiafs/file.cif (!bh) {
bh219fs/xiafs/file.cif (c != XIAFS_ZSIZE(inode->i_sb) && !bh->b_uptodate) {
bh220fs/xiafs/file.cll_rw_block(READ, 1, &bh);
bh221fs/xiafs/file.cwait_on_buffer(bh);
bh222fs/xiafs/file.cif (!bh->b_uptodate) {
bh223fs/xiafs/file.cbrelse(bh);
bh229fs/xiafs/file.ccp = (pos & (XIAFS_ZSIZE(inode->i_sb)-1)) + bh->b_data;
bh238fs/xiafs/file.cbh->b_uptodate = 1;
bh239fs/xiafs/file.cbh->b_dirt = 1;
bh240fs/xiafs/file.cbrelse(bh);
bh60fs/xiafs/inode.cstruct buffer_head *bh;
bh66fs/xiafs/inode.cif (!(bh = bread(dev, 0, BLOCK_SIZE))) {
bh72fs/xiafs/inode.csp = (struct xiafs_super_block *) bh->b_data;
bh77fs/xiafs/inode.cbrelse(bh);
bh90fs/xiafs/inode.cbrelse(bh);
bh156fs/xiafs/inode.cstatic int zone_bmap(struct buffer_head * bh, int nr)
bh160fs/xiafs/inode.cif (!bh)
bh162fs/xiafs/inode.ctmp = ((u_long *) bh->b_data)[nr];
bh163fs/xiafs/inode.cbrelse(bh);
bh243fs/xiafs/inode.cindt_getblk(struct inode * inode, struct buffer_head * bh, 
bh250fs/xiafs/inode.cif (!bh)
bh252fs/xiafs/inode.cif (!bh->b_uptodate) {
bh253fs/xiafs/inode.cll_rw_block(READ, 1, &bh);
bh254fs/xiafs/inode.cwait_on_buffer(bh);
bh255fs/xiafs/inode.cif (!bh->b_uptodate) {
bh256fs/xiafs/inode.cbrelse(bh);
bh260fs/xiafs/inode.clp = nr + (u_long *) bh->b_data;
bh263fs/xiafs/inode.cresult = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb));
bh265fs/xiafs/inode.cbrelse(bh);
bh272fs/xiafs/inode.cbrelse(bh);
bh277fs/xiafs/inode.cbrelse(bh);
bh280fs/xiafs/inode.cresult = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb));
bh287fs/xiafs/inode.cbh->b_dirt = 1;
bh288fs/xiafs/inode.cbrelse(bh);
bh294fs/xiafs/inode.cstruct buffer_head * bh;
bh312fs/xiafs/inode.cbh = dt_getblk(inode, &(inode->u.xiafs_i.i_ind_zone), create, prev_addr);
bh313fs/xiafs/inode.cbh = indt_getblk(inode, bh, zone, create, prev_addr);
bh314fs/xiafs/inode.creturn bh;
bh317fs/xiafs/inode.cbh = dt_getblk(inode, &(inode->u.xiafs_i.i_dind_zone), create, prev_addr);
bh318fs/xiafs/inode.cbh = indt_getblk(inode, bh, zone>>XIAFS_ADDRS_PER_Z_BITS(inode->i_sb), 
bh320fs/xiafs/inode.cbh = indt_getblk(inode, bh, zone&(XIAFS_ADDRS_PER_Z(inode->i_sb)-1), 
bh322fs/xiafs/inode.creturn bh;
bh327fs/xiafs/inode.cstruct buffer_head * bh;
bh329fs/xiafs/inode.cbh = xiafs_getblk(inode, zone, create);
bh330fs/xiafs/inode.cif (!bh || bh->b_uptodate)
bh331fs/xiafs/inode.creturn bh;
bh332fs/xiafs/inode.cll_rw_block(READ, 1, &bh);
bh333fs/xiafs/inode.cwait_on_buffer(bh);
bh334fs/xiafs/inode.cif (bh->b_uptodate)
bh335fs/xiafs/inode.creturn bh;
bh336fs/xiafs/inode.cbrelse(bh);
bh342fs/xiafs/inode.cstruct buffer_head * bh;
bh357fs/xiafs/inode.cif (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) {
bh361fs/xiafs/inode.craw_inode = ((struct xiafs_inode *) bh->b_data) + 
bh381fs/xiafs/inode.cbrelse(bh);
bh404fs/xiafs/inode.cstruct buffer_head * bh;
bh418fs/xiafs/inode.cif (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) {
bh423fs/xiafs/inode.craw_inode = ((struct xiafs_inode *)bh->b_data) +
bh446fs/xiafs/inode.cbh->b_dirt=1;
bh447fs/xiafs/inode.cbrelse(bh);
bh61fs/xiafs/namei.cstruct buffer_head * bh;
bh76fs/xiafs/namei.cbh = xiafs_bread(inode, i, 0);
bh77fs/xiafs/namei.cif (!bh)
bh79fs/xiafs/namei.cdep_pre=dep=(struct xiafs_direct *)bh->b_data;
bh83fs/xiafs/namei.cbrelse(bh);
bh90fs/xiafs/namei.cdep->d_rec_len+(char *)dep > bh->b_data+XIAFS_ZSIZE(inode->i_sb) ||
bh93fs/xiafs/namei.cbrelse(bh);
bh100fs/xiafs/namei.creturn bh;
bh104fs/xiafs/namei.cdep=(struct xiafs_direct *)(bh->b_data + pos);
bh106fs/xiafs/namei.cbrelse(bh);
bh120fs/xiafs/namei.cstruct buffer_head * bh;
bh129fs/xiafs/namei.cif (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) {
bh134fs/xiafs/namei.cbrelse(bh);
bh158fs/xiafs/namei.cstruct buffer_head * bh;
bh171fs/xiafs/namei.cbh =  xiafs_bread(dir, pos >> XIAFS_ZSIZE_BITS(dir->i_sb), pos ? 1:0);
bh172fs/xiafs/namei.cif (!bh)
bh174fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)bh->b_data;
bh179fs/xiafs/namei.cbrelse(bh);
bh183fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)(bh->b_data+12);
bh197fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(dir->i_sb) ||
bh201fs/xiafs/namei.cbrelse(bh);
bh220fs/xiafs/namei.cbh->b_dirt = 1;
bh224fs/xiafs/namei.creturn bh;
bh228fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
bh230fs/xiafs/namei.cbrelse(bh);
bh244fs/xiafs/namei.cstruct buffer_head * bh;
bh258fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh259fs/xiafs/namei.cif (!bh) {
bh267fs/xiafs/namei.cbh->b_dirt = 1;
bh268fs/xiafs/namei.cbrelse(bh);
bh277fs/xiafs/namei.cstruct buffer_head * bh;
bh282fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
bh283fs/xiafs/namei.cif (bh) {
bh284fs/xiafs/namei.cbrelse(bh);
bh321fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh322fs/xiafs/namei.cif (!bh) {
bh330fs/xiafs/namei.cbh->b_dirt = 1;
bh331fs/xiafs/namei.cbrelse(bh);
bh340fs/xiafs/namei.cstruct buffer_head * bh, *dir_block;
bh343fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
bh344fs/xiafs/namei.cif (bh) {
bh345fs/xiafs/namei.cbrelse(bh);
bh386fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh387fs/xiafs/namei.cif (!bh) {
bh394fs/xiafs/namei.cbh->b_dirt = 1;
bh399fs/xiafs/namei.cbrelse(bh);
bh409fs/xiafs/namei.cstruct buffer_head * bh;
bh419fs/xiafs/namei.cbh =  xiafs_bread(inode, i, 0);
bh421fs/xiafs/namei.cif (!bh) {
bh425fs/xiafs/namei.cde=(struct xiafs_direct *)bh->b_data;
bh429fs/xiafs/namei.cbrelse(bh);
bh432fs/xiafs/namei.cde=(struct xiafs_direct *)(12 + bh->b_data);
bh435fs/xiafs/namei.cbrelse(bh);
bh442fs/xiafs/namei.cif (!bh)
bh445fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
bh448fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) ||
bh452fs/xiafs/namei.cbrelse(bh);
bh456fs/xiafs/namei.cbrelse(bh);
bh461fs/xiafs/namei.cbrelse(bh);
bh490fs/xiafs/namei.cstruct buffer_head * bh;
bh494fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
bh496fs/xiafs/namei.cif (!bh)
bh523fs/xiafs/namei.cbh->b_dirt = 1;
bh533fs/xiafs/namei.cbrelse(bh);
bh541fs/xiafs/namei.cstruct buffer_head * bh;
bh547fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
bh548fs/xiafs/namei.cif (!bh)
bh554fs/xiafs/namei.cbrelse(bh);
bh571fs/xiafs/namei.cbh->b_dirt = 1;
bh579fs/xiafs/namei.cbrelse(bh);
bh590fs/xiafs/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh594fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len, &de, NULL);
bh595fs/xiafs/namei.cif (bh) {
bh596fs/xiafs/namei.cbrelse(bh);
bh621fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh622fs/xiafs/namei.cif (!bh) {
bh630fs/xiafs/namei.cbh->b_dirt = 1;
bh631fs/xiafs/namei.cbrelse(bh);
bh641fs/xiafs/namei.cstruct buffer_head * bh;
bh653fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, NULL);
bh654fs/xiafs/namei.cif (bh) {
bh655fs/xiafs/namei.cbrelse(bh);
bh660fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh661fs/xiafs/namei.cif (!bh) {
bh667fs/xiafs/namei.cbh->b_dirt = 1;
bh668fs/xiafs/namei.cbrelse(bh);
bh49fs/xiafs/symlink.cstruct buffer_head * bh;
bh59fs/xiafs/symlink.cbh = xiafs_bread(inode, 0, 0);
bh63fs/xiafs/symlink.cif (!bh)
bh65fs/xiafs/symlink.cfor (i=0; i < buflen && (c=bh->b_data[i]); i++)
bh69fs/xiafs/symlink.cbrelse(bh);
bh77fs/xiafs/symlink.cstruct buffer_head * bh;
bh100fs/xiafs/symlink.cif (!(bh = xiafs_bread(inode, 0, 0))) {
bh107fs/xiafs/symlink.cerror = open_namei(bh->b_data,flag,mode,res_inode,dir);
bh109fs/xiafs/symlink.cbrelse(bh);
bh42fs/xiafs/truncate.cstruct buffer_head * bh;
bh53fs/xiafs/truncate.cbh = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb));
bh55fs/xiafs/truncate.cbrelse(bh);
bh58fs/xiafs/truncate.cif ((bh && bh->b_count != 1) || tmp != *lp)
bh65fs/xiafs/truncate.cbrelse(bh);
bh75fs/xiafs/truncate.cstruct buffer_head * bh, * ind_bh;
bh98fs/xiafs/truncate.cbh = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb));
bh100fs/xiafs/truncate.cbrelse(bh);
bh103fs/xiafs/truncate.cif ((bh && bh->b_count != 1) || tmp != *indp)
bh110fs/xiafs/truncate.cbrelse(bh);
bh364include/linux/fs.hextern void ll_rw_block(int rw, int nr, struct buffer_head * bh[]);
bh205include/linux/iso_fs.hextern void leak_check_brelse(struct buffer_head * bh);
bh10include/linux/locks.hextern inline void wait_on_buffer(struct buffer_head * bh)
bh12include/linux/locks.hif (bh->b_lock)
bh13include/linux/locks.h__wait_on_buffer(bh);
bh16include/linux/locks.hextern inline void lock_buffer(struct buffer_head * bh)
bh18include/linux/locks.hif (bh->b_lock)
bh19include/linux/locks.h__wait_on_buffer(bh);
bh20include/linux/locks.hbh->b_lock = 1;
bh23include/linux/locks.hextern inline void unlock_buffer(struct buffer_head * bh)
bh25include/linux/locks.hbh->b_lock = 0;
bh26include/linux/locks.hwake_up(&bh->b_wait);
bh92include/linux/msdos_fs.hstruct buffer_head *bh;
bh94include/linux/msdos_fs.hif (!(bh = bread(dev,sector >> 1, 1024)))
bh96include/linux/msdos_fs.h*start = bh->b_data+((sector & 1) << SECTOR_BITS);
bh97include/linux/msdos_fs.hreturn bh;
bh112include/linux/msdos_fs.hextern int msdos_get_entry(struct inode *dir,int *pos,struct buffer_head **bh,
bh33kernel/blk_drv/blk.hstruct buffer_head * bh;
bh189kernel/blk_drv/blk.hextern inline void unlock_buffer(struct buffer_head * bh)
bh191kernel/blk_drv/blk.hif (!bh->b_lock)
bh193kernel/blk_drv/blk.hbh->b_lock=0;
bh194kernel/blk_drv/blk.hwake_up(&bh->b_wait);
bh202kernel/blk_drv/blk.hstruct buffer_head * bh;
bh216kernel/blk_drv/blk.hif ((bh = req->bh) != NULL) {
bh217kernel/blk_drv/blk.hreq->bh = bh->b_reqnext;
bh218kernel/blk_drv/blk.hbh->b_reqnext = NULL;
bh219kernel/blk_drv/blk.hbh->b_uptodate = uptodate;
bh220kernel/blk_drv/blk.hunlock_buffer(bh);
bh221kernel/blk_drv/blk.hif ((bh = req->bh) != NULL) {
bh222kernel/blk_drv/blk.hreq->current_nr_sectors = bh->b_size >> 9;
bh227kernel/blk_drv/blk.hreq->buffer = bh->b_data;
bh257kernel/blk_drv/blk.hif (CURRENT->bh) { \
bh258kernel/blk_drv/blk.hif (!CURRENT->bh->b_lock) \
bh311kernel/blk_drv/floppy.cint floppy_change(struct buffer_head * bh)
bh313kernel/blk_drv/floppy.cunsigned int mask = 1 << (bh->b_dev & 0x03);
bh315kernel/blk_drv/floppy.cif (MAJOR(bh->b_dev) != 2) {
bh330kernel/blk_drv/floppy.cif (!bh)
bh332kernel/blk_drv/floppy.cif (bh->b_dirt)
bh333kernel/blk_drv/floppy.cll_rw_block(WRITE, 1, &bh);
bh336kernel/blk_drv/floppy.cbh->b_uptodate = 0;
bh337kernel/blk_drv/floppy.cll_rw_block(READ, 1, &bh);
bh340kernel/blk_drv/floppy.cwhile (bh->b_lock)
bh341kernel/blk_drv/floppy.csleep_on(&bh->b_wait);
bh944kernel/blk_drv/floppy.cif (CURRENT->bh) {
bh945kernel/blk_drv/floppy.cif (!CURRENT->bh->b_lock)
bh38kernel/blk_drv/genhd.cstruct buffer_head *bh;
bh49kernel/blk_drv/genhd.cif (!(bh = bread(dev,0,1024)))
bh55kernel/blk_drv/genhd.cbh->b_dirt=0;
bh56kernel/blk_drv/genhd.cbh->b_uptodate=0;
bh57kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+510) == 0xAA55) {
bh58kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh85kernel/blk_drv/genhd.cbrelse(bh);
bh90kernel/blk_drv/genhd.cbrelse(bh);
bh97kernel/blk_drv/genhd.cstruct buffer_head *bh;
bh106kernel/blk_drv/genhd.cif (!(bh = bread(dev,0,1024))) {
bh112kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+510) == 0xAA55) {
bh113kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh130kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+0xfc) == 0x55AA) {
bh131kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh148kernel/blk_drv/genhd.cbrelse(bh);
bh335kernel/blk_drv/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
bh377kernel/blk_drv/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
bh98kernel/blk_drv/ll_rw_blk.cif (req->bh)
bh99kernel/blk_drv/ll_rw_blk.creq->bh->b_dirt = 0;
bh124kernel/blk_drv/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
bh134kernel/blk_drv/ll_rw_blk.cif (bh->b_lock)
bh145kernel/blk_drv/ll_rw_blk.ccount = bh->b_size >> 9;
bh146kernel/blk_drv/ll_rw_blk.csector = bh->b_blocknr * count;
bh148kernel/blk_drv/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
bh149kernel/blk_drv/ll_rw_blk.cbh->b_dirt = bh->b_uptodate = 0;
bh152kernel/blk_drv/ll_rw_blk.clock_buffer(bh);
bh153kernel/blk_drv/ll_rw_blk.cif ((rw == WRITE && !bh->b_dirt) || (rw == READ && bh->b_uptodate)) {
bh154kernel/blk_drv/ll_rw_blk.cunlock_buffer(bh);
bh166kernel/blk_drv/ll_rw_blk.cif (req->dev == bh->b_dev &&
bh171kernel/blk_drv/ll_rw_blk.creq->bhtail->b_reqnext = bh;
bh172kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
bh174kernel/blk_drv/ll_rw_blk.cbh->b_dirt = 0;
bh196kernel/blk_drv/ll_rw_blk.cunlock_buffer(bh);
bh205kernel/blk_drv/ll_rw_blk.creq->dev = bh->b_dev;
bh212kernel/blk_drv/ll_rw_blk.creq->buffer = bh->b_data;
bh214kernel/blk_drv/ll_rw_blk.creq->bh = bh;
bh215kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
bh255kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
bh266kernel/blk_drv/ll_rw_blk.cvoid ll_rw_block(int rw, int nr, struct buffer_head * bh[])
bh276kernel/blk_drv/ll_rw_blk.cwhile(!bh[0]){
bh277kernel/blk_drv/ll_rw_blk.cbh++;
bh283kernel/blk_drv/ll_rw_blk.cif(!bh[j]) continue;
bh284kernel/blk_drv/ll_rw_blk.cif (bh[j]->b_size != 1024) {
bh285kernel/blk_drv/ll_rw_blk.cprintk("ll_rw_block: only 1024-char blocks implemented (%d)\n",bh[0]->b_size);
bh287kernel/blk_drv/ll_rw_blk.cif (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0;
bh292kernel/blk_drv/ll_rw_blk.cif ((major=MAJOR(bh[0]->b_dev)) >= MAX_BLKDEV ||
bh294kernel/blk_drv/ll_rw_blk.cprintk("ll_rw_block: Trying to read nonexistent block-device %04x (%d)\n",bh[0]->b_dev,bh[0]->b_blocknr);
bh296kernel/blk_drv/ll_rw_blk.cif (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0;
bh299kernel/blk_drv/ll_rw_blk.cif ((rw == WRITE || rw == WRITEA) && is_read_only(bh[0]->b_dev)) {
bh300kernel/blk_drv/ll_rw_blk.cprintk("Can't write to read-only device 0x%X\n",bh[0]->b_dev);
bh302kernel/blk_drv/ll_rw_blk.cif (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0;
bh319kernel/blk_drv/ll_rw_blk.cif (bh[i]) make_request(major, rw, bh[i]);
bh369kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
bh90kernel/blk_drv/ramdisk.cstruct buffer_head *bh;
bh103kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV,block+1,block,block+2,-1);
bh104kernel/blk_drv/ramdisk.cif (!bh) {
bh108kernel/blk_drv/ramdisk.c*((struct minix_super_block *) &s) = *((struct minix_super_block *) bh->b_data);
bh109kernel/blk_drv/ramdisk.cbrelse(bh);
bh124kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV, block, block+1, block+2, -1);
bh126kernel/blk_drv/ramdisk.cbh = bread(ROOT_DEV, block, BLOCK_SIZE);
bh127kernel/blk_drv/ramdisk.cif (!bh) {
bh132kernel/blk_drv/ramdisk.c(void) memcpy(cp, bh->b_data, BLOCK_SIZE);
bh133kernel/blk_drv/ramdisk.cbrelse(bh);
bh419kernel/blk_drv/scsi/scsi.hstruct buffer_head * bh;
bh430kernel/blk_drv/scsi/scsi.hif ((bh = req->bh) != NULL) {
bh431kernel/blk_drv/scsi/scsi.hreq->bh = bh->b_reqnext;
bh432kernel/blk_drv/scsi/scsi.hreq->nr_sectors -= bh->b_size >> 9;
bh433kernel/blk_drv/scsi/scsi.hreq->sector += bh->b_size >> 9;
bh434kernel/blk_drv/scsi/scsi.hbh->b_reqnext = NULL;
bh435kernel/blk_drv/scsi/scsi.hbh->b_uptodate = uptodate;
bh436kernel/blk_drv/scsi/scsi.hunlock_buffer(bh);
bh437kernel/blk_drv/scsi/scsi.hsectors -= bh->b_size >> 9;
bh438kernel/blk_drv/scsi/scsi.hif ((bh = req->bh) != NULL) {
bh439kernel/blk_drv/scsi/scsi.hreq->current_nr_sectors = bh->b_size >> 9;
bh446kernel/blk_drv/scsi/scsi.h} while(sectors && bh);
bh447kernel/blk_drv/scsi/scsi.hif (req->bh){
bh448kernel/blk_drv/scsi/scsi.hreq->buffer = bh->b_data;
bh50kernel/blk_drv/scsi/scsi_debug.cif (bh){              \
bh51kernel/blk_drv/scsi/scsi_debug.cif (bh->b_size != 1024) panic ("Wrong bh size");  \
bh52kernel/blk_drv/scsi/scsi_debug.cif ((bh->b_blocknr << 1) + start != block)           \
bh53kernel/blk_drv/scsi/scsi_debug.c{  printk("Wrong bh block# %d %d ",bh->b_blocknr, block);  \
bh55kernel/blk_drv/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
bh75kernel/blk_drv/scsi/scsi_debug.cif (SCpnt->request.bh){              \
bh76kernel/blk_drv/scsi/scsi_debug.cif (SCpnt->request.bh->b_size != 1024) panic ("Wrong bh size");  \
bh77kernel/blk_drv/scsi/scsi_debug.cif ((SCpnt->request.bh->b_blocknr << 1) + start != block)           \
bh78kernel/blk_drv/scsi/scsi_debug.c{  printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block);  \
bh80kernel/blk_drv/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
bh142kernel/blk_drv/scsi/scsi_debug.cstruct buffer_head * bh = NULL;
bh229kernel/blk_drv/scsi/scsi_debug.cbh = SCpnt->request.bh;
bh280kernel/blk_drv/scsi/scsi_debug.cmemcpy(buff+128, bh, sizeof(struct buffer_head));
bh282kernel/blk_drv/scsi/scsi_debug.cbh = bh->b_reqnext;
bh285kernel/blk_drv/scsi/scsi_debug.cif(!bh) panic("Too few blocks for linked request.");
bh292kernel/blk_drv/scsi/scsi_debug.cif(bh) scsi_dump(SCpnt, 0);
bh195kernel/blk_drv/scsi/sd.cif (!SCpnt->request.bh)
bh444kernel/blk_drv/scsi/sd.cif (!SCpnt->request.bh || 
bh475kernel/blk_drv/scsi/sd.cstruct buffer_head * bh;
bh478kernel/blk_drv/scsi/sd.cbh = SCpnt->request.bh;
bh482kernel/blk_drv/scsi/sd.cwhile(bh && count < scsi_hosts[SCpnt->host].sg_tablesize) {
bh483kernel/blk_drv/scsi/sd.cif ((this_count + (bh->b_size >> 9)) > this_count_max) break;
bh484kernel/blk_drv/scsi/sd.cthis_count += (bh->b_size >> 9);
bh486kernel/blk_drv/scsi/sd.cbh = bh->b_reqnext;
bh502kernel/blk_drv/scsi/sd.cbh = SCpnt->request.bh;
bh503kernel/blk_drv/scsi/sd.cfor(count = 0, bh = SCpnt->request.bh; count < SCpnt->use_sg; 
bh504kernel/blk_drv/scsi/sd.ccount++, bh = bh->b_reqnext) {
bh505kernel/blk_drv/scsi/sd.csgpnt[count].address = bh->b_data;
bh507kernel/blk_drv/scsi/sd.csgpnt[count].length = bh->b_size;
bh514kernel/blk_drv/scsi/sd.cif(dma_free_sectors < (bh->b_size >> 9) + 5) {
bh115kernel/blk_drv/scsi/sr.cprintk("sr.c done: %x %x\n",result, SCpnt->request.bh->b_data);
bh133kernel/blk_drv/scsi/sr.cSCpnt->request.bh &&
bh134kernel/blk_drv/scsi/sr.cSCpnt->request.bh->b_reqnext &&
bh135kernel/blk_drv/scsi/sr.cSCpnt->request.bh->b_reqnext->b_size == 1024) {
bh136kernel/blk_drv/scsi/sr.cmemcpy((char *)SCpnt->request.bh->b_reqnext->b_data, 
bh164kernel/blk_drv/scsi/sr.cprintk("(%x %x %x) ",SCpnt->request.bh, SCpnt->request.nr_sectors, 
bh170kernel/blk_drv/scsi/sr.cif (!SCpnt->request.bh)
bh411kernel/blk_drv/scsi/sr.cstruct buffer_head * bh;
bh414kernel/blk_drv/scsi/sr.cbh = SCpnt->request.bh;
bh422kernel/blk_drv/scsi/sr.cwhile(bh && count < scsi_hosts[SCpnt->host].sg_tablesize) {
bh423kernel/blk_drv/scsi/sr.cif ((this_count + (bh->b_size >> 9)) > this_count_max) break;
bh424kernel/blk_drv/scsi/sr.cthis_count += (bh->b_size >> 9);
bh426kernel/blk_drv/scsi/sr.cbh = bh->b_reqnext;
bh452kernel/blk_drv/scsi/sr.cbh = SCpnt->request.bh;
bh461kernel/blk_drv/scsi/sr.cfor(bh = SCpnt->request.bh; count < SCpnt->use_sg; 
bh462kernel/blk_drv/scsi/sr.ccount++, bh = bh->b_reqnext) {
bh463kernel/blk_drv/scsi/sr.cif (bh) { /* Need a placeholder at the end of the record? */
bh464kernel/blk_drv/scsi/sr.csgpnt[count].address = bh->b_data;
bh465kernel/blk_drv/scsi/sr.csgpnt[count].length = bh->b_size;
bh519kernel/blk_drv/scsi/sr.cif (!SCpnt->request.bh)    
bh522kernel/blk_drv/scsi/sr.cthis_count = (SCpnt->request.bh->b_size >> 9);
bh54kernel/irq.cstruct bh_struct *bh;
bh56kernel/irq.cbh = bh_base+nr;
bh57kernel/irq.cif (bh->routine != NULL)
bh58kernel/irq.cbh->routine(bh->data);