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);
bh60fs/buffer.cvoid __wait_on_buffer(struct buffer_head * bh)
bh64fs/buffer.cadd_wait_queue(&bh->b_wait, &wait);
bh67fs/buffer.cif (bh->b_lock) {
bh71fs/buffer.cremove_wait_queue(&bh->b_wait, &wait);
bh78fs/buffer.cstruct buffer_head * bh;
bh80fs/buffer.cbh = free_list;
bh81fs/buffer.cfor (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) {
bh82fs/buffer.cif (dev && bh->b_dev != dev)
bh84fs/buffer.cif (bh->b_lock)
bh86fs/buffer.cif (!bh->b_dirt)
bh88fs/buffer.cll_rw_block(WRITE, 1, &bh);
bh114fs/buffer.cstruct buffer_head * bh;
bh116fs/buffer.cbh = free_list;
bh117fs/buffer.cfor (i = nr_buffers*2 ; --i > 0 ; bh = bh->b_next_free) {
bh118fs/buffer.cif (bh->b_dev != dev)
bh120fs/buffer.cwait_on_buffer(bh);
bh121fs/buffer.cif (bh->b_dev == dev)
bh122fs/buffer.cbh->b_uptodate = bh->b_dirt = 0;
bh143fs/buffer.cstruct buffer_head * bh;
bh147fs/buffer.cif (!(bh = getblk(dev,0,1024)))
bh149fs/buffer.ci = floppy_change(bh);
bh150fs/buffer.cbrelse(bh);
bh190fs/buffer.cstatic inline void remove_from_hash_queue(struct buffer_head * bh)
bh192fs/buffer.cif (bh->b_next)
bh193fs/buffer.cbh->b_next->b_prev = bh->b_prev;
bh194fs/buffer.cif (bh->b_prev)
bh195fs/buffer.cbh->b_prev->b_next = bh->b_next;
bh196fs/buffer.cif (hash(bh->b_dev,bh->b_blocknr) == bh)
bh197fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh->b_next;
bh198fs/buffer.cbh->b_next = bh->b_prev = NULL;
bh201fs/buffer.cstatic inline void remove_from_free_list(struct buffer_head * bh)
bh203fs/buffer.cif (!(bh->b_prev_free) || !(bh->b_next_free))
bh205fs/buffer.cbh->b_prev_free->b_next_free = bh->b_next_free;
bh206fs/buffer.cbh->b_next_free->b_prev_free = bh->b_prev_free;
bh207fs/buffer.cif (free_list == bh)
bh208fs/buffer.cfree_list = bh->b_next_free;
bh209fs/buffer.cbh->b_next_free = bh->b_prev_free = NULL;
bh212fs/buffer.cstatic inline void remove_from_queues(struct buffer_head * bh)
bh214fs/buffer.cremove_from_hash_queue(bh);
bh215fs/buffer.cremove_from_free_list(bh);
bh218fs/buffer.cstatic inline void put_first_free(struct buffer_head * bh)
bh220fs/buffer.cif (!bh || (bh == free_list))
bh222fs/buffer.cremove_from_free_list(bh);
bh224fs/buffer.cbh->b_next_free = free_list;
bh225fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh226fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh227fs/buffer.cfree_list->b_prev_free = bh;
bh228fs/buffer.cfree_list = bh;
bh231fs/buffer.cstatic inline void put_last_free(struct buffer_head * bh)
bh233fs/buffer.cif (!bh)
bh235fs/buffer.cif (bh == free_list) {
bh236fs/buffer.cfree_list = bh->b_next_free;
bh239fs/buffer.cremove_from_free_list(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;
bh247fs/buffer.cstatic inline void insert_into_queues(struct buffer_head * bh)
bh250fs/buffer.cbh->b_next_free = free_list;
bh251fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh252fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh253fs/buffer.cfree_list->b_prev_free = bh;
bh255fs/buffer.cbh->b_prev = NULL;
bh256fs/buffer.cbh->b_next = NULL;
bh257fs/buffer.cif (!bh->b_dev)
bh259fs/buffer.cbh->b_next = hash(bh->b_dev,bh->b_blocknr);
bh260fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh;
bh261fs/buffer.cif (bh->b_next)
bh262fs/buffer.cbh->b_next->b_prev = bh;
bh290fs/buffer.cstruct buffer_head * bh;
bh293fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
bh295fs/buffer.cbh->b_count++;
bh296fs/buffer.cwait_on_buffer(bh);
bh297fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
bh298fs/buffer.creturn bh;
bh299fs/buffer.cbh->b_count--;
bh313fs/buffer.c#define BADNESS(bh) (((bh)->b_dirt<<1)+(bh)->b_lock)
bh316fs/buffer.cstruct buffer_head * bh, * tmp;
bh321fs/buffer.cbh = get_hash_table(dev, block, size);
bh322fs/buffer.cif (bh) {
bh323fs/buffer.cif (bh->b_uptodate && !bh->b_dirt)
bh324fs/buffer.cput_last_free(bh);
bh325fs/buffer.creturn bh;
bh335fs/buffer.cbh = NULL;
bh342fs/buffer.cif (!bh || BADNESS(tmp)<BADNESS(bh)) {
bh343fs/buffer.cbh = tmp;
bh353fs/buffer.cif (!bh && nr_free_pages > 5) {
bh359fs/buffer.cif (!bh) {
bh363fs/buffer.cwait_on_buffer(bh);
bh364fs/buffer.cif (bh->b_count || bh->b_size != size)
bh366fs/buffer.cif (bh->b_dirt) {
bh376fs/buffer.cbh->b_count=1;
bh377fs/buffer.cbh->b_dirt=0;
bh378fs/buffer.cbh->b_uptodate=0;
bh379fs/buffer.cremove_from_queues(bh);
bh380fs/buffer.cbh->b_dev=dev;
bh381fs/buffer.cbh->b_blocknr=block;
bh382fs/buffer.cinsert_into_queues(bh);
bh383fs/buffer.creturn bh;
bh406fs/buffer.cstruct buffer_head * bh;
bh408fs/buffer.cif (!(bh = getblk(dev, block, size))) {
bh413fs/buffer.cif (bh->b_uptodate)
bh414fs/buffer.creturn bh;
bh415fs/buffer.cll_rw_block(READ, 1, &bh);
bh416fs/buffer.cwait_on_buffer(bh);
bh417fs/buffer.cif (bh->b_uptodate)
bh418fs/buffer.creturn bh;
bh419fs/buffer.cbrelse(bh);
bh431fs/buffer.cstruct buffer_head * bh, *tmp;
bh434fs/buffer.cif (!(bh = getblk(dev, first, 1024))) {
bh439fs/buffer.cif (!bh->b_uptodate)
bh440fs/buffer.cll_rw_block(READ, 1, &bh);
bh450fs/buffer.cwait_on_buffer(bh);
bh451fs/buffer.cif (bh->b_uptodate)
bh452fs/buffer.creturn bh;
bh453fs/buffer.cbrelse(bh);
bh460fs/buffer.cstatic void put_unused_buffer_head(struct buffer_head * bh)
bh464fs/buffer.cwait = ((volatile struct buffer_head *) bh)->b_wait;
bh465fs/buffer.cmemset((void *) bh,0,sizeof(*bh));
bh466fs/buffer.c((volatile struct buffer_head *) bh)->b_wait = wait;
bh467fs/buffer.cbh->b_next_free = unused_list;
bh468fs/buffer.cunused_list = bh;
bh474fs/buffer.cstruct buffer_head * bh;
bh481fs/buffer.cbh = (struct buffer_head *) page;
bh482fs/buffer.cwhile ((unsigned long) (bh+1) <= page+4096) {
bh483fs/buffer.cput_unused_buffer_head(bh);
bh484fs/buffer.cbh++;
bh491fs/buffer.cstruct buffer_head * bh;
bh496fs/buffer.cbh = unused_list;
bh497fs/buffer.cunused_list = bh->b_next_free;
bh498fs/buffer.cbh->b_next_free = NULL;
bh499fs/buffer.cbh->b_data = NULL;
bh500fs/buffer.cbh->b_size = 0;
bh501fs/buffer.creturn bh;
bh523fs/buffer.cstruct buffer_head * bh[4];
bh535fs/buffer.cbh[i] = NULL;
bh537fs/buffer.cbh[i] = getblk(dev, b[i], size);
bh538fs/buffer.cif (bh[i] && !bh[i]->b_uptodate)
bh539fs/buffer.cbhr[bhnum++] = bh[i];
bh546fs/buffer.cif (bh[i]) {
bh547fs/buffer.cwait_on_buffer(bh[i]);
bh548fs/buffer.cif (bh[i]->b_uptodate)
bh549fs/buffer.cCOPYBLK((unsigned long) bh[i]->b_data,address);
bh550fs/buffer.cbrelse(bh[i]);
bh566fs/buffer.cstruct buffer_head *bh, *tmp;
bh578fs/buffer.cbh = get_unused_buffer_head();
bh579fs/buffer.cif (!bh)
bh581fs/buffer.cbh->b_this_page = tmp;
bh582fs/buffer.ctmp = bh;
bh583fs/buffer.cbh->b_data = (char * ) (page+i);
bh584fs/buffer.cbh->b_size = size;
bh586fs/buffer.ctmp = bh;
bh604fs/buffer.ctmp->b_this_page = bh;
bh611fs/buffer.cbh = tmp;
bh612fs/buffer.cwhile (bh) {
bh613fs/buffer.ctmp = bh;
bh614fs/buffer.cbh = bh->b_this_page;
bh624fs/buffer.cstatic int try_to_free(struct buffer_head * bh)
bh629fs/buffer.cpage = (unsigned long) bh->b_data;
bh633fs/buffer.ctmp = bh;
bh640fs/buffer.c} while (tmp != bh);
bh641fs/buffer.ctmp = bh;
bh648fs/buffer.c} while (tmp != bh);
bh663fs/buffer.cstruct buffer_head *bh;
bh668fs/buffer.cbh = free_list;
bh670fs/buffer.cfor ( ; i-- > 0 ; bh = bh->b_next_free) {
bh671fs/buffer.cif (bh->b_count || !bh->b_this_page)
bh673fs/buffer.cif (bh->b_lock)
bh677fs/buffer.cwait_on_buffer(bh);
bh678fs/buffer.cif (bh->b_dirt) {
bh679fs/buffer.cll_rw_block(WRITEA, 1, &bh);
bh682fs/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);
bh59fs/ext/inode.cstruct buffer_head *bh;
bh64fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
bh70fs/ext/inode.ces = (struct ext_super_block *) bh->b_data;
bh82fs/ext/inode.cbrelse(bh);
bh127fs/ext/inode.cstruct buffer_head * bh;
bh130fs/ext/inode.cif (!(bh = bread(sb->s_dev, 1, BLOCK_SIZE))) {
bh134fs/ext/inode.ces = (struct ext_super_block *) bh->b_data;
bh139fs/ext/inode.cbh->b_dirt = 1;
bh140fs/ext/inode.cbrelse (bh);
bh163fs/ext/inode.cstatic int block_bmap(struct buffer_head * bh, int nr)
bh167fs/ext/inode.cif (!bh)
bh169fs/ext/inode.ctmp = ((unsigned long *) bh->b_data)[nr];
bh170fs/ext/inode.cbrelse(bh);
bh252fs/ext/inode.cstruct buffer_head * bh, int nr, int create)
bh258fs/ext/inode.cif (!bh)
bh260fs/ext/inode.cif (!bh->b_uptodate) {
bh261fs/ext/inode.cll_rw_block(READ, 1, &bh);
bh262fs/ext/inode.cwait_on_buffer(bh);
bh263fs/ext/inode.cif (!bh->b_uptodate) {
bh264fs/ext/inode.cbrelse(bh);
bh268fs/ext/inode.cp = nr + (unsigned long *) bh->b_data;
bh272fs/ext/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh274fs/ext/inode.cbrelse(bh);
bh281fs/ext/inode.cbrelse(bh);
bh286fs/ext/inode.cbrelse(bh);
bh289fs/ext/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh296fs/ext/inode.cbh->b_dirt = 1;
bh297fs/ext/inode.cbrelse(bh);
bh303fs/ext/inode.cstruct buffer_head * bh;
bh317fs/ext/inode.cbh = inode_getblk(inode,9,create);
bh318fs/ext/inode.creturn block_getblk(inode,bh,block,create);
bh322fs/ext/inode.cbh = inode_getblk(inode,10,create);
bh323fs/ext/inode.cbh = block_getblk(inode,bh,block>>8,create);
bh324fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
bh327fs/ext/inode.cbh = inode_getblk(inode,11,create);
bh328fs/ext/inode.cbh = block_getblk(inode,bh,block>>16,create);
bh329fs/ext/inode.cbh = block_getblk(inode,bh,(block>>8) & 255,create);
bh330fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
bh335fs/ext/inode.cstruct buffer_head * bh;
bh337fs/ext/inode.cbh = ext_getblk(inode,block,create);
bh338fs/ext/inode.cif (!bh || bh->b_uptodate) 
bh339fs/ext/inode.creturn bh;
bh340fs/ext/inode.cll_rw_block(READ, 1, &bh);
bh341fs/ext/inode.cwait_on_buffer(bh);
bh342fs/ext/inode.cif (bh->b_uptodate)
bh343fs/ext/inode.creturn bh;
bh344fs/ext/inode.cbrelse(bh);
bh350fs/ext/inode.cstruct buffer_head * bh;
bh355fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh357fs/ext/inode.craw_inode = ((struct ext_inode *) bh->b_data) +
bh370fs/ext/inode.cbrelse(bh);
bh388fs/ext/inode.cstruct buffer_head * bh;
bh393fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh395fs/ext/inode.craw_inode = ((struct ext_inode *)bh->b_data) +
bh407fs/ext/inode.cbh->b_dirt=1;
bh409fs/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);
bh381fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh382fs/ext/namei.cif (!bh) {
bh390fs/ext/namei.cbh->b_dirt = 1;
bh391fs/ext/namei.cbrelse(bh);
bh400fs/ext/namei.cstruct buffer_head * bh, *dir_block;
bh403fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh404fs/ext/namei.cif (bh) {
bh405fs/ext/namei.cbrelse(bh);
bh446fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh447fs/ext/namei.cif (!bh) {
bh454fs/ext/namei.cbh->b_dirt = 1;
bh459fs/ext/namei.cbrelse(bh);
bh469fs/ext/namei.cstruct buffer_head * bh;
bh472fs/ext/namei.cif (inode->i_size < 2 * 12 || !(bh = ext_bread(inode,0,0))) {
bh476fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh486fs/ext/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
bh487fs/ext/namei.cbrelse(bh);
bh488fs/ext/namei.cbh = ext_bread(inode, offset >> BLOCK_SIZE_BITS,1);
bh489fs/ext/namei.cif (!bh) {
bh493fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh500fs/ext/namei.cbrelse (bh);
bh504fs/ext/namei.cbrelse(bh);
bh510fs/ext/namei.cbrelse(bh);
bh527fs/ext/namei.cstruct buffer_head * bh;
bh531fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
bh533fs/ext/namei.cif (!bh)
bh562fs/ext/namei.cbh->b_dirt = 1;
bh572fs/ext/namei.cbrelse(bh);
bh580fs/ext/namei.cstruct buffer_head * bh;
bh585fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
bh586fs/ext/namei.cif (!bh)
bh605fs/ext/namei.cbh->b_dirt = 1;
bh613fs/ext/namei.cbrelse(bh);
bh623fs/ext/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh649fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh650fs/ext/namei.cif (bh) {
bh654fs/ext/namei.cbrelse(bh);
bh658fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh659fs/ext/namei.cif (!bh) {
bh667fs/ext/namei.cbh->b_dirt = 1;
bh668fs/ext/namei.cbrelse(bh);
bh677fs/ext/namei.cstruct buffer_head * bh;
bh689fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh690fs/ext/namei.cif (bh) {
bh691fs/ext/namei.cbrelse(bh);
bh696fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh697fs/ext/namei.cif (!bh) {
bh703fs/ext/namei.cbh->b_dirt = 1;
bh704fs/ext/namei.cbrelse(bh);
bh51fs/ext/symlink.cstruct buffer_head * bh;
bh72fs/ext/symlink.cif (!(bh = ext_bread(inode, 0, 0))) {
bh79fs/ext/symlink.cerror = open_namei(bh->b_data,flag,mode,res_inode,dir);
bh81fs/ext/symlink.cbrelse(bh);
bh87fs/ext/symlink.cstruct buffer_head * bh;
bh97fs/ext/symlink.cbh = ext_bread(inode, 0, 0);
bh99fs/ext/symlink.cif (!bh)
bh102fs/ext/symlink.cwhile (i<buflen && (c = bh->b_data[i])) {
bh106fs/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);
bh109fs/ext2/balloc.cstruct buffer_head * bh;
bh120fs/ext2/balloc.cbh = bread (sb->s_dev, gdp[desc].bg_block_bitmap, sb->s_blocksize);
bh121fs/ext2/balloc.cif (!bh) {
bh129fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[bitmap_nr] = bh;
bh220fs/ext2/balloc.cstruct buffer_head * bh;
bh245fs/ext2/balloc.cbh = get_hash_table (sb->s_dev, block, sb->s_blocksize);
bh246fs/ext2/balloc.cif (bh)
bh247fs/ext2/balloc.cbh->b_dirt = 0;
bh248fs/ext2/balloc.cbrelse (bh);
bh254fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
bh255fs/ext2/balloc.cif (!bh) {
bh259fs/ext2/balloc.cif (clear_bit (bit, bh->b_data))
bh274fs/ext2/balloc.cbh->b_dirt = 1;
bh291fs/ext2/balloc.cstruct buffer_head * bh;
bh338fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
bh339fs/ext2/balloc.cif (!bh) {
bh349fs/ext2/balloc.cif (!test_bit(j, bh->b_data)) {
bh359fs/ext2/balloc.clmap = (((((unsigned long *) bh->b_data)[j >> 5]) 
bh361fs/ext2/balloc.c((((unsigned long *) bh->b_data)[(j>>5)+1])
bh384fs/ext2/balloc.cp = ((char *) bh->b_data) + (j>>3);
bh387fs/ext2/balloc.ck = (r - ((char *) bh->b_data)) << 3;
bh392fs/ext2/balloc.ck = find_next_zero_bit ((unsigned long *) bh->b_data, 
bh436fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
bh437fs/ext2/balloc.cif (!bh) {
bh441fs/ext2/balloc.cr = find_first_zero_byte (bh->b_data, 
bh443fs/ext2/balloc.cj = (r-bh->b_data) << 3;
bh445fs/ext2/balloc.cj = find_first_zero_bit ((unsigned long *) bh->b_data,
bh460fs/ext2/balloc.cif (set_bit (j, bh->b_data)) {
bh464fs/ext2/balloc.cbh->b_dirt = 1;
bh477fs/ext2/balloc.cif (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) {
bh482fs/ext2/balloc.cclear_block (bh->b_data, sb->s_blocksize);
bh483fs/ext2/balloc.cbh->b_uptodate = 1;
bh484fs/ext2/balloc.cbh->b_dirt = 1;
bh485fs/ext2/balloc.cbrelse (bh);
bh69fs/ext2/dir.cstruct ext2_dir_entry * de, struct buffer_head * bh,
bh80fs/ext2/dir.celse if (((char *) de - bh->b_data) + de->rec_len >
bh97fs/ext2/dir.cstruct buffer_head * bh;
bh106fs/ext2/dir.cbh = ext2_bread (inode, (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb), 0);
bh107fs/ext2/dir.cif (!bh) {
bh111fs/ext2/dir.cde = (struct ext2_dir_entry *) (offset + bh->b_data);
bh114fs/ext2/dir.cbh, offset)) {
bh115fs/ext2/dir.cbrelse (bh);
bh132fs/ext2/dir.cbrelse (bh);
bh138fs/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);
bh66fs/ext2/ialloc.cstruct buffer_head * bh;
bh76fs/ext2/ialloc.cbh = bread (sb->s_dev, gdp[desc].bg_inode_bitmap, sb->s_blocksize);
bh77fs/ext2/ialloc.cif (!bh) {
bh83fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[bitmap_nr] = bh;
bh165fs/ext2/ialloc.cstruct buffer_head * bh;
bh171fs/ext2/ialloc.cbh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize);
bh172fs/ext2/ialloc.cif (!bh) {
bh176fs/ext2/ialloc.craw_inode = ((struct ext2_inode *) bh->b_data) +
bh181fs/ext2/ialloc.cbh->b_dirt = 1;
bh182fs/ext2/ialloc.cbrelse (bh);
bh188fs/ext2/ialloc.cstruct buffer_head * bh;
bh232fs/ext2/ialloc.cbh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr];
bh233fs/ext2/ialloc.cif (!bh) {
bh237fs/ext2/ialloc.cif (clear_bit (bit, bh->b_data))
bh255fs/ext2/ialloc.cbh->b_dirt = 1;
bh273fs/ext2/ialloc.cstruct buffer_head * bh;
bh279fs/ext2/ialloc.cbh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize);
bh280fs/ext2/ialloc.cif (!bh) {
bh287fs/ext2/ialloc.craw_inode = ((struct ext2_inode *) bh->b_data) +
bh294fs/ext2/ialloc.cbh->b_dirt = 1;
bh295fs/ext2/ialloc.cbrelse (bh);
bh325fs/ext2/ialloc.cstruct buffer_head * bh;
bh411fs/ext2/ialloc.cbh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr];
bh412fs/ext2/ialloc.cif (!bh) {
bh416fs/ext2/ialloc.cif ((j = find_first_zero_bit ((unsigned long *) bh->b_data,
bh419fs/ext2/ialloc.cif (set_bit (j, bh->b_data)) {
bh423fs/ext2/ialloc.cbh->b_dirt = 1;
bh73fs/ext2/inode.cstruct buffer_head * bh)
bh82fs/ext2/inode.ces = (struct ext2_super_block *) bh->b_data;
bh105fs/ext2/inode.cbh->b_dirt = 1;
bh113fs/ext2/inode.cstruct buffer_head * bh;
bh121fs/ext2/inode.cif (!(bh = bread (dev, 1, BLOCK_SIZE))) {
bh127fs/ext2/inode.ces = (struct ext2_super_block *) bh->b_data;
bh150fs/ext2/inode.cs->u.ext2_sb.s_sbh = bh;
bh159fs/ext2/inode.cbrelse (bh);
bh169fs/ext2/inode.cbrelse (bh);
bh173fs/ext2/inode.cif (!convert_pre_02b_fs (s, bh)) {
bh176fs/ext2/inode.cbrelse (bh);
bh186fs/ext2/inode.cbrelse (bh);
bh195fs/ext2/inode.cbrelse (bh);
bh218fs/ext2/inode.cbrelse (bh);
bh240fs/ext2/inode.cbrelse (bh);
bh247fs/ext2/inode.cbh->b_dirt = 1;
bh278fs/ext2/inode.cstruct buffer_head * bh;
bh297fs/ext2/inode.cif (!(bh = bread (sb->s_dev, block, BLOCK_SIZE)))
bh303fs/ext2/inode.cmemcpy (bh->b_data, es, BLOCK_SIZE);
bh304fs/ext2/inode.cbh ->b_dirt = 1;
bh305fs/ext2/inode.cbrelse (bh);
bh312fs/ext2/inode.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize)))
bh315fs/ext2/inode.cmemcpy (bh->b_data, sb->u.ext2_sb.s_group_desc[j]->b_data, sb->s_blocksize);
bh316fs/ext2/inode.cbh ->b_dirt = 1;
bh317fs/ext2/inode.cbrelse (bh);
bh348fs/ext2/inode.cstatic int block_bmap (struct buffer_head * bh, int nr)
bh352fs/ext2/inode.cif (!bh)
bh354fs/ext2/inode.ctmp = ((unsigned long *) bh->b_data)[nr];
bh355fs/ext2/inode.cbrelse (bh);
bh476fs/ext2/inode.cstruct buffer_head * bh, int nr,
bh484fs/ext2/inode.cif (!bh)
bh486fs/ext2/inode.cif (!bh->b_uptodate) {
bh487fs/ext2/inode.cll_rw_block (READ, 1, &bh);
bh488fs/ext2/inode.cwait_on_buffer (bh);
bh489fs/ext2/inode.cif (!bh->b_uptodate) {
bh490fs/ext2/inode.cbrelse (bh);
bh494fs/ext2/inode.cp = nr + (unsigned long *) bh->b_data;
bh498fs/ext2/inode.cresult = getblk (bh->b_dev, tmp, blocksize);
bh500fs/ext2/inode.cbrelse (bh);
bh509fs/ext2/inode.cbrelse (bh);
bh516fs/ext2/inode.cif (bh->b_data[tmp]) {
bh517fs/ext2/inode.cgoal = bh->b_data[tmp];
bh522fs/ext2/inode.cgoal = bh->b_blocknr+1;
bh529fs/ext2/inode.cbrelse (bh);
bh532fs/ext2/inode.cresult = getblk (bh->b_dev, tmp, blocksize);
bh539fs/ext2/inode.cbh->b_dirt = 1;
bh545fs/ext2/inode.cbrelse (bh);
bh552fs/ext2/inode.cstruct buffer_head * bh;
bh584fs/ext2/inode.cbh = inode_getblk (inode, EXT2_IND_BLOCK, create, b);
bh585fs/ext2/inode.creturn block_getblk (inode, bh, block, create,
bh590fs/ext2/inode.cbh = inode_getblk (inode, EXT2_DIND_BLOCK, create,b );
bh591fs/ext2/inode.cbh = block_getblk (inode, bh, block / addr_per_block, create,
bh593fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1),
bh597fs/ext2/inode.cbh = inode_getblk (inode, EXT2_TIND_BLOCK, create, b);
bh598fs/ext2/inode.cbh = block_getblk (inode, bh, block / (addr_per_block * addr_per_block),
bh600fs/ext2/inode.cbh = block_getblk (inode, bh, (block / addr_per_block) & (addr_per_block - 1),
bh602fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1), create,
bh608fs/ext2/inode.cstruct buffer_head * bh;
bh610fs/ext2/inode.cbh = ext2_getblk (inode, block, create);
bh611fs/ext2/inode.cif (!bh || bh->b_uptodate)
bh612fs/ext2/inode.creturn bh;
bh613fs/ext2/inode.cll_rw_block (READ, 1, &bh);
bh614fs/ext2/inode.cwait_on_buffer (bh);
bh615fs/ext2/inode.cif (bh->b_uptodate)
bh616fs/ext2/inode.creturn bh;
bh617fs/ext2/inode.cbrelse (bh);
bh623fs/ext2/inode.cstruct buffer_head * bh;
bh642fs/ext2/inode.cbh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc];
bh643fs/ext2/inode.cif (!bh)
bh645fs/ext2/inode.cgdp = (struct ext2_group_desc *) bh->b_data;
bh649fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
bh651fs/ext2/inode.craw_inode = ((struct ext2_inode *) bh->b_data) +
bh681fs/ext2/inode.cbrelse (bh);
bh699fs/ext2/inode.cstruct buffer_head * bh;
bh718fs/ext2/inode.cbh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc];
bh719fs/ext2/inode.cif (!bh)
bh721fs/ext2/inode.cgdp = (struct ext2_group_desc *) bh->b_data;
bh725fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
bh727fs/ext2/inode.craw_inode = ((struct ext2_inode *)bh->b_data) +
bh752fs/ext2/inode.cbh->b_dirt = 1;
bh754fs/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;
bh108fs/ext2/namei.cif (! ext2_check_dir_entry ("ext2_find_entry", dir, de, bh,
bh110fs/ext2/namei.cbrelse (bh);
bh115fs/ext2/namei.creturn bh;
bh122fs/ext2/namei.cbrelse (bh);
bh131fs/ext2/namei.cstruct buffer_head * bh;
bh143fs/ext2/namei.cif (!(bh = ext2_find_entry (dir, name, len, &de, NULL))) {
bh152fs/ext2/namei.cbrelse (bh);
bh181fs/ext2/namei.cstruct buffer_head * bh;
bh198fs/ext2/namei.cbh = ext2_bread (dir, 0, 0);
bh199fs/ext2/namei.cif (!bh)
bh203fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh205fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
bh206fs/ext2/namei.cbrelse (bh);
bh207fs/ext2/namei.cbh = NULL;
bh208fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 0);
bh209fs/ext2/namei.cif (!bh) {
bh213fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1);
bh214fs/ext2/namei.cif (!bh)
bh216fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh225fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh228fs/ext2/namei.cif (! ext2_check_dir_entry ("ext2_add_entry", dir, de, bh,
bh230fs/ext2/namei.cbrelse (bh);
bh249fs/ext2/namei.cbh->b_dirt = 1;
bh251fs/ext2/namei.creturn bh;
bh256fs/ext2/namei.cbrelse (bh);
bh277fs/ext2/namei.cstruct buffer_head * bh;
bh291fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh292fs/ext2/namei.cif (!bh) {
bh304fs/ext2/namei.cbh->b_dirt = 1;
bh305fs/ext2/namei.cbrelse (bh);
bh315fs/ext2/namei.cstruct buffer_head * bh;
bh320fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh321fs/ext2/namei.cif (bh) {
bh322fs/ext2/namei.cbrelse (bh);
bh353fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh354fs/ext2/namei.cif (!bh) {
bh366fs/ext2/namei.cbh->b_dirt = 1;
bh367fs/ext2/namei.cbrelse (bh);
bh376fs/ext2/namei.cstruct buffer_head * bh, * dir_block;
bh379fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh380fs/ext2/namei.cif (bh) {
bh381fs/ext2/namei.cbrelse (bh);
bh419fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh420fs/ext2/namei.cif (!bh) {
bh431fs/ext2/namei.cbh->b_dirt = 1;
bh436fs/ext2/namei.cbrelse (bh);
bh446fs/ext2/namei.cstruct buffer_head * bh;
bh452fs/ext2/namei.c!(bh = ext2_bread (inode, 0, 0))) {
bh457fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh468fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
bh469fs/ext2/namei.cbrelse (bh);
bh470fs/ext2/namei.cbh = ext2_bread (inode, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1);
bh471fs/ext2/namei.cif (!bh) {
bh475fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
bh477fs/ext2/namei.cif (! ext2_check_dir_entry ("empty_dir", inode, de, bh,
bh479fs/ext2/namei.cbrelse (bh);
bh483fs/ext2/namei.cbrelse (bh);
bh489fs/ext2/namei.cbrelse (bh);
bh497fs/ext2/namei.cstruct buffer_head * bh;
bh501fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, &pde);
bh503fs/ext2/namei.cif (!bh)
bh539fs/ext2/namei.cbh->b_dirt = 1;
bh549fs/ext2/namei.cbrelse (bh);
bh557fs/ext2/namei.cstruct buffer_head * bh;
bh562fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, &pde);
bh563fs/ext2/namei.cif (!bh)
bh589fs/ext2/namei.cbh->b_dirt = 1;
bh597fs/ext2/namei.cbrelse (bh);
bh608fs/ext2/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh652fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh653fs/ext2/namei.cif (bh) {
bh657fs/ext2/namei.cbrelse (bh);
bh661fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh662fs/ext2/namei.cif (!bh) {
bh674fs/ext2/namei.cbh->b_dirt = 1;
bh675fs/ext2/namei.cbrelse (bh);
bh685fs/ext2/namei.cstruct buffer_head * bh;
bh697fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
bh698fs/ext2/namei.cif (bh) {
bh699fs/ext2/namei.cbrelse (bh);
bh704fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de);
bh705fs/ext2/namei.cif (!bh) {
bh715fs/ext2/namei.cbh->b_dirt = 1;
bh716fs/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 = get_hash_table (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 = get_hash_table (inode->i_dev, tmp,
bh106fs/ext2/truncate.cbrelse (bh);
bh109fs/ext2/truncate.cif ((bh && bh->b_count != 1) || tmp != *ind) {
bh111fs/ext2/truncate.cbrelse (bh);
bh116fs/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);
bh97fs/isofs/inode.cstruct buffer_head *bh;
bh121fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-ISOFS_BUFFER_BITS), ISOFS_BUFFER_SIZE))) {
bh129fs/isofs/inode.cvdp = (struct iso_volume_descriptor *)bh->b_data;
bh130fs/isofs/inode.chdp = (struct hs_volume_descriptor *)bh->b_data;
bh156fs/isofs/inode.cbrelse(bh);
bh205fs/isofs/inode.cbrelse(bh);
bh237fs/isofs/inode.cbrelse(bh);
bh268fs/isofs/inode.cstruct buffer_head * bh;
bh276fs/isofs/inode.cif (!(bh=bread(inode->i_dev,block, ISOFS_BUFFER_SIZE)))
bh279fs/isofs/inode.cpnt = ((char *) bh->b_data) + (inode->i_ino & (ISOFS_BUFFER_SIZE - 1));
bh286fs/isofs/inode.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh287fs/isofs/inode.cbrelse(bh);
bh288fs/isofs/inode.cif (!(bh = bread(inode->i_dev,++block, ISOFS_BUFFER_SIZE)))
bh290fs/isofs/inode.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh403fs/isofs/inode.cbrelse(bh);
bh450fs/isofs/inode.cstruct buffer_head * bh;
bh455fs/isofs/inode.cif (!(bh = bread(parent->i_dev, block, ISOFS_BUFFER_SIZE)))  return 0;
bh458fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh462fs/isofs/inode.cbrelse(bh);
bh471fs/isofs/inode.cbrelse(bh);
bh478fs/isofs/inode.cbrelse(bh);
bh493fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh497fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
bh505fs/isofs/inode.cbrelse(bh);
bh509fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh523fs/isofs/inode.cmemcpy(cpnt, bh->b_data, ISOFS_BUFFER_SIZE);
bh525fs/isofs/inode.cbrelse(bh);
bh529fs/isofs/inode.cif (!(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE)))
bh531fs/isofs/inode.cmemcpy(cpnt+ISOFS_BUFFER_SIZE, bh->b_data, ISOFS_BUFFER_SIZE);
bh552fs/isofs/inode.cbrelse(bh);
bh582fs/isofs/inode.cvoid leak_check_brelse(struct buffer_head * bh){
bh584fs/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);
bh54fs/minix/inode.cstruct buffer_head *bh;
bh61fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
bh67fs/minix/inode.cms = (struct minix_super_block *) bh->b_data;
bh77fs/minix/inode.cbrelse(bh);
bh150fs/minix/inode.cstatic int block_bmap(struct buffer_head * bh, int nr)
bh154fs/minix/inode.cif (!bh)
bh156fs/minix/inode.ctmp = ((unsigned short *) bh->b_data)[nr];
bh157fs/minix/inode.cbrelse(bh);
bh226fs/minix/inode.cstruct buffer_head * bh, int nr, int create)
bh232fs/minix/inode.cif (!bh)
bh234fs/minix/inode.cif (!bh->b_uptodate) {
bh235fs/minix/inode.cll_rw_block(READ, 1, &bh);
bh236fs/minix/inode.cwait_on_buffer(bh);
bh237fs/minix/inode.cif (!bh->b_uptodate) {
bh238fs/minix/inode.cbrelse(bh);
bh242fs/minix/inode.cp = nr + (unsigned short *) bh->b_data;
bh246fs/minix/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh248fs/minix/inode.cbrelse(bh);
bh255fs/minix/inode.cbrelse(bh);
bh260fs/minix/inode.cbrelse(bh);
bh263fs/minix/inode.cresult = getblk(bh->b_dev, tmp, BLOCK_SIZE);
bh270fs/minix/inode.cbh->b_dirt = 1;
bh271fs/minix/inode.cbrelse(bh);
bh277fs/minix/inode.cstruct buffer_head * bh;
bh291fs/minix/inode.cbh = inode_getblk(inode,7,create);
bh292fs/minix/inode.creturn block_getblk(inode, bh, block, create);
bh295fs/minix/inode.cbh = inode_getblk(inode,8,create);
bh296fs/minix/inode.cbh = block_getblk(inode, bh, block>>9, create);
bh297fs/minix/inode.creturn block_getblk(inode, bh, block & 511, create);
bh302fs/minix/inode.cstruct buffer_head * bh;
bh304fs/minix/inode.cbh = minix_getblk(inode,block,create);
bh305fs/minix/inode.cif (!bh || bh->b_uptodate)
bh306fs/minix/inode.creturn bh;
bh307fs/minix/inode.cll_rw_block(READ, 1, &bh);
bh308fs/minix/inode.cwait_on_buffer(bh);
bh309fs/minix/inode.cif (bh->b_uptodate)
bh310fs/minix/inode.creturn bh;
bh311fs/minix/inode.cbrelse(bh);
bh317fs/minix/inode.cstruct buffer_head * bh;
bh332fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) {
bh337fs/minix/inode.craw_inode = ((struct minix_inode *) bh->b_data) +
bh350fs/minix/inode.cbrelse(bh);
bh367fs/minix/inode.cstruct buffer_head * bh;
bh380fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) {
bh385fs/minix/inode.craw_inode = ((struct minix_inode *)bh->b_data) +
bh398fs/minix/inode.cbh->b_dirt=1;
bh399fs/minix/inode.cbrelse(bh);
bh45fs/minix/namei.cstruct buffer_head * bh, unsigned long * offset,
bh50fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + *offset);
bh72fs/minix/namei.cstruct buffer_head * bh;
bh86fs/minix/namei.cbh = NULL;
bh89fs/minix/namei.cif (!bh) {
bh90fs/minix/namei.cbh = minix_bread(dir,block,0);
bh91fs/minix/namei.cif (!bh) {
bh96fs/minix/namei.c*res_dir = (struct minix_dir_entry *) (bh->b_data + offset);
bh97fs/minix/namei.cif (minix_match(namelen,name,bh,&offset,info))
bh98fs/minix/namei.creturn bh;
bh99fs/minix/namei.cif (offset < bh->b_size)
bh101fs/minix/namei.cbrelse(bh);
bh102fs/minix/namei.cbh = NULL;
bh106fs/minix/namei.cbrelse(bh);
bh116fs/minix/namei.cstruct buffer_head * bh;
bh125fs/minix/namei.cif (!(bh = minix_find_entry(dir,name,len,&de))) {
bh130fs/minix/namei.cbrelse(bh);
bh156fs/minix/namei.cstruct buffer_head * bh;
bh174fs/minix/namei.cbh = NULL;
bh177fs/minix/namei.cif (!bh) {
bh178fs/minix/namei.cbh = minix_bread(dir,block,1);
bh179fs/minix/namei.cif (!bh)
bh182fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
bh184fs/minix/namei.cif (block*bh->b_size + offset > dir->i_size) {
bh186fs/minix/namei.cdir->i_size = block*bh->b_size + offset;
bh192fs/minix/namei.cbrelse(bh);
bh199fs/minix/namei.cbh->b_dirt = 1;
bh203fs/minix/namei.cif (offset < bh->b_size)
bh205fs/minix/namei.cbrelse(bh);
bh206fs/minix/namei.cbh = NULL;
bh210fs/minix/namei.c*res_buf = bh;
bh219fs/minix/namei.cstruct buffer_head * bh;
bh233fs/minix/namei.cerror = minix_add_entry(dir,name,len, &bh ,&de);
bh242fs/minix/namei.cbh->b_dirt = 1;
bh243fs/minix/namei.cbrelse(bh);
bh253fs/minix/namei.cstruct buffer_head * bh;
bh258fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh259fs/minix/namei.cif (bh) {
bh260fs/minix/namei.cbrelse(bh);
bh291fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
bh300fs/minix/namei.cbh->b_dirt = 1;
bh301fs/minix/namei.cbrelse(bh);
bh311fs/minix/namei.cstruct buffer_head * bh, *dir_block;
bh320fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh321fs/minix/namei.cif (bh) {
bh322fs/minix/namei.cbrelse(bh);
bh359fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
bh367fs/minix/namei.cbh->b_dirt = 1;
bh372fs/minix/namei.cbrelse(bh);
bh382fs/minix/namei.cstruct buffer_head * bh;
bh390fs/minix/namei.cbh = NULL;
bh396fs/minix/namei.cbh = minix_bread(inode,0,0);
bh397fs/minix/namei.cif (!bh)
bh399fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh402fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize);
bh406fs/minix/namei.cif (!bh) {
bh407fs/minix/namei.cbh = minix_bread(inode,block,0);
bh408fs/minix/namei.cif (!bh) {
bh413fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
bh416fs/minix/namei.cbrelse(bh);
bh419fs/minix/namei.cif (offset < bh->b_size)
bh421fs/minix/namei.cbrelse(bh);
bh422fs/minix/namei.cbh = NULL;
bh426fs/minix/namei.cbrelse(bh);
bh429fs/minix/namei.cbrelse(bh);
bh438fs/minix/namei.cstruct buffer_head * bh;
bh442fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh444fs/minix/namei.cif (!bh)
bh471fs/minix/namei.cbh->b_dirt = 1;
bh481fs/minix/namei.cbrelse(bh);
bh489fs/minix/namei.cstruct buffer_head * bh;
bh495fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh496fs/minix/namei.cif (!bh)
bh502fs/minix/namei.cbrelse(bh);
bh520fs/minix/namei.cbh->b_dirt = 1;
bh528fs/minix/namei.cbrelse(bh);
bh538fs/minix/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh564fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh565fs/minix/namei.cif (bh) {
bh569fs/minix/namei.cbrelse(bh);
bh573fs/minix/namei.ci = minix_add_entry(dir, name, len, &bh, &de);
bh582fs/minix/namei.cbh->b_dirt = 1;
bh583fs/minix/namei.cbrelse(bh);
bh593fs/minix/namei.cstruct buffer_head * bh;
bh605fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh606fs/minix/namei.cif (bh) {
bh607fs/minix/namei.cbrelse(bh);
bh612fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
bh619fs/minix/namei.cbh->b_dirt = 1;
bh620fs/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);
bh62fs/msdos/dir.cstruct buffer_head *bh;
bh80fs/msdos/dir.cbh = NULL;
bh81fs/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;
bh31fs/msdos/fat.cif (!(bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >>
bh37fs/msdos/fat.cbh2 = bh;
bh43fs/msdos/fat.cbrelse(bh);
bh77fs/msdos/fat.cbh->b_dirt = 1;
bh84fs/msdos/fat.cif (data != data2 || bh != bh2) {
bh98fs/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);
bh146fs/msdos/inode.cstruct buffer_head *bh;
bh162fs/msdos/inode.cbh = bread(s->s_dev, 0, BLOCK_SIZE);
bh164fs/msdos/inode.cif (bh == NULL) {
bh169fs/msdos/inode.cb = (struct msdos_boot_sector *) bh->b_data;
bh218fs/msdos/inode.cbrelse(bh);
bh305fs/msdos/inode.cstruct buffer_head *bh;
bh332fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS,
bh337fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh382fs/msdos/inode.cbrelse(bh);
bh388fs/msdos/inode.cstruct buffer_head *bh;
bh393fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS,
bh398fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh414fs/msdos/inode.cbh->b_dirt = 1;
bh415fs/msdos/inode.cbrelse(bh);
bh113fs/msdos/misc.cstruct buffer_head *bh;
bh172fs/msdos/misc.cif (!(bh = getblk(inode->i_dev,sector >> 1,
bh176fs/msdos/misc.cmemset(bh->b_data,0,BLOCK_SIZE);
bh177fs/msdos/misc.cbh->b_uptodate = 1;
bh182fs/msdos/misc.cif (!(bh = msdos_sread(inode->i_dev,sector,
bh187fs/msdos/misc.cif (bh) {
bh188fs/msdos/misc.cbh->b_dirt = 1;
bh189fs/msdos/misc.cbrelse(bh);
bh267fs/msdos/misc.cint msdos_get_entry(struct inode *dir,int *pos,struct buffer_head **bh,
bh280fs/msdos/misc.cif (*bh)
bh281fs/msdos/misc.cbrelse(*bh);
bh282fs/msdos/misc.cif (!(*bh = msdos_sread(dir->i_dev,sector,&data))) {
bh350fs/msdos/misc.cstruct buffer_head *bh;
bh355fs/msdos/misc.cif (!(bh = msdos_sread(sb->s_dev,sector,(void **) &data))) return -EIO;
bh368fs/msdos/misc.cif (!res_bh) brelse(bh);
bh370fs/msdos/misc.c*res_bh = bh;
bh376fs/msdos/misc.cbrelse(bh);
bh94fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
bh101fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino);
bh110fs/msdos/namei.cstruct buffer_head *bh;
bh130fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
bh134fs/msdos/namei.cif (bh) brelse(bh);
bh164fs/msdos/namei.cstruct buffer_head *bh;
bh168fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) {
bh172fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res;
bh179fs/msdos/namei.cbh->b_dirt = 1;
bh182fs/msdos/namei.cbrelse(bh);
bh194fs/msdos/namei.cstruct buffer_head *bh;
bh206fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
bh208fs/msdos/namei.cbrelse(bh);
bh241fs/msdos/namei.cstruct buffer_head *bh;
bh253fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
bh255fs/msdos/namei.cbrelse(bh);
bh299fs/msdos/namei.cstruct buffer_head *bh;
bh306fs/msdos/namei.cbh = NULL;
bh307fs/msdos/namei.cwhile (msdos_get_entry(dir,&pos,&bh,&de) > -1)
bh311fs/msdos/namei.cbrelse(bh);
bh314fs/msdos/namei.cif (bh)
bh315fs/msdos/namei.cbrelse(bh);
bh324fs/msdos/namei.cstruct buffer_head *bh;
bh328fs/msdos/namei.cbh = NULL;
bh333fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
bh348fs/msdos/namei.cbh->b_dirt = 1;
bh351fs/msdos/namei.cbrelse(bh);
bh361fs/msdos/namei.cstruct buffer_head *bh;
bh365fs/msdos/namei.cbh = NULL;
bh367fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
bh381fs/msdos/namei.cbh->b_dirt = 1;
bh383fs/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;
bh340fs/xiafs/bitmap.cstatic u_long count_zone(struct buffer_head * bh)
bh346fs/xiafs/bitmap.cfor (i=bh->b_size; i-- > 0; ) {
bh347fs/xiafs/bitmap.ctmp=bh->b_data[i];
bh355fs/xiafs/bitmap.cstruct buffer_head * bh;
bh362fs/xiafs/bitmap.cbh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
bh363fs/xiafs/bitmap.cif (bh) {
bh364fs/xiafs/bitmap.csum += count_zone(bh);
bh374fs/xiafs/bitmap.cstruct buffer_head * bh;
bh381fs/xiafs/bitmap.cbh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
bh382fs/xiafs/bitmap.cif (bh) {
bh383fs/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);
bh110fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
bh112fs/xiafs/dir.cbrelse(bh);
bh190fs/xiafs/file.cstruct buffer_head * bh;
bh211fs/xiafs/file.cbh = xiafs_getblk(inode, pos >> XIAFS_ZSIZE_BITS(inode->i_sb), 1);
bh212fs/xiafs/file.cif (!bh) {
bh220fs/xiafs/file.cif (c != XIAFS_ZSIZE(inode->i_sb) && !bh->b_uptodate) {
bh221fs/xiafs/file.cll_rw_block(READ, 1, &bh);
bh222fs/xiafs/file.cwait_on_buffer(bh);
bh223fs/xiafs/file.cif (!bh->b_uptodate) {
bh224fs/xiafs/file.cbrelse(bh);
bh230fs/xiafs/file.ccp = (pos & (XIAFS_ZSIZE(inode->i_sb)-1)) + bh->b_data;
bh239fs/xiafs/file.cbh->b_uptodate = 1;
bh240fs/xiafs/file.cbh->b_dirt = 1;
bh241fs/xiafs/file.cbrelse(bh);
bh61fs/xiafs/inode.cstruct buffer_head *bh;
bh67fs/xiafs/inode.cif (!(bh = bread(dev, 0, BLOCK_SIZE))) {
bh73fs/xiafs/inode.csp = (struct xiafs_super_block *) bh->b_data;
bh78fs/xiafs/inode.cbrelse(bh);
bh93fs/xiafs/inode.cbrelse(bh);
bh160fs/xiafs/inode.cstatic int zone_bmap(struct buffer_head * bh, int nr)
bh164fs/xiafs/inode.cif (!bh)
bh166fs/xiafs/inode.ctmp = ((u_long *) bh->b_data)[nr];
bh167fs/xiafs/inode.cbrelse(bh);
bh250fs/xiafs/inode.cindt_getblk(struct inode * inode, struct buffer_head * bh, 
bh257fs/xiafs/inode.cif (!bh)
bh259fs/xiafs/inode.cif (!bh->b_uptodate) {
bh260fs/xiafs/inode.cll_rw_block(READ, 1, &bh);
bh261fs/xiafs/inode.cwait_on_buffer(bh);
bh262fs/xiafs/inode.cif (!bh->b_uptodate) {
bh263fs/xiafs/inode.cbrelse(bh);
bh267fs/xiafs/inode.clp = nr + (u_long *) bh->b_data;
bh270fs/xiafs/inode.cresult = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb));
bh272fs/xiafs/inode.cbrelse(bh);
bh279fs/xiafs/inode.cbrelse(bh);
bh284fs/xiafs/inode.cbrelse(bh);
bh287fs/xiafs/inode.cresult = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb));
bh295fs/xiafs/inode.cbh->b_dirt = 1;
bh296fs/xiafs/inode.cbrelse(bh);
bh302fs/xiafs/inode.cstruct buffer_head * bh;
bh320fs/xiafs/inode.cbh = dt_getblk(inode, &(inode->u.xiafs_i.i_ind_zone), create, prev_addr);
bh321fs/xiafs/inode.cbh = indt_getblk(inode, bh, zone, create, prev_addr);
bh322fs/xiafs/inode.creturn bh;
bh325fs/xiafs/inode.cbh = dt_getblk(inode, &(inode->u.xiafs_i.i_dind_zone), create, prev_addr);
bh326fs/xiafs/inode.cbh = indt_getblk(inode, bh, zone>>XIAFS_ADDRS_PER_Z_BITS(inode->i_sb), 
bh328fs/xiafs/inode.cbh = indt_getblk(inode, bh, zone&(XIAFS_ADDRS_PER_Z(inode->i_sb)-1), 
bh330fs/xiafs/inode.creturn bh;
bh335fs/xiafs/inode.cstruct buffer_head * bh;
bh337fs/xiafs/inode.cbh = xiafs_getblk(inode, zone, create);
bh338fs/xiafs/inode.cif (!bh || bh->b_uptodate)
bh339fs/xiafs/inode.creturn bh;
bh340fs/xiafs/inode.cll_rw_block(READ, 1, &bh);
bh341fs/xiafs/inode.cwait_on_buffer(bh);
bh342fs/xiafs/inode.cif (bh->b_uptodate)
bh343fs/xiafs/inode.creturn bh;
bh344fs/xiafs/inode.cbrelse(bh);
bh350fs/xiafs/inode.cstruct buffer_head * bh;
bh365fs/xiafs/inode.cif (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) {
bh369fs/xiafs/inode.craw_inode = ((struct xiafs_inode *) bh->b_data) + 
bh390fs/xiafs/inode.cbrelse(bh);
bh407fs/xiafs/inode.cstruct buffer_head * bh;
bh427fs/xiafs/inode.cif (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) {
bh432fs/xiafs/inode.craw_inode = ((struct xiafs_inode *)bh->b_data) +
bh455fs/xiafs/inode.cbh->b_dirt=1;
bh456fs/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);
bh315fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh316fs/xiafs/namei.cif (!bh) {
bh324fs/xiafs/namei.cbh->b_dirt = 1;
bh325fs/xiafs/namei.cbrelse(bh);
bh334fs/xiafs/namei.cstruct buffer_head * bh, *dir_block;
bh337fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
bh338fs/xiafs/namei.cif (bh) {
bh339fs/xiafs/namei.cbrelse(bh);
bh380fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh381fs/xiafs/namei.cif (!bh) {
bh388fs/xiafs/namei.cbh->b_dirt = 1;
bh393fs/xiafs/namei.cbrelse(bh);
bh403fs/xiafs/namei.cstruct buffer_head * bh;
bh413fs/xiafs/namei.cbh =  xiafs_bread(inode, i, 0);
bh415fs/xiafs/namei.cif (!bh) {
bh419fs/xiafs/namei.cde=(struct xiafs_direct *)bh->b_data;
bh423fs/xiafs/namei.cbrelse(bh);
bh426fs/xiafs/namei.cde=(struct xiafs_direct *)(12 + bh->b_data);
bh429fs/xiafs/namei.cbrelse(bh);
bh436fs/xiafs/namei.cif (!bh)
bh439fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
bh442fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) ||
bh446fs/xiafs/namei.cbrelse(bh);
bh450fs/xiafs/namei.cbrelse(bh);
bh455fs/xiafs/namei.cbrelse(bh);
bh484fs/xiafs/namei.cstruct buffer_head * bh;
bh488fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
bh490fs/xiafs/namei.cif (!bh)
bh517fs/xiafs/namei.cbh->b_dirt = 1;
bh527fs/xiafs/namei.cbrelse(bh);
bh535fs/xiafs/namei.cstruct buffer_head * bh;
bh541fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
bh542fs/xiafs/namei.cif (!bh)
bh548fs/xiafs/namei.cbrelse(bh);
bh565fs/xiafs/namei.cbh->b_dirt = 1;
bh572fs/xiafs/namei.cbrelse(bh);
bh583fs/xiafs/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh587fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len, &de, NULL);
bh588fs/xiafs/namei.cif (bh) {
bh589fs/xiafs/namei.cbrelse(bh);
bh614fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh615fs/xiafs/namei.cif (!bh) {
bh623fs/xiafs/namei.cbh->b_dirt = 1;
bh624fs/xiafs/namei.cbrelse(bh);
bh634fs/xiafs/namei.cstruct buffer_head * bh;
bh646fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, NULL);
bh647fs/xiafs/namei.cif (bh) {
bh648fs/xiafs/namei.cbrelse(bh);
bh653fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
bh654fs/xiafs/namei.cif (!bh) {
bh660fs/xiafs/namei.cbh->b_dirt = 1;
bh661fs/xiafs/namei.cbrelse(bh);
bh49fs/xiafs/symlink.cstruct buffer_head * bh;
bh59fs/xiafs/symlink.cbh = xiafs_bread(inode, 0, 0);
bh65fs/xiafs/symlink.cif (!bh)
bh67fs/xiafs/symlink.cfor (i=0; i < buflen && (c=bh->b_data[i]); i++)
bh71fs/xiafs/symlink.cbrelse(bh);
bh79fs/xiafs/symlink.cstruct buffer_head * bh;
bh104fs/xiafs/symlink.cif (!(bh = xiafs_bread(inode, 0, 0))) {
bh111fs/xiafs/symlink.cerror = open_namei(bh->b_data,flag,mode,res_inode,dir);
bh113fs/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)
bh66fs/xiafs/truncate.cbrelse(bh);
bh76fs/xiafs/truncate.cstruct buffer_head * bh, * ind_bh;
bh99fs/xiafs/truncate.cbh = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb));
bh101fs/xiafs/truncate.cbrelse(bh);
bh104fs/xiafs/truncate.cif ((bh && bh->b_count != 1) || tmp != *indp)
bh112fs/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);
bh115include/linux/msdos_fs.hstruct buffer_head *bh;
bh117include/linux/msdos_fs.hif (!(bh = bread(dev,sector >> 1, 1024)))
bh119include/linux/msdos_fs.h*start = bh->b_data+((sector & 1) << SECTOR_BITS);
bh120include/linux/msdos_fs.hreturn bh;
bh136include/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;
bh199kernel/blk_drv/blk.hextern inline void unlock_buffer(struct buffer_head * bh)
bh201kernel/blk_drv/blk.hif (!bh->b_lock)
bh203kernel/blk_drv/blk.hbh->b_lock=0;
bh204kernel/blk_drv/blk.hwake_up(&bh->b_wait);
bh212kernel/blk_drv/blk.hstruct buffer_head * bh;
bh226kernel/blk_drv/blk.hif ((bh = req->bh) != NULL) {
bh227kernel/blk_drv/blk.hreq->bh = bh->b_reqnext;
bh228kernel/blk_drv/blk.hbh->b_reqnext = NULL;
bh229kernel/blk_drv/blk.hbh->b_uptodate = uptodate;
bh230kernel/blk_drv/blk.hunlock_buffer(bh);
bh231kernel/blk_drv/blk.hif ((bh = req->bh) != NULL) {
bh232kernel/blk_drv/blk.hreq->current_nr_sectors = bh->b_size >> 9;
bh237kernel/blk_drv/blk.hreq->buffer = bh->b_data;
bh267kernel/blk_drv/blk.hif (CURRENT->bh) { \
bh268kernel/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);
bh441kernel/blk_drv/scsi/scsi.hstruct buffer_head * bh;
bh452kernel/blk_drv/scsi/scsi.hif ((bh = req->bh) != NULL) {
bh453kernel/blk_drv/scsi/scsi.hreq->bh = bh->b_reqnext;
bh454kernel/blk_drv/scsi/scsi.hreq->nr_sectors -= bh->b_size >> 9;
bh455kernel/blk_drv/scsi/scsi.hreq->sector += bh->b_size >> 9;
bh456kernel/blk_drv/scsi/scsi.hbh->b_reqnext = NULL;
bh457kernel/blk_drv/scsi/scsi.hbh->b_uptodate = uptodate;
bh458kernel/blk_drv/scsi/scsi.hunlock_buffer(bh);
bh459kernel/blk_drv/scsi/scsi.hsectors -= bh->b_size >> 9;
bh460kernel/blk_drv/scsi/scsi.hif ((bh = req->bh) != NULL) {
bh461kernel/blk_drv/scsi/scsi.hreq->current_nr_sectors = bh->b_size >> 9;
bh468kernel/blk_drv/scsi/scsi.h} while(sectors && bh);
bh469kernel/blk_drv/scsi/scsi.hif (req->bh){
bh470kernel/blk_drv/scsi/scsi.hreq->buffer = bh->b_data;
bh498kernel/blk_drv/scsi/scsi.hif (CURRENT->bh) { \
bh499kernel/blk_drv/scsi/scsi.hif (!CURRENT->bh->b_lock) \
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)
bh449kernel/blk_drv/scsi/sd.cif (!SCpnt->request.bh || 
bh480kernel/blk_drv/scsi/sd.cstruct buffer_head * bh;
bh483kernel/blk_drv/scsi/sd.cbh = SCpnt->request.bh;
bh487kernel/blk_drv/scsi/sd.cwhile(bh && count < scsi_hosts[SCpnt->host].sg_tablesize) {
bh488kernel/blk_drv/scsi/sd.cif ((this_count + (bh->b_size >> 9)) > this_count_max) break;
bh489kernel/blk_drv/scsi/sd.cthis_count += (bh->b_size >> 9);
bh491kernel/blk_drv/scsi/sd.cbh = bh->b_reqnext;
bh507kernel/blk_drv/scsi/sd.cbh = SCpnt->request.bh;
bh508kernel/blk_drv/scsi/sd.cfor(count = 0, bh = SCpnt->request.bh; count < SCpnt->use_sg; 
bh509kernel/blk_drv/scsi/sd.ccount++, bh = bh->b_reqnext) {
bh510kernel/blk_drv/scsi/sd.csgpnt[count].address = bh->b_data;
bh512kernel/blk_drv/scsi/sd.csgpnt[count].length = bh->b_size;
bh519kernel/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)
bh416kernel/blk_drv/scsi/sr.cstruct buffer_head * bh;
bh419kernel/blk_drv/scsi/sr.cbh = SCpnt->request.bh;
bh427kernel/blk_drv/scsi/sr.cwhile(bh && count < scsi_hosts[SCpnt->host].sg_tablesize) {
bh428kernel/blk_drv/scsi/sr.cif ((this_count + (bh->b_size >> 9)) > this_count_max) break;
bh429kernel/blk_drv/scsi/sr.cthis_count += (bh->b_size >> 9);
bh431kernel/blk_drv/scsi/sr.cbh = bh->b_reqnext;
bh457kernel/blk_drv/scsi/sr.cbh = SCpnt->request.bh;
bh466kernel/blk_drv/scsi/sr.cfor(bh = SCpnt->request.bh; count < SCpnt->use_sg; 
bh467kernel/blk_drv/scsi/sr.ccount++, bh = bh->b_reqnext) {
bh468kernel/blk_drv/scsi/sr.cif (bh) { /* Need a placeholder at the end of the record? */
bh469kernel/blk_drv/scsi/sr.csgpnt[count].address = bh->b_data;
bh470kernel/blk_drv/scsi/sr.csgpnt[count].length = bh->b_size;
bh524kernel/blk_drv/scsi/sr.cif (!SCpnt->request.bh)    
bh527kernel/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);