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);
bh58fs/buffer.cvoid __wait_on_buffer(struct buffer_head * bh)
bh62fs/buffer.cadd_wait_queue(&bh->b_wait, &wait);
bh65fs/buffer.cif (bh->b_lock) {
bh69fs/buffer.cremove_wait_queue(&bh->b_wait, &wait);
bh76fs/buffer.cstruct buffer_head * bh;
bh78fs/buffer.cbh = free_list;
bh79fs/buffer.cfor (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) {
bh80fs/buffer.cif (bh->b_lock)
bh82fs/buffer.cif (!bh->b_dirt)
bh84fs/buffer.cll_rw_block(WRITE, 1, &bh);
bh105fs/buffer.cstruct buffer_head * bh;
bh107fs/buffer.cbh = free_list;
bh108fs/buffer.cfor (i = nr_buffers*2 ; --i > 0 ; bh = bh->b_next_free) {
bh109fs/buffer.cif (bh->b_dev != dev)
bh111fs/buffer.cwait_on_buffer(bh);
bh112fs/buffer.cif (bh->b_dev == dev)
bh113fs/buffer.cbh->b_uptodate = bh->b_dirt = 0;
bh134fs/buffer.cstruct buffer_head * bh;
bh138fs/buffer.cif (!(bh = getblk(dev,0,1024)))
bh140fs/buffer.ci = floppy_change(bh);
bh141fs/buffer.cbrelse(bh);
bh181fs/buffer.cstatic inline void remove_from_hash_queue(struct buffer_head * bh)
bh183fs/buffer.cif (bh->b_next)
bh184fs/buffer.cbh->b_next->b_prev = bh->b_prev;
bh185fs/buffer.cif (bh->b_prev)
bh186fs/buffer.cbh->b_prev->b_next = bh->b_next;
bh187fs/buffer.cif (hash(bh->b_dev,bh->b_blocknr) == bh)
bh188fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh->b_next;
bh189fs/buffer.cbh->b_next = bh->b_prev = NULL;
bh192fs/buffer.cstatic inline void remove_from_free_list(struct buffer_head * bh)
bh194fs/buffer.cif (!(bh->b_prev_free) || !(bh->b_next_free))
bh196fs/buffer.cbh->b_prev_free->b_next_free = bh->b_next_free;
bh197fs/buffer.cbh->b_next_free->b_prev_free = bh->b_prev_free;
bh198fs/buffer.cif (free_list == bh)
bh199fs/buffer.cfree_list = bh->b_next_free;
bh200fs/buffer.cbh->b_next_free = bh->b_prev_free = NULL;
bh203fs/buffer.cstatic inline void remove_from_queues(struct buffer_head * bh)
bh205fs/buffer.cremove_from_hash_queue(bh);
bh206fs/buffer.cremove_from_free_list(bh);
bh209fs/buffer.cstatic inline void put_first_free(struct buffer_head * bh)
bh211fs/buffer.cif (!bh || (bh == free_list))
bh213fs/buffer.cremove_from_free_list(bh);
bh215fs/buffer.cbh->b_next_free = free_list;
bh216fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh217fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh218fs/buffer.cfree_list->b_prev_free = bh;
bh219fs/buffer.cfree_list = bh;
bh222fs/buffer.cstatic inline void put_last_free(struct buffer_head * bh)
bh224fs/buffer.cif (!bh)
bh226fs/buffer.cif (bh == free_list) {
bh227fs/buffer.cfree_list = bh->b_next_free;
bh230fs/buffer.cremove_from_free_list(bh);
bh232fs/buffer.cbh->b_next_free = free_list;
bh233fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh234fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh235fs/buffer.cfree_list->b_prev_free = bh;
bh238fs/buffer.cstatic inline void insert_into_queues(struct buffer_head * bh)
bh241fs/buffer.cbh->b_next_free = free_list;
bh242fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh243fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh244fs/buffer.cfree_list->b_prev_free = bh;
bh246fs/buffer.cbh->b_prev = NULL;
bh247fs/buffer.cbh->b_next = NULL;
bh248fs/buffer.cif (!bh->b_dev)
bh250fs/buffer.cbh->b_next = hash(bh->b_dev,bh->b_blocknr);
bh251fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh;
bh252fs/buffer.cif (bh->b_next)
bh253fs/buffer.cbh->b_next->b_prev = bh;
bh280fs/buffer.cstruct buffer_head * bh;
bh283fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
bh285fs/buffer.cbh->b_count++;
bh286fs/buffer.cwait_on_buffer(bh);
bh287fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
bh288fs/buffer.creturn bh;
bh289fs/buffer.cbh->b_count--;
bh303fs/buffer.c#define BADNESS(bh) (((bh)->b_dirt<<1)+(bh)->b_lock)
bh306fs/buffer.cstruct buffer_head * bh, * tmp;
bh310fs/buffer.cbh = get_hash_table(dev, block, size);
bh311fs/buffer.cif (bh) {
bh312fs/buffer.cif (bh->b_uptodate && !bh->b_dirt)
bh313fs/buffer.cput_last_free(bh);
bh314fs/buffer.creturn bh;
bh321fs/buffer.cbh = NULL;
bh326fs/buffer.cif (!bh || BADNESS(tmp)<BADNESS(bh)) {
bh327fs/buffer.cbh = tmp;
bh337fs/buffer.cif (!bh && nr_free_pages > 5) {
bh343fs/buffer.cif (!bh) {
bh347fs/buffer.cwait_on_buffer(bh);
bh348fs/buffer.cif (bh->b_count || bh->b_size != size)
bh350fs/buffer.cif (bh->b_dirt) {
bh351fs/buffer.csync_buffers(bh->b_dev);
bh360fs/buffer.cbh->b_count=1;
bh361fs/buffer.cbh->b_dirt=0;
bh362fs/buffer.cbh->b_uptodate=0;
bh363fs/buffer.cremove_from_queues(bh);
bh364fs/buffer.cbh->b_dev=dev;
bh365fs/buffer.cbh->b_blocknr=block;
bh366fs/buffer.cinsert_into_queues(bh);
bh367fs/buffer.creturn bh;
bh390fs/buffer.cstruct buffer_head * bh;
bh392fs/buffer.cif (!(bh = getblk(dev, block, size))) {
bh396fs/buffer.cif (bh->b_uptodate)
bh397fs/buffer.creturn bh;
bh398fs/buffer.cll_rw_block(READ, 1, &bh);
bh399fs/buffer.cwait_on_buffer(bh);
bh400fs/buffer.cif (bh->b_uptodate)
bh401fs/buffer.creturn bh;
bh402fs/buffer.cbrelse(bh);
bh421fs/buffer.cstruct buffer_head * bh[4];
bh428fs/buffer.cbh[i] = getblk(dev, b[i], 1024);
bh429fs/buffer.cif (bh[i] && !bh[i]->b_uptodate)
bh430fs/buffer.cbhr[bhnum++] = bh[i];
bh432fs/buffer.cbh[i] = NULL;
bh438fs/buffer.cif (bh[i]) {
bh439fs/buffer.cwait_on_buffer(bh[i]);
bh440fs/buffer.cif (bh[i]->b_uptodate)
bh441fs/buffer.cCOPYBLK((unsigned long) bh[i]->b_data,address);
bh442fs/buffer.cbrelse(bh[i]);
bh454fs/buffer.cstruct buffer_head * bh, *tmp;
bh457fs/buffer.cif (!(bh = getblk(dev, first, 1024))) {
bh461fs/buffer.cif (!bh->b_uptodate)
bh462fs/buffer.cll_rw_block(READ, 1, &bh);
bh472fs/buffer.cwait_on_buffer(bh);
bh473fs/buffer.cif (bh->b_uptodate)
bh474fs/buffer.creturn bh;
bh475fs/buffer.cbrelse(bh);
bh482fs/buffer.cstatic void put_unused_buffer_head(struct buffer_head * bh)
bh486fs/buffer.cwait = ((volatile struct buffer_head *) bh)->b_wait;
bh487fs/buffer.cmemset((void *) bh,0,sizeof(*bh));
bh488fs/buffer.c((volatile struct buffer_head *) bh)->b_wait = wait;
bh489fs/buffer.cbh->b_next_free = unused_list;
bh490fs/buffer.cunused_list = bh;
bh496fs/buffer.cstruct buffer_head * bh;
bh503fs/buffer.cbh = (struct buffer_head *) page;
bh504fs/buffer.cwhile ((unsigned long) (bh+1) <= page+4096) {
bh505fs/buffer.cput_unused_buffer_head(bh);
bh506fs/buffer.cbh++;
bh513fs/buffer.cstruct buffer_head * bh;
bh518fs/buffer.cbh = unused_list;
bh519fs/buffer.cunused_list = bh->b_next_free;
bh520fs/buffer.cbh->b_next_free = NULL;
bh521fs/buffer.cbh->b_data = NULL;
bh522fs/buffer.cbh->b_size = 0;
bh523fs/buffer.creturn bh;
bh536fs/buffer.cstruct buffer_head *bh, *tmp;
bh548fs/buffer.cbh = get_unused_buffer_head();
bh549fs/buffer.cif (!bh)
bh551fs/buffer.cbh->b_this_page = tmp;
bh552fs/buffer.ctmp = bh;
bh553fs/buffer.cbh->b_data = (char * ) (page+i);
bh554fs/buffer.cbh->b_size = size;
bh556fs/buffer.ctmp = bh;
bh574fs/buffer.ctmp->b_this_page = bh;
bh581fs/buffer.cbh = tmp;
bh582fs/buffer.cwhile (bh) {
bh583fs/buffer.ctmp = bh;
bh584fs/buffer.cbh = bh->b_this_page;
bh594fs/buffer.cstatic int try_to_free(struct buffer_head * bh)
bh599fs/buffer.ctmp = bh;
bh606fs/buffer.c} while (tmp != bh);
bh607fs/buffer.cpage = (unsigned long) bh->b_data;
bh609fs/buffer.ctmp = bh;
bh616fs/buffer.c} while (tmp != bh);
bh631fs/buffer.cstruct buffer_head *bh;
bh636fs/buffer.cbh = free_list;
bh638fs/buffer.cfor ( ; i-- > 0 ; bh = bh->b_next_free) {
bh639fs/buffer.cif (bh->b_count || !bh->b_this_page)
bh641fs/buffer.cif (bh->b_lock)
bh645fs/buffer.cwait_on_buffer(bh);
bh646fs/buffer.cif (bh->b_dirt) {
bh647fs/buffer.cll_rw_block(WRITEA, 1, &bh);
bh650fs/buffer.cif (try_to_free(bh))
bh182fs/exec.cstruct buffer_head * bh;
bh197fs/exec.cif (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) {
bh205fs/exec.cex = *(struct exec *) bh->b_data;
bh206fs/exec.cbrelse(bh);
bh367fs/exec.cstruct buffer_head *bh;
bh378fs/exec.cif (!(bh = bread(inode->i_dev, blkno, block_size)))
bh384fs/exec.cmemcpy_tofs(dest, (blk ? bh->b_data :
bh385fs/exec.cbh->b_data + sizeof(struct exec)), n);
bh386fs/exec.cbrelse(bh);
bh405fs/exec.cstruct buffer_head * bh;
bh462fs/exec.cif (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) {
bh470fs/exec.cex = *((struct exec *) bh->b_data);  /* read exec-header */
bh471fs/exec.cif ((bh->b_data[0] == '#') && (bh->b_data[1] == '!') && (!sh_bang)) {
bh480fs/exec.cstrncpy(buf, bh->b_data+2, 127);
bh481fs/exec.cbrelse(bh);
bh541fs/exec.cbrelse(bh);
bh67fs/ext/dir.cstruct buffer_head * bh;
bh76fs/ext/dir.cbh = ext_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0);
bh77fs/ext/dir.cif (!bh) {
bh81fs/ext/dir.cde = (struct ext_dir_entry *) (offset + bh->b_data);
bh106fs/ext/dir.cbrelse(bh);
bh113fs/ext/dir.cbrelse(bh);
bh226fs/ext/file.cstruct buffer_head * bh;
bh247fs/ext/file.cbh = ext_getblk(inode,pos/BLOCK_SIZE,1);
bh248fs/ext/file.cif (!bh) {
bh256fs/ext/file.cif (c != BLOCK_SIZE && !bh->b_uptodate) {
bh257fs/ext/file.cll_rw_block(READ, 1, &bh);
bh258fs/ext/file.cwait_on_buffer(bh);
bh259fs/ext/file.cif (!bh->b_uptodate) {
bh260fs/ext/file.cbrelse(bh);
bh266fs/ext/file.cp = (pos % BLOCK_SIZE) + bh->b_data;
bh275fs/ext/file.cbh->b_uptodate = 1;
bh276fs/ext/file.cbh->b_dirt = 1;
bh277fs/ext/file.cbrelse(bh);
bh48fs/ext/freelists.cstruct buffer_head * bh;
bh59fs/ext/freelists.cbh = get_hash_table(sb->s_dev, block, sb->s_blocksize);
bh60fs/ext/freelists.cif (bh)
bh61fs/ext/freelists.cbh->b_dirt=0;
bh62fs/ext/freelists.cbrelse(bh);
bh90fs/ext/freelists.cstruct buffer_head * bh;
bh126fs/ext/freelists.cif (!(bh=getblk(sb->s_dev, j, sb->s_blocksize)))
bh128fs/ext/freelists.cif (bh->b_count != 1)
bh130fs/ext/freelists.cclear_block(bh->b_data);
bh131fs/ext/freelists.cbh->b_uptodate = 1;
bh132fs/ext/freelists.cbh->b_dirt = 1;
bh133fs/ext/freelists.cbrelse(bh);
bh144fs/ext/freelists.cstruct buffer_head * bh;
bh156fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
bh160fs/ext/freelists.cefb = (struct ext_free_block *) bh->b_data;
bh163fs/ext/freelists.cbrelse (bh);
bh178fs/ext/freelists.cstruct buffer_head * bh;
bh216fs/ext/freelists.cif (!(bh = bread(inode->i_dev, block, inode->i_sb->s_blocksize)))
bh218fs/ext/freelists.cefi = ((struct ext_free_inode *) bh->b_data) +
bh223fs/ext/freelists.cinode->i_sb->u.ext_sb.s_firstfreeinodeblock = bh;
bh297fs/ext/freelists.cstruct buffer_head * bh;
bh316fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
bh320fs/ext/freelists.cefi = ((struct ext_free_inode *) bh->b_data) +
bh324fs/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;
bh617fs/ext/namei.cbrelse(bh);
bh627fs/ext/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh653fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh654fs/ext/namei.cif (bh) {
bh658fs/ext/namei.cbrelse(bh);
bh662fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh663fs/ext/namei.cif (!bh) {
bh671fs/ext/namei.cbh->b_dirt = 1;
bh672fs/ext/namei.cbrelse(bh);
bh681fs/ext/namei.cstruct buffer_head * bh;
bh693fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh694fs/ext/namei.cif (bh) {
bh695fs/ext/namei.cbrelse(bh);
bh700fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh701fs/ext/namei.cif (!bh) {
bh707fs/ext/namei.cbh->b_dirt = 1;
bh708fs/ext/namei.cbrelse(bh);
bh51fs/ext/symlink.cstruct buffer_head * bh;
bh72fs/ext/symlink.cif (!(bh = ext_bread(inode, 0, 0))) {
bh81fs/ext/symlink.cerror = open_namei(bh->b_data,flag,mode,res_inode,dir);
bh84fs/ext/symlink.cbrelse(bh);
bh90fs/ext/symlink.cstruct buffer_head * bh;
bh100fs/ext/symlink.cbh = ext_bread(inode, 0, 0);
bh102fs/ext/symlink.cif (!bh)
bh105fs/ext/symlink.cwhile (i<buflen && (c = bh->b_data[i])) {
bh109fs/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);
bh67fs/isofs/dir.cstruct buffer_head * bh;
bh79fs/isofs/dir.cif (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE)))
bh86fs/isofs/dir.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh93fs/isofs/dir.cbrelse(bh);
bh97fs/isofs/dir.cif (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE)))
bh111fs/isofs/dir.cmemcpy(cpnt, bh->b_data, BLOCK_SIZE);
bh113fs/isofs/dir.cbrelse(bh);
bh116fs/isofs/dir.cif (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE)))
bh118fs/isofs/dir.cmemcpy(cpnt+BLOCK_SIZE, bh->b_data, BLOCK_SIZE);
bh212fs/isofs/dir.cbrelse(bh);
bh220fs/isofs/dir.cbrelse(bh);
bh90fs/isofs/file.cstruct buffer_head * bh;
bh94fs/isofs/file.cif (block && (bh = bread(inode->i_dev,block, ISOFS_BUFFER_SIZE))) {
bh95fs/isofs/file.cpnt = (char*) bh->b_data;
bh106fs/isofs/file.cbrelse(bh);
bh100fs/isofs/inode.cstruct buffer_head *bh;
bh124fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-ISOFS_BUFFER_BITS), ISOFS_BUFFER_SIZE))) {
bh132fs/isofs/inode.cvdp = (struct iso_volume_descriptor *)bh->b_data;
bh133fs/isofs/inode.chdp = (struct hs_volume_descriptor *)bh->b_data;
bh159fs/isofs/inode.cbrelse(bh);
bh207fs/isofs/inode.cbrelse(bh);
bh239fs/isofs/inode.cbrelse(bh);
bh269fs/isofs/inode.cstruct buffer_head * bh;
bh277fs/isofs/inode.cif (!(bh=bread(inode->i_dev,block, ISOFS_BUFFER_SIZE)))
bh280fs/isofs/inode.cpnt = ((char *) bh->b_data) + (inode->i_ino & (ISOFS_BUFFER_SIZE - 1));
bh287fs/isofs/inode.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh288fs/isofs/inode.cbrelse(bh);
bh289fs/isofs/inode.cif (!(bh = bread(inode->i_dev,++block, ISOFS_BUFFER_SIZE)))
bh291fs/isofs/inode.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh397fs/isofs/inode.cbrelse(bh);
bh442fs/isofs/inode.cstruct buffer_head * bh;
bh447fs/isofs/inode.cif (!(bh = bread(parent->i_dev, block, ISOFS_BUFFER_SIZE)))  return 0;
bh450fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh454fs/isofs/inode.cbrelse(bh);
bh463fs/isofs/inode.cbrelse(bh);
bh469fs/isofs/inode.cbrelse(bh);
bh485fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh489fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh497fs/isofs/inode.cbrelse(bh);
bh501fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh515fs/isofs/inode.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh517fs/isofs/inode.cbrelse(bh);
bh521fs/isofs/inode.cif (!(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh523fs/isofs/inode.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh544fs/isofs/inode.cbrelse(bh);
bh574fs/isofs/inode.cvoid leak_check_brelse(struct buffer_head * bh){
bh576fs/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.cmemcpy(buffer, bh->b_data, cont_size); \
bh64fs/isofs/rock.cbrelse(bh); \
bh352fs/isofs/rock.cstruct buffer_head * bh;
bh369fs/isofs/rock.cif (!(bh=bread(inode->i_dev,block, ISOFS_BUFFER_SIZE)))
bh372fs/isofs/rock.cpnt = ((char *) bh->b_data) + (inode->i_ino & (ISOFS_BUFFER_SIZE - 1));
bh378fs/isofs/rock.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh379fs/isofs/rock.cbrelse(bh);
bh380fs/isofs/rock.cif (!(bh = bread(inode->i_dev,++block, ISOFS_BUFFER_SIZE)))
bh382fs/isofs/rock.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh447fs/isofs/rock.cbrelse(bh);
bh54fs/minix/bitmap.cstruct buffer_head *bh;
bh57fs/minix/bitmap.cif (!(bh=map[i])) 
bh66fs/minix/bitmap.ctmp = bh->b_data[end] & ((1<<numbits)-1);
bh71fs/minix/bitmap.csum += nibblemap[bh->b_data[j] & 0xf] 
bh72fs/minix/bitmap.c+ nibblemap[(bh->b_data[j]>>4)&0xf];
bh79fs/minix/bitmap.cstruct buffer_head * bh;
bh91fs/minix/bitmap.cbh = get_hash_table(sb->s_dev,block,BLOCK_SIZE);
bh92fs/minix/bitmap.cif (bh)
bh93fs/minix/bitmap.cbh->b_dirt=0;
bh94fs/minix/bitmap.cbrelse(bh);
bh98fs/minix/bitmap.cbh = sb->u.minix_sb.s_zmap[zone];
bh99fs/minix/bitmap.cif (!bh) {
bh103fs/minix/bitmap.cif (clear_bit(bit,bh->b_data))
bh105fs/minix/bitmap.cbh->b_dirt = 1;
bh111fs/minix/bitmap.cstruct buffer_head * bh;
bh121fs/minix/bitmap.cif ((bh=sb->u.minix_sb.s_zmap[i]) != NULL)
bh122fs/minix/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh124fs/minix/bitmap.cif (i>=8 || !bh || j>=8192)
bh126fs/minix/bitmap.cif (set_bit(j,bh->b_data)) {
bh130fs/minix/bitmap.cbh->b_dirt = 1;
bh134fs/minix/bitmap.cif (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) {
bh138fs/minix/bitmap.cif (bh->b_count != 1) {
bh142fs/minix/bitmap.cclear_block(bh->b_data);
bh143fs/minix/bitmap.cbh->b_uptodate = 1;
bh144fs/minix/bitmap.cbh->b_dirt = 1;
bh145fs/minix/bitmap.cbrelse(bh);
bh157fs/minix/bitmap.cstruct buffer_head * bh;
bh181fs/minix/bitmap.cif (!(bh=inode->i_sb->u.minix_sb.s_imap[inode->i_ino>>13])) {
bh185fs/minix/bitmap.cif (clear_bit(inode->i_ino&8191,bh->b_data))
bh187fs/minix/bitmap.cbh->b_dirt = 1;
bh195fs/minix/bitmap.cstruct buffer_head * bh;
bh205fs/minix/bitmap.cif ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL)
bh206fs/minix/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh208fs/minix/bitmap.cif (!bh || j >= 8192 || j+i*8192 > inode->i_sb->u.minix_sb.s_ninodes) {
bh212fs/minix/bitmap.cif (set_bit(j,bh->b_data)) {  /* shouldn't happen */
bh217fs/minix/bitmap.cbh->b_dirt = 1;
bh60fs/minix/dir.cstruct buffer_head * bh;
bh69fs/minix/dir.cbh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0);
bh70fs/minix/dir.cif (!bh) {
bh74fs/minix/dir.cde = (struct minix_dir_entry *) (offset + bh->b_data);
bh88fs/minix/dir.cbrelse(bh);
bh94fs/minix/dir.cbrelse(bh);
bh220fs/minix/file.cstruct buffer_head * bh;
bh241fs/minix/file.cbh = minix_getblk(inode,pos/BLOCK_SIZE,1);
bh242fs/minix/file.cif (!bh) {
bh250fs/minix/file.cif (c != BLOCK_SIZE && !bh->b_uptodate) {
bh251fs/minix/file.cll_rw_block(READ, 1, &bh);
bh252fs/minix/file.cwait_on_buffer(bh);
bh253fs/minix/file.cif (!bh->b_uptodate) {
bh254fs/minix/file.cbrelse(bh);
bh260fs/minix/file.cp = (pos % BLOCK_SIZE) + bh->b_data;
bh269fs/minix/file.cbh->b_uptodate = 1;
bh270fs/minix/file.cbh->b_dirt = 1;
bh271fs/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);
bh140fs/minix/inode.cstatic int block_bmap(struct buffer_head * bh, int nr)
bh144fs/minix/inode.cif (!bh)
bh146fs/minix/inode.ctmp = ((unsigned short *) bh->b_data)[nr];
bh147fs/minix/inode.cbrelse(bh);
bh216fs/minix/inode.cstruct buffer_head * bh, int nr, int create)
bh222fs/minix/inode.cif (!bh)
bh224fs/minix/inode.cif (!bh->b_uptodate) {
bh225fs/minix/inode.cll_rw_block(READ, 1, &bh);
bh226fs/minix/inode.cwait_on_buffer(bh);
bh227fs/minix/inode.cif (!bh->b_uptodate) {
bh228fs/minix/inode.cbrelse(bh);
bh232fs/minix/inode.cp = nr + (unsigned short *) bh->b_data;
bh236fs/minix/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh238fs/minix/inode.cbrelse(bh);
bh245fs/minix/inode.cbrelse(bh);
bh250fs/minix/inode.cbrelse(bh);
bh253fs/minix/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh260fs/minix/inode.cbh->b_dirt = 1;
bh261fs/minix/inode.cbrelse(bh);
bh267fs/minix/inode.cstruct buffer_head * bh;
bh281fs/minix/inode.cbh = inode_getblk(inode,7,create);
bh282fs/minix/inode.creturn block_getblk(inode, bh, block, create);
bh285fs/minix/inode.cbh = inode_getblk(inode,8,create);
bh286fs/minix/inode.cbh = block_getblk(inode, bh, block>>9, create);
bh287fs/minix/inode.creturn block_getblk(inode, bh, block & 511, create);
bh292fs/minix/inode.cstruct buffer_head * bh;
bh294fs/minix/inode.cbh = minix_getblk(inode,block,create);
bh295fs/minix/inode.cif (!bh || bh->b_uptodate)
bh296fs/minix/inode.creturn bh;
bh297fs/minix/inode.cll_rw_block(READ, 1, &bh);
bh298fs/minix/inode.cwait_on_buffer(bh);
bh299fs/minix/inode.cif (bh->b_uptodate)
bh300fs/minix/inode.creturn bh;
bh301fs/minix/inode.cbrelse(bh);
bh307fs/minix/inode.cstruct buffer_head * bh;
bh315fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE)))
bh317fs/minix/inode.craw_inode = ((struct minix_inode *) bh->b_data) +
bh330fs/minix/inode.cbrelse(bh);
bh354fs/minix/inode.cstruct buffer_head * bh;
bh360fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh362fs/minix/inode.craw_inode = ((struct minix_inode *)bh->b_data) +
bh375fs/minix/inode.cbh->b_dirt=1;
bh376fs/minix/inode.cbrelse(bh);
bh62fs/minix/namei.cstruct buffer_head * bh;
bh76fs/minix/namei.cbh = minix_bread(dir,0,0);
bh77fs/minix/namei.cif (!bh)
bh80fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh82fs/minix/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data) {
bh83fs/minix/namei.cbrelse(bh);
bh84fs/minix/namei.cbh = minix_bread(dir,i/MINIX_DIR_ENTRIES_PER_BLOCK,0);
bh85fs/minix/namei.cif (!bh) {
bh89fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh93fs/minix/namei.creturn bh;
bh98fs/minix/namei.cbrelse(bh);
bh107fs/minix/namei.cstruct buffer_head * bh;
bh116fs/minix/namei.cif (!(bh = minix_find_entry(dir,name,len,&de))) {
bh121fs/minix/namei.cbrelse(bh);
bh147fs/minix/namei.cstruct buffer_head * bh;
bh163fs/minix/namei.cbh =  minix_bread(dir,0,0);
bh164fs/minix/namei.cif (!bh)
bh169fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh171fs/minix/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data) {
bh172fs/minix/namei.cbrelse(bh);
bh173fs/minix/namei.cbh = minix_bread(dir,i/MINIX_DIR_ENTRIES_PER_BLOCK,1);
bh174fs/minix/namei.cif (!bh)
bh176fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh187fs/minix/namei.cbh->b_dirt = 1;
bh189fs/minix/namei.creturn bh;
bh194fs/minix/namei.cbrelse(bh);
bh202fs/minix/namei.cstruct buffer_head * bh;
bh216fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh217fs/minix/namei.cif (!bh) {
bh225fs/minix/namei.cbh->b_dirt = 1;
bh226fs/minix/namei.cbrelse(bh);
bh235fs/minix/namei.cstruct buffer_head * bh;
bh240fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh241fs/minix/namei.cif (bh) {
bh242fs/minix/namei.cbrelse(bh);
bh279fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh280fs/minix/namei.cif (!bh) {
bh288fs/minix/namei.cbh->b_dirt = 1;
bh289fs/minix/namei.cbrelse(bh);
bh298fs/minix/namei.cstruct buffer_head * bh, *dir_block;
bh301fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh302fs/minix/namei.cif (bh) {
bh303fs/minix/namei.cbrelse(bh);
bh336fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh337fs/minix/namei.cif (!bh) {
bh344fs/minix/namei.cbh->b_dirt = 1;
bh349fs/minix/namei.cbrelse(bh);
bh359fs/minix/namei.cstruct buffer_head * bh;
bh363fs/minix/namei.cif (len<2 || !(bh = minix_bread(inode,0,0))) {
bh367fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh376fs/minix/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
bh377fs/minix/namei.cbrelse(bh);
bh378fs/minix/namei.cbh = minix_bread(inode,nr/MINIX_DIR_ENTRIES_PER_BLOCK,0);
bh379fs/minix/namei.cif (!bh) {
bh383fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh386fs/minix/namei.cbrelse(bh);
bh392fs/minix/namei.cbrelse(bh);
bh400fs/minix/namei.cstruct buffer_head * bh;
bh404fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh406fs/minix/namei.cif (!bh)
bh433fs/minix/namei.cbh->b_dirt = 1;
bh443fs/minix/namei.cbrelse(bh);
bh451fs/minix/namei.cstruct buffer_head * bh;
bh457fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh458fs/minix/namei.cif (!bh)
bh464fs/minix/namei.cbrelse(bh);
bh482fs/minix/namei.cbh->b_dirt = 1;
bh490fs/minix/namei.cbrelse(bh);
bh500fs/minix/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh526fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh527fs/minix/namei.cif (bh) {
bh531fs/minix/namei.cbrelse(bh);
bh535fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh536fs/minix/namei.cif (!bh) {
bh544fs/minix/namei.cbh->b_dirt = 1;
bh545fs/minix/namei.cbrelse(bh);
bh554fs/minix/namei.cstruct buffer_head * bh;
bh566fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh567fs/minix/namei.cif (bh) {
bh568fs/minix/namei.cbrelse(bh);
bh573fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh574fs/minix/namei.cif (!bh) {
bh580fs/minix/namei.cbh->b_dirt = 1;
bh581fs/minix/namei.cbrelse(bh);
bh45fs/minix/symlink.cstruct buffer_head * bh;
bh66fs/minix/symlink.cif (!(bh = minix_bread(inode, 0, 0))) {
bh75fs/minix/symlink.cerror = open_namei(bh->b_data,flag,mode,res_inode,dir);
bh78fs/minix/symlink.cbrelse(bh);
bh84fs/minix/symlink.cstruct buffer_head * bh;
bh94fs/minix/symlink.cbh = minix_bread(inode, 0, 0);
bh96fs/minix/symlink.cif (!bh)
bh99fs/minix/symlink.cwhile (i<buflen && (c = bh->b_data[i])) {
bh103fs/minix/symlink.cbrelse(bh);
bh30fs/minix/truncate.cstruct buffer_head * bh;
bh40fs/minix/truncate.cbh = getblk(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 = getblk(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);
bh59fs/msdos/dir.cstruct buffer_head *bh;
bh77fs/msdos/dir.cbh = NULL;
bh78fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
bh105fs/msdos/dir.cbrelse(bh);
bh110fs/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);
bh83fs/msdos/file.cstruct buffer_head *bh;
bh101fs/msdos/file.cif (!(bh = msdos_sread(inode->i_dev,sector,&data))) break;
bh114fs/msdos/file.cbrelse(bh);
bh119fs/msdos/file.cbrelse(bh);
bh132fs/msdos/file.cstruct buffer_head *bh;
bh159fs/msdos/file.cif (!(bh = msdos_sread(inode->i_dev,sector,&data))) {
bh194fs/msdos/file.cbh->b_dirt = 1;
bh195fs/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);
bh237fs/msdos/inode.cstruct buffer_head *bh;
bh264fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS, BLOCK_SIZE)))
bh266fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh311fs/msdos/inode.cbrelse(bh);
bh317fs/msdos/inode.cstruct buffer_head *bh;
bh322fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS, BLOCK_SIZE)))
bh324fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh338fs/msdos/inode.cbh->b_dirt = 1;
bh339fs/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);
bh317include/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,
bh32kernel/blk_drv/blk.hstruct buffer_head * bh;
bh186kernel/blk_drv/blk.hextern inline void unlock_buffer(struct buffer_head * bh)
bh188kernel/blk_drv/blk.hif (!bh->b_lock)
bh190kernel/blk_drv/blk.hbh->b_lock=0;
bh191kernel/blk_drv/blk.hwake_up(&bh->b_wait);
bh199kernel/blk_drv/blk.hstruct buffer_head * bh;
bh213kernel/blk_drv/blk.hif ((bh = req->bh) != NULL) {
bh214kernel/blk_drv/blk.hreq->bh = bh->b_reqnext;
bh215kernel/blk_drv/blk.hbh->b_reqnext = NULL;
bh216kernel/blk_drv/blk.hbh->b_uptodate = uptodate;
bh217kernel/blk_drv/blk.hunlock_buffer(bh);
bh218kernel/blk_drv/blk.hif ((bh = req->bh) != NULL) {
bh219kernel/blk_drv/blk.hreq->current_nr_sectors = bh->b_size >> 9;
bh224kernel/blk_drv/blk.hreq->buffer = bh->b_data;
bh254kernel/blk_drv/blk.hif (CURRENT->bh) { \
bh255kernel/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);
bh942kernel/blk_drv/floppy.cif (CURRENT->bh) {
bh943kernel/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))) {
bh57kernel/blk_drv/genhd.cbh->b_dirt=0;
bh58kernel/blk_drv/genhd.cbh->b_uptodate=0;
bh59kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+510) == 0xAA55) {
bh60kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh89kernel/blk_drv/genhd.cbrelse(bh);
bh94kernel/blk_drv/genhd.cbrelse(bh);
bh100kernel/blk_drv/genhd.cstruct buffer_head *bh;
bh107kernel/blk_drv/genhd.cif (!(bh = bread(dev,0,1024))) {
bh113kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+510) == 0xAA55) {
bh114kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh131kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+0xfc) == 0x55AA) {
bh132kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh151kernel/blk_drv/genhd.cbrelse(bh);
bh324kernel/blk_drv/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
bh366kernel/blk_drv/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
bh99kernel/blk_drv/ll_rw_blk.cif (req->bh)
bh100kernel/blk_drv/ll_rw_blk.creq->bh->b_dirt = 0;
bh125kernel/blk_drv/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
bh135kernel/blk_drv/ll_rw_blk.cif (bh->b_lock)
bh146kernel/blk_drv/ll_rw_blk.ccount = bh->b_size >> 9;
bh147kernel/blk_drv/ll_rw_blk.csector = bh->b_blocknr * count;
bh149kernel/blk_drv/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
bh150kernel/blk_drv/ll_rw_blk.cbh->b_dirt = bh->b_uptodate = 0;
bh153kernel/blk_drv/ll_rw_blk.clock_buffer(bh);
bh154kernel/blk_drv/ll_rw_blk.cif ((rw == WRITE && !bh->b_dirt) || (rw == READ && bh->b_uptodate)) {
bh155kernel/blk_drv/ll_rw_blk.cunlock_buffer(bh);
bh167kernel/blk_drv/ll_rw_blk.cif (req->dev == bh->b_dev &&
bh172kernel/blk_drv/ll_rw_blk.creq->bhtail->b_reqnext = bh;
bh173kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
bh175kernel/blk_drv/ll_rw_blk.cbh->b_dirt = 0;
bh197kernel/blk_drv/ll_rw_blk.cunlock_buffer(bh);
bh206kernel/blk_drv/ll_rw_blk.creq->dev = bh->b_dev;
bh213kernel/blk_drv/ll_rw_blk.creq->buffer = bh->b_data;
bh215kernel/blk_drv/ll_rw_blk.creq->bh = bh;
bh216kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
bh256kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
bh267kernel/blk_drv/ll_rw_blk.cvoid ll_rw_block(int rw, int nr, struct buffer_head * bh[])
bh277kernel/blk_drv/ll_rw_blk.cwhile(!bh[0]){
bh278kernel/blk_drv/ll_rw_blk.cbh++;
bh284kernel/blk_drv/ll_rw_blk.cif(!bh[j]) continue;
bh285kernel/blk_drv/ll_rw_blk.cif (bh[j]->b_size != 1024) {
bh286kernel/blk_drv/ll_rw_blk.cprintk("ll_rw_block: only 1024-char blocks implemented (%d)\n",bh[0]->b_size);
bh288kernel/blk_drv/ll_rw_blk.cif (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0;
bh293kernel/blk_drv/ll_rw_blk.cif ((major=MAJOR(bh[0]->b_dev)) >= NR_BLK_DEV ||
bh295kernel/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);
bh297kernel/blk_drv/ll_rw_blk.cif (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0;
bh300kernel/blk_drv/ll_rw_blk.cif ((rw == WRITE || rw == WRITEA) && is_read_only(bh[0]->b_dev)) {
bh301kernel/blk_drv/ll_rw_blk.cprintk("Can't write to read-only device 0x%X\n\r",bh[0]->b_dev);
bh303kernel/blk_drv/ll_rw_blk.cif (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0;
bh320kernel/blk_drv/ll_rw_blk.cif (bh[i]) make_request(major, rw, bh[i]);
bh370kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
bh87kernel/blk_drv/ramdisk.cstruct buffer_head *bh;
bh100kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV,block+1,block,block+2,-1);
bh101kernel/blk_drv/ramdisk.cif (!bh) {
bh105kernel/blk_drv/ramdisk.c*((struct minix_super_block *) &s) = *((struct minix_super_block *) bh->b_data);
bh106kernel/blk_drv/ramdisk.cbrelse(bh);
bh121kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV, block, block+1, block+2, -1);
bh123kernel/blk_drv/ramdisk.cbh = bread(ROOT_DEV, block, BLOCK_SIZE);
bh124kernel/blk_drv/ramdisk.cif (!bh) {
bh129kernel/blk_drv/ramdisk.c(void) memcpy(cp, bh->b_data, BLOCK_SIZE);
bh130kernel/blk_drv/ramdisk.cbrelse(bh);
bh405kernel/blk_drv/scsi/scsi.hstruct buffer_head * bh;
bh416kernel/blk_drv/scsi/scsi.hif ((bh = req->bh) != NULL) {
bh417kernel/blk_drv/scsi/scsi.hreq->bh = bh->b_reqnext;
bh418kernel/blk_drv/scsi/scsi.hreq->nr_sectors -= bh->b_size >> 9;
bh419kernel/blk_drv/scsi/scsi.hreq->sector += bh->b_size >> 9;
bh420kernel/blk_drv/scsi/scsi.hbh->b_reqnext = NULL;
bh421kernel/blk_drv/scsi/scsi.hbh->b_uptodate = uptodate;
bh422kernel/blk_drv/scsi/scsi.hunlock_buffer(bh);
bh423kernel/blk_drv/scsi/scsi.hsectors -= bh->b_size >> 9;
bh424kernel/blk_drv/scsi/scsi.hif ((bh = req->bh) != NULL) {
bh425kernel/blk_drv/scsi/scsi.hreq->current_nr_sectors = bh->b_size >> 9;
bh432kernel/blk_drv/scsi/scsi.h} while(sectors && bh);
bh433kernel/blk_drv/scsi/scsi.hif (req->bh){
bh434kernel/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)
bh430kernel/blk_drv/scsi/sd.cif (!SCpnt->request.bh || 
bh461kernel/blk_drv/scsi/sd.cstruct buffer_head * bh;
bh464kernel/blk_drv/scsi/sd.cbh = SCpnt->request.bh;
bh468kernel/blk_drv/scsi/sd.cwhile(bh && count < scsi_hosts[SCpnt->host].sg_tablesize) {
bh469kernel/blk_drv/scsi/sd.cif ((this_count + (bh->b_size >> 9)) > this_count_max) break;
bh470kernel/blk_drv/scsi/sd.cthis_count += (bh->b_size >> 9);
bh472kernel/blk_drv/scsi/sd.cbh = bh->b_reqnext;
bh488kernel/blk_drv/scsi/sd.cbh = SCpnt->request.bh;
bh489kernel/blk_drv/scsi/sd.cfor(count = 0, bh = SCpnt->request.bh; count < SCpnt->use_sg; 
bh490kernel/blk_drv/scsi/sd.ccount++, bh = bh->b_reqnext) {
bh491kernel/blk_drv/scsi/sd.csgpnt[count].address = bh->b_data;
bh493kernel/blk_drv/scsi/sd.csgpnt[count].length = bh->b_size;
bh500kernel/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)
bh408kernel/blk_drv/scsi/sr.cstruct buffer_head * bh;
bh411kernel/blk_drv/scsi/sr.cbh = SCpnt->request.bh;
bh419kernel/blk_drv/scsi/sr.cwhile(bh && count < scsi_hosts[SCpnt->host].sg_tablesize) {
bh420kernel/blk_drv/scsi/sr.cif ((this_count + (bh->b_size >> 9)) > this_count_max) break;
bh421kernel/blk_drv/scsi/sr.cthis_count += (bh->b_size >> 9);
bh423kernel/blk_drv/scsi/sr.cbh = bh->b_reqnext;
bh449kernel/blk_drv/scsi/sr.cbh = SCpnt->request.bh;
bh458kernel/blk_drv/scsi/sr.cfor(bh = SCpnt->request.bh; count < SCpnt->use_sg; 
bh459kernel/blk_drv/scsi/sr.ccount++, bh = bh->b_reqnext) {
bh460kernel/blk_drv/scsi/sr.cif (bh) { /* Need a placeholder at the end of the record? */
bh461kernel/blk_drv/scsi/sr.csgpnt[count].address = bh->b_data;
bh462kernel/blk_drv/scsi/sr.csgpnt[count].length = bh->b_size;
bh516kernel/blk_drv/scsi/sr.cif (!SCpnt->request.bh)    
bh519kernel/blk_drv/scsi/sr.cthis_count = (SCpnt->request.bh->b_size >> 9);