taglinefilesource code
bh23fs/block_dev.cstruct buffer_head * bh;
bh38fs/block_dev.cbh = getblk(dev, block, BLOCK_SIZE);
bh40fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
bh42fs/block_dev.cif (!bh)
bh44fs/block_dev.cp = offset + bh->b_data;
bh52fs/block_dev.cbh->b_uptodate = 1;
bh53fs/block_dev.cbh->b_dirt = 1;
bh54fs/block_dev.cbrelse(bh);
bh67fs/block_dev.cstruct buffer_head * bh;
bh81fs/block_dev.cif (!(bh = breada(dev,block,block+1,block+2,-1)))
bh84fs/block_dev.cp = offset + bh->b_data;
bh92fs/block_dev.cbrelse(bh);
bh39fs/buffer.cstatic inline void wait_on_buffer(struct buffer_head * bh)
bh42fs/buffer.cwhile (bh->b_lock)
bh43fs/buffer.csleep_on(&bh->b_wait);
bh50fs/buffer.cstruct buffer_head * bh;
bh52fs/buffer.cbh = free_list;
bh53fs/buffer.cfor (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) {
bh54fs/buffer.cif (bh->b_lock)
bh56fs/buffer.cif (!bh->b_dirt)
bh58fs/buffer.cll_rw_block(WRITE,bh);
bh93fs/buffer.cstruct buffer_head * bh;
bh95fs/buffer.cbh = free_list;
bh96fs/buffer.cfor (i = nr_buffers*2 ; --i > 0 ; bh = bh->b_next_free) {
bh97fs/buffer.cif (bh->b_dev != dev)
bh99fs/buffer.cwait_on_buffer(bh);
bh100fs/buffer.cif (bh->b_dev == dev)
bh101fs/buffer.cbh->b_uptodate = bh->b_dirt = 0;
bh122fs/buffer.cstruct buffer_head * bh;
bh126fs/buffer.cif (!(bh = getblk(dev,0,1024)))
bh128fs/buffer.ci = floppy_change(bh);
bh129fs/buffer.cbrelse(bh);
bh142fs/buffer.cstatic inline void remove_from_hash_queue(struct buffer_head * bh)
bh144fs/buffer.cif (bh->b_next)
bh145fs/buffer.cbh->b_next->b_prev = bh->b_prev;
bh146fs/buffer.cif (bh->b_prev)
bh147fs/buffer.cbh->b_prev->b_next = bh->b_next;
bh148fs/buffer.cif (hash(bh->b_dev,bh->b_blocknr) == bh)
bh149fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh->b_next;
bh150fs/buffer.cbh->b_next = bh->b_prev = NULL;
bh153fs/buffer.cstatic inline void remove_from_free_list(struct buffer_head * bh)
bh155fs/buffer.cif (!(bh->b_prev_free) || !(bh->b_next_free))
bh157fs/buffer.cbh->b_prev_free->b_next_free = bh->b_next_free;
bh158fs/buffer.cbh->b_next_free->b_prev_free = bh->b_prev_free;
bh159fs/buffer.cif (free_list == bh)
bh160fs/buffer.cfree_list = bh->b_next_free;
bh161fs/buffer.cbh->b_next_free = bh->b_prev_free = NULL;
bh164fs/buffer.cstatic inline void remove_from_queues(struct buffer_head * bh)
bh166fs/buffer.cremove_from_hash_queue(bh);
bh167fs/buffer.cremove_from_free_list(bh);
bh170fs/buffer.cstatic inline void put_first_free(struct buffer_head * bh)
bh172fs/buffer.cif (!bh || (bh == free_list))
bh174fs/buffer.cremove_from_free_list(bh);
bh176fs/buffer.cbh->b_next_free = free_list;
bh177fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh178fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh179fs/buffer.cfree_list->b_prev_free = bh;
bh180fs/buffer.cfree_list = bh;
bh183fs/buffer.cstatic inline void put_last_free(struct buffer_head * bh)
bh185fs/buffer.cif (!bh)
bh187fs/buffer.cif (bh == free_list) {
bh188fs/buffer.cfree_list = bh->b_next_free;
bh191fs/buffer.cremove_from_free_list(bh);
bh193fs/buffer.cbh->b_next_free = free_list;
bh194fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh195fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh196fs/buffer.cfree_list->b_prev_free = bh;
bh199fs/buffer.cstatic inline void insert_into_queues(struct buffer_head * bh)
bh202fs/buffer.cbh->b_next_free = free_list;
bh203fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh204fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh205fs/buffer.cfree_list->b_prev_free = bh;
bh207fs/buffer.cbh->b_prev = NULL;
bh208fs/buffer.cbh->b_next = NULL;
bh209fs/buffer.cif (!bh->b_dev)
bh211fs/buffer.cbh->b_next = hash(bh->b_dev,bh->b_blocknr);
bh212fs/buffer.chash(bh->b_dev,bh->b_blocknr) = bh;
bh213fs/buffer.cif (bh->b_next)
bh214fs/buffer.cbh->b_next->b_prev = bh;
bh241fs/buffer.cstruct buffer_head * bh;
bh244fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
bh246fs/buffer.cbh->b_count++;
bh247fs/buffer.cwait_on_buffer(bh);
bh248fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) {
bh249fs/buffer.cput_last_free(bh);
bh250fs/buffer.creturn bh;
bh252fs/buffer.cbh->b_count--;
bh266fs/buffer.c#define BADNESS(bh) (((bh)->b_dirt<<1)+(bh)->b_lock)
bh269fs/buffer.cstruct buffer_head * bh, * tmp;
bh273fs/buffer.cif (bh = get_hash_table(dev, block, size))
bh274fs/buffer.creturn bh;
bh280fs/buffer.cbh = NULL;
bh285fs/buffer.cif (!bh || BADNESS(tmp)<BADNESS(bh)) {
bh286fs/buffer.cbh = tmp;
bh296fs/buffer.cif (!bh && nr_free_pages > 5) {
bh302fs/buffer.cif (!bh) {
bh306fs/buffer.cwait_on_buffer(bh);
bh307fs/buffer.cif (bh->b_count || bh->b_size != size)
bh309fs/buffer.cif (bh->b_dirt) {
bh310fs/buffer.csync_buffers(bh->b_dev);
bh319fs/buffer.cbh->b_count=1;
bh320fs/buffer.cbh->b_dirt=0;
bh321fs/buffer.cbh->b_uptodate=0;
bh322fs/buffer.cremove_from_queues(bh);
bh323fs/buffer.cbh->b_dev=dev;
bh324fs/buffer.cbh->b_blocknr=block;
bh325fs/buffer.cinsert_into_queues(bh);
bh326fs/buffer.creturn bh;
bh345fs/buffer.cstruct buffer_head * bh;
bh347fs/buffer.cif (!(bh = getblk(dev, block, size))) {
bh351fs/buffer.cif (bh->b_uptodate)
bh352fs/buffer.creturn bh;
bh353fs/buffer.cll_rw_block(READ,bh);
bh354fs/buffer.cwait_on_buffer(bh);
bh355fs/buffer.cif (bh->b_uptodate)
bh356fs/buffer.creturn bh;
bh357fs/buffer.cbrelse(bh);
bh376fs/buffer.cstruct buffer_head * bh[4];
bh381fs/buffer.cif (bh[i] = getblk(dev, b[i], 1024))
bh382fs/buffer.cif (!bh[i]->b_uptodate)
bh383fs/buffer.cll_rw_block(READ,bh[i]);
bh385fs/buffer.cbh[i] = NULL;
bh387fs/buffer.cif (bh[i]) {
bh388fs/buffer.cwait_on_buffer(bh[i]);
bh389fs/buffer.cif (bh[i]->b_uptodate)
bh390fs/buffer.cCOPYBLK((unsigned long) bh[i]->b_data,address);
bh391fs/buffer.cbrelse(bh[i]);
bh403fs/buffer.cstruct buffer_head * bh, *tmp;
bh406fs/buffer.cif (!(bh = getblk(dev, first, 1024))) {
bh410fs/buffer.cif (!bh->b_uptodate)
bh411fs/buffer.cll_rw_block(READ,bh);
bh421fs/buffer.cwait_on_buffer(bh);
bh422fs/buffer.cif (bh->b_uptodate)
bh423fs/buffer.creturn bh;
bh424fs/buffer.cbrelse(bh);
bh428fs/buffer.cstatic void put_unused_buffer_head(struct buffer_head * bh)
bh430fs/buffer.cmemset((void *) bh,0,sizeof(*bh));
bh431fs/buffer.cbh->b_next_free = unused_list;
bh432fs/buffer.cunused_list = bh;
bh438fs/buffer.cstruct buffer_head * bh;
bh445fs/buffer.cbh = (struct buffer_head *) page;
bh446fs/buffer.cwhile ((unsigned long) (bh+1) <= page+4096) {
bh447fs/buffer.cput_unused_buffer_head(bh);
bh448fs/buffer.cbh++;
bh455fs/buffer.cstruct buffer_head * bh;
bh460fs/buffer.cbh = unused_list;
bh461fs/buffer.cunused_list = bh->b_next_free;
bh462fs/buffer.cbh->b_next_free = NULL;
bh463fs/buffer.cbh->b_data = NULL;
bh464fs/buffer.cbh->b_size = 0;
bh465fs/buffer.creturn bh;
bh478fs/buffer.cstruct buffer_head *bh, *tmp;
bh490fs/buffer.cbh = get_unused_buffer_head();
bh491fs/buffer.cif (!bh)
bh493fs/buffer.cbh->b_this_page = tmp;
bh494fs/buffer.ctmp = bh;
bh495fs/buffer.cbh->b_data = (char * ) (page+i);
bh496fs/buffer.cbh->b_size = size;
bh499fs/buffer.ctmp = bh;
bh512fs/buffer.ctmp->b_this_page = bh;
bh518fs/buffer.cbh = tmp;
bh519fs/buffer.cwhile (bh) {
bh520fs/buffer.ctmp = bh;
bh521fs/buffer.cbh = bh->b_this_page;
bh531fs/buffer.cstatic int try_to_free(struct buffer_head * bh)
bh536fs/buffer.ctmp = bh;
bh543fs/buffer.c} while (tmp != bh);
bh544fs/buffer.cpage = (unsigned long) bh->b_data;
bh546fs/buffer.ctmp = bh;
bh553fs/buffer.c} while (tmp != bh);
bh563fs/buffer.cstruct buffer_head *bh;
bh566fs/buffer.cbh = free_list;
bh567fs/buffer.cfor (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) {
bh568fs/buffer.cwait_on_buffer(bh);
bh569fs/buffer.cif (bh->b_count || !bh->b_this_page)
bh571fs/buffer.cif (bh->b_dirt) {
bh572fs/buffer.cll_rw_block(WRITEA,bh);
bh575fs/buffer.cif (try_to_free(bh))
bh592fs/buffer.cstruct buffer_head * bh;
bh611fs/buffer.cbh = get_unused_buffer_head();
bh612fs/buffer.cif (!bh)
bh614fs/buffer.cbh->b_data = (char *) mem;
bh615fs/buffer.cbh->b_size = BLOCK_SIZE;
bh617fs/buffer.cbh->b_next_free = free_list;
bh618fs/buffer.cbh->b_prev_free = free_list->b_prev_free;
bh619fs/buffer.cfree_list->b_prev_free->b_next_free = bh;
bh620fs/buffer.cfree_list->b_prev_free = bh;
bh621fs/buffer.cfree_list = bh;
bh170fs/exec.cstruct buffer_head * bh;
bh187fs/exec.cif (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) {
bh195fs/exec.cex = *(struct exec *) bh->b_data;
bh196fs/exec.cbrelse(bh);
bh356fs/exec.cstruct buffer_head *bh;
bh367fs/exec.cif (!(bh = bread(inode->i_dev, blkno, block_size)))
bh373fs/exec.cmemcpy_tofs(dest, (blk ? bh->b_data :
bh374fs/exec.cbh->b_data + sizeof(struct exec)), n);
bh375fs/exec.cbrelse(bh);
bh394fs/exec.cstruct buffer_head * bh;
bh450fs/exec.cif (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) {
bh458fs/exec.cex = *((struct exec *) bh->b_data);  /* read exec-header */
bh459fs/exec.cif ((bh->b_data[0] == '#') && (bh->b_data[1] == '!') && (!sh_bang)) {
bh468fs/exec.cstrncpy(buf, bh->b_data+2, 127);
bh469fs/exec.cbrelse(bh);
bh531fs/exec.cbrelse(bh);
bh62fs/ext/bitmap.cstruct buffer_head *bh;
bh65fs/ext/bitmap.cif (!(bh=map[i])) 
bh74fs/ext/bitmap.ctmp = bh->b_data[end] & ((1<<numbits)-1);
bh79fs/ext/bitmap.csum += nibblemap[bh->b_data[j] & 0xf] 
bh80fs/ext/bitmap.c+ nibblemap[(bh->b_data[j]>>4)&0xf];
bh88fs/ext/bitmap.cstruct buffer_head * bh;
bh95fs/ext/bitmap.cbh = get_hash_table(dev,block);
bh96fs/ext/bitmap.cif (bh) {
bh97fs/ext/bitmap.cif (bh->b_count > 1) {
bh98fs/ext/bitmap.cbrelse(bh);
bh101fs/ext/bitmap.cbh->b_dirt=0;
bh102fs/ext/bitmap.cbh->b_uptodate=0;
bh103fs/ext/bitmap.cif (bh->b_count)
bh104fs/ext/bitmap.cbrelse(bh);
bh109fs/ext/bitmap.cbh = sb->s_zmap[zone];
bh110fs/ext/bitmap.cif (clear_bit(bit,bh->b_data))
bh112fs/ext/bitmap.cbh->b_dirt = 1;
bh118fs/ext/bitmap.cstruct buffer_head * bh;
bh126fs/ext/bitmap.cif (bh=sb->s_zmap[i])
bh127fs/ext/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh129fs/ext/bitmap.cif (i>=8 || !bh || j>=8192)
bh131fs/ext/bitmap.cif (set_bit(j,bh->b_data))
bh133fs/ext/bitmap.cbh->b_dirt = 1;
bh137fs/ext/bitmap.cif (!(bh=getblk(dev,j)))
bh139fs/ext/bitmap.cif (bh->b_count != 1)
bh141fs/ext/bitmap.cclear_block(bh->b_data);
bh142fs/ext/bitmap.cbh->b_uptodate = 1;
bh143fs/ext/bitmap.cbh->b_dirt = 1;
bh144fs/ext/bitmap.cbrelse(bh);
bh159fs/ext/bitmap.cstruct buffer_head * bh;
bh183fs/ext/bitmap.cif (!(bh=inode->i_sb->s_imap[inode->i_ino>>13])) {
bh187fs/ext/bitmap.cif (clear_bit(inode->i_ino&8191,bh->b_data))
bh189fs/ext/bitmap.cbh->b_dirt = 1;
bh196fs/ext/bitmap.cstruct buffer_head * bh;
bh209fs/ext/bitmap.cif (bh=inode->i_sb->s_imap[i])
bh210fs/ext/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh212fs/ext/bitmap.cif (!bh || j >= 8192 || j+i*8192 > inode->i_sb->s_ninodes) {
bh216fs/ext/bitmap.cif (set_bit(j,bh->b_data)) {  /* shouldn't happen */
bh221fs/ext/bitmap.cbh->b_dirt = 1;
bh60fs/ext/dir.cstruct buffer_head * bh;
bh70fs/ext/dir.cif (!block || !(bh = bread(inode->i_dev, block, BLOCK_SIZE))) {
bh74fs/ext/dir.cde = (struct ext_dir_entry *) (offset + bh->b_data);
bh88fs/ext/dir.cbrelse(bh);
bh95fs/ext/dir.cbrelse(bh);
bh68fs/ext/file.cstatic inline void wait_on_buffer(struct buffer_head * bh)
bh71fs/ext/file.cwhile (bh->b_lock)
bh72fs/ext/file.csleep_on(&bh->b_wait);
bh164fs/ext/file.cstruct buffer_head * bh;
bh194fs/ext/file.cbh = getblk(inode->i_dev, block, BLOCK_SIZE);
bh196fs/ext/file.cbh = bread(inode->i_dev, block, BLOCK_SIZE);
bh197fs/ext/file.cif (!bh) {
bh202fs/ext/file.cp = (pos % BLOCK_SIZE) + bh->b_data;
bh211fs/ext/file.cbh->b_uptodate = 1;
bh212fs/ext/file.cbh->b_dirt = 1;
bh213fs/ext/file.cbrelse(bh);
bh52fs/ext/freelists.cstruct buffer_head * bh;
bh60fs/ext/freelists.cbh = get_hash_table(dev, block, sb->s_blocksize);
bh61fs/ext/freelists.cif (bh) {
bh62fs/ext/freelists.cif (bh->b_count > 1) {
bh63fs/ext/freelists.cbrelse(bh);
bh67fs/ext/freelists.cbh->b_dirt=0;
bh68fs/ext/freelists.cbh->b_uptodate=0;
bh69fs/ext/freelists.cif (bh->b_count)
bh70fs/ext/freelists.cbrelse(bh);
bh98fs/ext/freelists.cstruct buffer_head * bh;
bh133fs/ext/freelists.cif (!(bh=getblk(dev, j, sb->s_blocksize)))
bh135fs/ext/freelists.cif (bh->b_count != 1)
bh137fs/ext/freelists.cclear_block(bh->b_data);
bh138fs/ext/freelists.cbh->b_uptodate = 1;
bh139fs/ext/freelists.cbh->b_dirt = 1;
bh140fs/ext/freelists.cbrelse(bh);
bh151fs/ext/freelists.cstruct buffer_head * bh;
bh163fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
bh167fs/ext/freelists.cefb = (struct ext_free_block *) bh->b_data;
bh170fs/ext/freelists.cbrelse (bh);
bh185fs/ext/freelists.cstruct buffer_head * bh;
bh223fs/ext/freelists.cif (!(bh = bread(inode->i_dev, block, inode->i_sb->s_blocksize)))
bh225fs/ext/freelists.cefi = ((struct ext_free_inode *) bh->b_data) +
bh230fs/ext/freelists.cinode->i_sb->u.ext_sb.s_imap[1] = bh;
bh304fs/ext/freelists.cstruct buffer_head * bh;
bh323fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
bh327fs/ext/freelists.cefi = ((struct ext_free_inode *) bh->b_data) +
bh331fs/ext/freelists.cbrelse (bh);
bh67fs/ext/inode.cstruct buffer_head *bh;
bh75fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
bh83fs/ext/inode.ces = (struct ext_super_block *) bh->b_data;
bh101fs/ext/inode.cbrelse(bh);
bh176fs/ext/inode.cstruct buffer_head * bh;
bh182fs/ext/inode.cif (!(bh = bread(sb->s_dev, 1, BLOCK_SIZE))) {
bh186fs/ext/inode.ces = (struct ext_super_block *) bh->b_data;
bh191fs/ext/inode.cbh->b_dirt = 1;
bh192fs/ext/inode.cbrelse (bh);
bh214fs/ext/inode.cstruct buffer_head * bh;
bh242fs/ext/inode.cif (!(bh = bread(inode->i_dev, inode->i_data[9], BLOCK_SIZE)))
bh244fs/ext/inode.ci = ((unsigned long *) (bh->b_data))[block];
bh247fs/ext/inode.c((unsigned long *) (bh->b_data))[block]=i;
bh248fs/ext/inode.cbh->b_dirt=1;
bh250fs/ext/inode.cbrelse(bh);
bh262fs/ext/inode.cif (!(bh=bread(inode->i_dev, inode->i_data[10], BLOCK_SIZE)))
bh264fs/ext/inode.ci = ((unsigned long *)bh->b_data)[block>>8];
bh267fs/ext/inode.c((unsigned long *) (bh->b_data))[block>>8]=i;
bh268fs/ext/inode.cbh->b_dirt=1;
bh270fs/ext/inode.cbrelse(bh);
bh273fs/ext/inode.cif (!(bh=bread(inode->i_dev, i, BLOCK_SIZE)))
bh275fs/ext/inode.ci = ((unsigned long *)bh->b_data)[block&255];
bh278fs/ext/inode.c((unsigned long *) (bh->b_data))[block&255]=i;
bh279fs/ext/inode.cbh->b_dirt=1;
bh281fs/ext/inode.cbrelse(bh);
bh291fs/ext/inode.cif (!(bh = bread(inode->i_dev, inode->i_data[11], BLOCK_SIZE)))
bh293fs/ext/inode.ci = ((unsigned long *) bh->b_data)[block >> 16];
bh296fs/ext/inode.c((unsigned long *) bh->b_data)[block >> 16] = i;
bh297fs/ext/inode.cbh->b_dirt = 1;
bh299fs/ext/inode.cbrelse (bh);
bh302fs/ext/inode.cif (!(bh = bread(inode->i_dev, i, BLOCK_SIZE)))
bh304fs/ext/inode.ci = ((unsigned long *) bh->b_data)[(block >> 8) & 255];
bh307fs/ext/inode.c((unsigned long *) bh->b_data)[(block >> 8) & 255] = i;
bh308fs/ext/inode.cbh->b_dirt = 1;
bh310fs/ext/inode.cbrelse (bh);
bh313fs/ext/inode.cif (!(bh = bread(inode->i_dev, i, BLOCK_SIZE)))
bh315fs/ext/inode.ci = ((unsigned long *) bh->b_data)[block & 255];
bh318fs/ext/inode.c((unsigned long *) bh->b_data)[block & 255] = i;
bh319fs/ext/inode.cbh->b_dirt = 1;
bh321fs/ext/inode.cbrelse (bh);
bh340fs/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) +
bh365fs/ext/inode.cbrelse(bh);
bh388fs/ext/inode.cstruct buffer_head * bh;
bh399fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh401fs/ext/inode.craw_inode = ((struct ext_inode *)bh->b_data) +
bh413fs/ext/inode.cbh->b_dirt=1;
bh415fs/ext/inode.cbrelse(bh);
bh98fs/ext/namei.cstruct buffer_head * bh;
bh114fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
bh122fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh124fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data) {
bh125fs/ext/namei.cbrelse(bh);
bh126fs/ext/namei.cbh = NULL;
bh128fs/ext/namei.c!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
bh133fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh145fs/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;
bh218fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
bh223fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh225fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) {
bh229fs/ext/namei.cbrelse(bh);
bh230fs/ext/namei.cbh = NULL;
bh234fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
bh239fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh257fs/ext/namei.cbh->b_dirt = 1;
bh259fs/ext/namei.cbrelse (bh);
bh260fs/ext/namei.cbh = NULL;
bh267fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
bh269fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh296fs/ext/namei.cbh->b_dirt = 1;
bh298fs/ext/namei.creturn bh;
bh303fs/ext/namei.cbrelse(bh);
bh311fs/ext/namei.cstruct buffer_head * bh;
bh325fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh326fs/ext/namei.cif (!bh) {
bh334fs/ext/namei.cbh->b_dirt = 1;
bh335fs/ext/namei.cbrelse(bh);
bh344fs/ext/namei.cstruct buffer_head * bh;
bh349fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh350fs/ext/namei.cif (bh) {
bh351fs/ext/namei.cbrelse(bh);
bh384fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh385fs/ext/namei.cif (!bh) {
bh393fs/ext/namei.cbh->b_dirt = 1;
bh394fs/ext/namei.cbrelse(bh);
bh403fs/ext/namei.cstruct buffer_head * bh, *dir_block;
bh406fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh407fs/ext/namei.cif (bh) {
bh408fs/ext/namei.cbrelse(bh);
bh455fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh456fs/ext/namei.cif (!bh) {
bh463fs/ext/namei.cbh->b_dirt = 1;
bh468fs/ext/namei.cbrelse(bh);
bh480fs/ext/namei.cstruct buffer_head * bh;
bh485fs/ext/namei.c!(bh=bread(inode->i_dev, inode->i_data[0], BLOCK_SIZE))) {
bh489fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh500fs/ext/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
bh501fs/ext/namei.cbrelse(bh);
bh507fs/ext/namei.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh509fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
bh512fs/ext/namei.cbrelse(bh);
bh518fs/ext/namei.cbrelse(bh);
bh535fs/ext/namei.cstruct buffer_head * bh;
bh539fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
bh541fs/ext/namei.cif (!bh)
bh570fs/ext/namei.cbh->b_dirt = 1;
bh580fs/ext/namei.cbrelse(bh);
bh588fs/ext/namei.cstruct buffer_head * bh;
bh593fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
bh594fs/ext/namei.cif (!bh)
bh613fs/ext/namei.cbh->b_dirt = 1;
bh619fs/ext/namei.cbrelse(bh);
bh629fs/ext/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh662fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh663fs/ext/namei.cif (bh) {
bh667fs/ext/namei.cbrelse(bh);
bh671fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh672fs/ext/namei.cif (!bh) {
bh680fs/ext/namei.cbh->b_dirt = 1;
bh681fs/ext/namei.cbrelse(bh);
bh690fs/ext/namei.cstruct buffer_head * bh;
bh697fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
bh698fs/ext/namei.cif (bh) {
bh699fs/ext/namei.cbrelse(bh);
bh704fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
bh705fs/ext/namei.cif (!bh) {
bh711fs/ext/namei.cbh->b_dirt = 1;
bh712fs/ext/namei.cbrelse(bh);
bh49fs/ext/symlink.cstruct buffer_head * bh;
bh65fs/ext/symlink.c!(bh = bread(inode->i_dev, inode->i_data[0], BLOCK_SIZE))) {
bh73fs/ext/symlink.cinode = _namei(bh->b_data,dir,1);
bh76fs/ext/symlink.cbrelse(bh);
bh82fs/ext/symlink.cstruct buffer_head * bh;
bh93fs/ext/symlink.cbh = bread(inode->i_dev, inode->i_data[0], BLOCK_SIZE);
bh95fs/ext/symlink.cbh = NULL;
bh97fs/ext/symlink.cif (!bh)
bh100fs/ext/symlink.cwhile (i<buflen && (c = bh->b_data[i])) {
bh104fs/ext/symlink.cbrelse(bh);
bh55fs/ext/truncate.cstruct buffer_head * bh = NULL;
bh61fs/ext/truncate.cbh = bread(inode->i_dev, *p, BLOCK_SIZE);
bh62fs/ext/truncate.cif (!bh)
bh70fs/ext/truncate.cind = i+(unsigned long *) bh->b_data;
bh77fs/ext/truncate.cind = (unsigned long *) bh->b_data;
bh81fs/ext/truncate.cbrelse(bh);
bh93fs/ext/truncate.cstruct buffer_head * bh = NULL;
bh99fs/ext/truncate.cbh = bread(inode->i_dev, *p, BLOCK_SIZE);
bh100fs/ext/truncate.cif (!bh)
bh108fs/ext/truncate.cdind = i+(unsigned long *) bh->b_data;
bh113fs/ext/truncate.cdind = (unsigned long *) bh->b_data;
bh117fs/ext/truncate.cbrelse(bh);
bh129fs/ext/truncate.cstruct buffer_head * bh = NULL;
bh135fs/ext/truncate.cbh = bread(inode->i_dev, inode->i_data[11], BLOCK_SIZE);
bh136fs/ext/truncate.cif (!bh)
bh144fs/ext/truncate.ctind = i+(unsigned long *) bh->b_data;
bh149fs/ext/truncate.ctind = (unsigned long *) bh->b_data;
bh153fs/ext/truncate.cbrelse(bh);
bh53fs/minix/bitmap.cstruct buffer_head *bh;
bh56fs/minix/bitmap.cif (!(bh=map[i])) 
bh65fs/minix/bitmap.ctmp = bh->b_data[end] & ((1<<numbits)-1);
bh70fs/minix/bitmap.csum += nibblemap[bh->b_data[j] & 0xf] 
bh71fs/minix/bitmap.c+ nibblemap[(bh->b_data[j]>>4)&0xf];
bh79fs/minix/bitmap.cstruct buffer_head * bh;
bh86fs/minix/bitmap.cbh = get_hash_table(dev,block,BLOCK_SIZE);
bh87fs/minix/bitmap.cif (bh) {
bh88fs/minix/bitmap.cif (bh->b_count > 1) {
bh89fs/minix/bitmap.cbrelse(bh);
bh92fs/minix/bitmap.cbh->b_dirt=0;
bh93fs/minix/bitmap.cbh->b_uptodate=0;
bh94fs/minix/bitmap.cif (bh->b_count)
bh95fs/minix/bitmap.cbrelse(bh);
bh100fs/minix/bitmap.cbh = sb->u.minix_sb.s_zmap[zone];
bh101fs/minix/bitmap.cif (clear_bit(bit,bh->b_data))
bh103fs/minix/bitmap.cbh->b_dirt = 1;
bh109fs/minix/bitmap.cstruct buffer_head * bh;
bh117fs/minix/bitmap.cif (bh=sb->u.minix_sb.s_zmap[i])
bh118fs/minix/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh120fs/minix/bitmap.cif (i>=8 || !bh || j>=8192)
bh122fs/minix/bitmap.cif (set_bit(j,bh->b_data)) 
bh124fs/minix/bitmap.cbh->b_dirt = 1;
bh128fs/minix/bitmap.cif (!(bh=getblk(dev,j,BLOCK_SIZE)))
bh130fs/minix/bitmap.cif (bh->b_count != 1)
bh132fs/minix/bitmap.cclear_block(bh->b_data);
bh133fs/minix/bitmap.cbh->b_uptodate = 1;
bh134fs/minix/bitmap.cbh->b_dirt = 1;
bh135fs/minix/bitmap.cbrelse(bh);
bh147fs/minix/bitmap.cstruct buffer_head * bh;
bh171fs/minix/bitmap.cif (!(bh=inode->i_sb->u.minix_sb.s_imap[inode->i_ino>>13])) {
bh175fs/minix/bitmap.cif (clear_bit(inode->i_ino&8191,bh->b_data))
bh177fs/minix/bitmap.cbh->b_dirt = 1;
bh184fs/minix/bitmap.cstruct buffer_head * bh;
bh197fs/minix/bitmap.cif (bh=inode->i_sb->u.minix_sb.s_imap[i])
bh198fs/minix/bitmap.cif ((j=find_first_zero(bh->b_data))<8192)
bh200fs/minix/bitmap.cif (!bh || j >= 8192 || j+i*8192 > inode->i_sb->u.minix_sb.s_ninodes) {
bh204fs/minix/bitmap.cif (set_bit(j,bh->b_data)) {  /* shouldn't happen */
bh209fs/minix/bitmap.cbh->b_dirt = 1;
bh54fs/minix/dir.cstruct buffer_head * bh;
bh64fs/minix/dir.cif (!block || !(bh = bread(inode->i_dev,block,BLOCK_SIZE))) {
bh68fs/minix/dir.cde = (struct minix_dir_entry *) (offset + bh->b_data);
bh82fs/minix/dir.cbrelse(bh);
bh88fs/minix/dir.cbrelse(bh);
bh62fs/minix/file.cstatic inline void wait_on_buffer(struct buffer_head * bh)
bh65fs/minix/file.cwhile (bh->b_lock)
bh66fs/minix/file.csleep_on(&bh->b_wait);
bh164fs/minix/file.cstruct buffer_head * bh;
bh194fs/minix/file.cbh = getblk(inode->i_dev, block, BLOCK_SIZE);
bh196fs/minix/file.cbh = bread(inode->i_dev,block, BLOCK_SIZE);
bh197fs/minix/file.cif (!bh) {
bh202fs/minix/file.cp = (pos % BLOCK_SIZE) + bh->b_data;
bh211fs/minix/file.cbh->b_uptodate = 1;
bh212fs/minix/file.cbh->b_dirt = 1;
bh213fs/minix/file.cbrelse(bh);
bh51fs/minix/inode.cstruct buffer_head *bh;
bh56fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
bh62fs/minix/inode.cms = (struct minix_super_block *) bh->b_data;
bh72fs/minix/inode.cbrelse(bh);
bh135fs/minix/inode.cstruct buffer_head * bh;
bh163fs/minix/inode.cif (!(bh = bread(inode->i_dev,inode->i_data[7],BLOCK_SIZE)))
bh165fs/minix/inode.ci = ((unsigned short *) (bh->b_data))[block];
bh168fs/minix/inode.c((unsigned short *) (bh->b_data))[block]=i;
bh169fs/minix/inode.cbh->b_dirt=1;
bh171fs/minix/inode.cbrelse(bh);
bh182fs/minix/inode.cif (!(bh=bread(inode->i_dev,inode->i_data[8], BLOCK_SIZE)))
bh184fs/minix/inode.ci = ((unsigned short *)bh->b_data)[block>>9];
bh187fs/minix/inode.c((unsigned short *) (bh->b_data))[block>>9]=i;
bh188fs/minix/inode.cbh->b_dirt=1;
bh190fs/minix/inode.cbrelse(bh);
bh193fs/minix/inode.cif (!(bh=bread(inode->i_dev,i,BLOCK_SIZE)))
bh195fs/minix/inode.ci = ((unsigned short *)bh->b_data)[block&511];
bh198fs/minix/inode.c((unsigned short *) (bh->b_data))[block&511]=i;
bh199fs/minix/inode.cbh->b_dirt=1;
bh201fs/minix/inode.cbrelse(bh);
bh217fs/minix/inode.cstruct buffer_head * bh;
bh223fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE)))
bh225fs/minix/inode.craw_inode = ((struct minix_inode *) bh->b_data) +
bh237fs/minix/inode.cbrelse(bh);
bh260fs/minix/inode.cstruct buffer_head * bh;
bh266fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh268fs/minix/inode.craw_inode = ((struct minix_inode *)bh->b_data) +
bh280fs/minix/inode.cbh->b_dirt=1;
bh282fs/minix/inode.cbrelse(bh);
bh65fs/minix/namei.cstruct buffer_head * bh;
bh81fs/minix/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
bh84fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh86fs/minix/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data) {
bh87fs/minix/namei.cbrelse(bh);
bh88fs/minix/namei.cbh = NULL;
bh90fs/minix/namei.c!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
bh94fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh98fs/minix/namei.creturn bh;
bh103fs/minix/namei.cbrelse(bh);
bh112fs/minix/namei.cstruct buffer_head * bh;
bh121fs/minix/namei.cif (!(bh = minix_find_entry(dir,name,len,&de))) {
bh126fs/minix/namei.cbrelse(bh);
bh149fs/minix/namei.cstruct buffer_head * bh;
bh166fs/minix/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
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 = NULL;
bh177fs/minix/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
bh181fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh193fs/minix/namei.cbh->b_dirt = 1;
bh195fs/minix/namei.creturn bh;
bh200fs/minix/namei.cbrelse(bh);
bh208fs/minix/namei.cstruct buffer_head * bh;
bh222fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh223fs/minix/namei.cif (!bh) {
bh231fs/minix/namei.cbh->b_dirt = 1;
bh232fs/minix/namei.cbrelse(bh);
bh241fs/minix/namei.cstruct buffer_head * bh;
bh246fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh247fs/minix/namei.cif (bh) {
bh248fs/minix/namei.cbrelse(bh);
bh281fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh282fs/minix/namei.cif (!bh) {
bh290fs/minix/namei.cbh->b_dirt = 1;
bh291fs/minix/namei.cbrelse(bh);
bh300fs/minix/namei.cstruct buffer_head * bh, *dir_block;
bh303fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh304fs/minix/namei.cif (bh) {
bh305fs/minix/namei.cbrelse(bh);
bh343fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh344fs/minix/namei.cif (!bh) {
bh351fs/minix/namei.cbh->b_dirt = 1;
bh356fs/minix/namei.cbrelse(bh);
bh367fs/minix/namei.cstruct buffer_head * bh;
bh372fs/minix/namei.c!(bh=bread(inode->i_dev, inode->i_data[0], BLOCK_SIZE))) {
bh376fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh385fs/minix/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
bh386fs/minix/namei.cbrelse(bh);
bh392fs/minix/namei.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
bh394fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
bh397fs/minix/namei.cbrelse(bh);
bh403fs/minix/namei.cbrelse(bh);
bh411fs/minix/namei.cstruct buffer_head * bh;
bh415fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh417fs/minix/namei.cif (!bh)
bh444fs/minix/namei.cbh->b_dirt = 1;
bh454fs/minix/namei.cbrelse(bh);
bh462fs/minix/namei.cstruct buffer_head * bh;
bh467fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh468fs/minix/namei.cif (!bh)
bh485fs/minix/namei.cbh->b_dirt = 1;
bh491fs/minix/namei.cbrelse(bh);
bh501fs/minix/namei.cstruct buffer_head * bh = NULL, * name_block = NULL;
bh534fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh535fs/minix/namei.cif (bh) {
bh539fs/minix/namei.cbrelse(bh);
bh543fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh544fs/minix/namei.cif (!bh) {
bh552fs/minix/namei.cbh->b_dirt = 1;
bh553fs/minix/namei.cbrelse(bh);
bh562fs/minix/namei.cstruct buffer_head * bh;
bh569fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
bh570fs/minix/namei.cif (bh) {
bh571fs/minix/namei.cbrelse(bh);
bh576fs/minix/namei.cbh = minix_add_entry(dir,name,len,&de);
bh577fs/minix/namei.cif (!bh) {
bh583fs/minix/namei.cbh->b_dirt = 1;
bh584fs/minix/namei.cbrelse(bh);
bh43fs/minix/symlink.cstruct buffer_head * bh;
bh59fs/minix/symlink.c!(bh = bread(inode->i_dev, inode->i_data[0], BLOCK_SIZE))) {
bh67fs/minix/symlink.cinode = _namei(bh->b_data,dir,1);
bh70fs/minix/symlink.cbrelse(bh);
bh76fs/minix/symlink.cstruct buffer_head * bh;
bh87fs/minix/symlink.cbh = bread(inode->i_dev, inode->i_data[0], BLOCK_SIZE);
bh89fs/minix/symlink.cbh = NULL;
bh91fs/minix/symlink.cif (!bh)
bh94fs/minix/symlink.cwhile (i<buflen && (c = bh->b_data[i])) {
bh98fs/minix/symlink.cbrelse(bh);
bh49fs/minix/truncate.cstruct buffer_head * bh = NULL;
bh55fs/minix/truncate.cbh = bread(inode->i_dev, *p, BLOCK_SIZE);
bh56fs/minix/truncate.cif (!bh)
bh64fs/minix/truncate.cind = i+(unsigned short *) bh->b_data;
bh71fs/minix/truncate.cind = (unsigned short *) bh->b_data;
bh75fs/minix/truncate.cbrelse(bh);
bh87fs/minix/truncate.cstruct buffer_head * bh = NULL;
bh93fs/minix/truncate.cbh = bread(inode->i_dev, inode->i_data[8], BLOCK_SIZE);
bh94fs/minix/truncate.cif (!bh)
bh102fs/minix/truncate.cdind = i+(unsigned short *) bh->b_data;
bh107fs/minix/truncate.cdind = (unsigned short *) bh->b_data;
bh111fs/minix/truncate.cbrelse(bh);
bh72fs/msdos/dir.cstruct buffer_head *bh;
bh90fs/msdos/dir.cbh = NULL;
bh91fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
bh120fs/msdos/dir.cbrelse(bh);
bh125fs/msdos/dir.cif (bh) brelse(bh);
bh19fs/msdos/fat.cstruct buffer_head *bh,*bh2,*c_bh,*c_bh2;
bh29fs/msdos/fat.cif (!(bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >>
bh35fs/msdos/fat.cbh2 = bh;
bh41fs/msdos/fat.cbrelse(bh);
bh74fs/msdos/fat.cbh->b_dirt = 1;
bh81fs/msdos/fat.cif (data != data2 || bh != bh2) {
bh95fs/msdos/fat.cbrelse(bh);
bh82fs/msdos/file.cstruct buffer_head *bh;
bh100fs/msdos/file.cif (!(bh = msdos_sread(inode->i_dev,sector,&data))) break;
bh113fs/msdos/file.cbrelse(bh);
bh118fs/msdos/file.cbrelse(bh);
bh131fs/msdos/file.cstruct buffer_head *bh;
bh155fs/msdos/file.cif (!(bh = msdos_sread(inode->i_dev,sector,&data))) {
bh190fs/msdos/file.cbh->b_dirt = 1;
bh191fs/msdos/file.cbrelse(bh);
bh92fs/msdos/inode.cstruct buffer_head *bh;
bh103fs/msdos/inode.cbh = bread(s->s_dev, 0, BLOCK_SIZE);
bh105fs/msdos/inode.cif (bh == NULL) {
bh110fs/msdos/inode.cb = (struct msdos_boot_sector *) bh->b_data;
bh125fs/msdos/inode.cbrelse(bh);
bh196fs/msdos/inode.cstruct buffer_head *bh;
bh218fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS, BLOCK_SIZE)))
bh220fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh248fs/msdos/inode.cbrelse(bh);
bh254fs/msdos/inode.cstruct buffer_head *bh;
bh259fs/msdos/inode.cif (!(bh = bread(inode->i_dev,inode->i_ino >> MSDOS_DPB_BITS, BLOCK_SIZE)))
bh261fs/msdos/inode.craw_entry = &((struct msdos_dir_entry *) (bh->b_data))
bh274fs/msdos/inode.cbh->b_dirt = 1;
bh275fs/msdos/inode.cbrelse(bh);
bh67fs/msdos/misc.cstruct buffer_head *bh;
bh128fs/msdos/misc.cif (!(bh = getblk(inode->i_dev,sector >> 1, BLOCK_SIZE)))
bh131fs/msdos/misc.cmemset(bh->b_data,0,BLOCK_SIZE);
bh132fs/msdos/misc.cbh->b_uptodate = 1;
bh137fs/msdos/misc.cif (!(bh = msdos_sread(inode->i_dev,sector,&data)))
bh141fs/msdos/misc.cif (bh) {
bh142fs/msdos/misc.cbh->b_dirt = 1;
bh143fs/msdos/misc.cbrelse(bh);
bh211fs/msdos/misc.cint msdos_get_entry(struct inode *dir,int *pos,struct buffer_head **bh,
bh224fs/msdos/misc.cif (*bh)
bh225fs/msdos/misc.cbrelse(*bh);
bh226fs/msdos/misc.cif (!(*bh = msdos_sread(dir->i_dev,sector,&data)))
bh283fs/msdos/misc.cstruct buffer_head *bh;
bh287fs/msdos/misc.cif (!(bh = msdos_sread(sb->s_dev,sector,(void **) &data))) return -EIO;
bh294fs/msdos/misc.cbrelse(bh);
bh297fs/msdos/misc.cbrelse(bh);
bh91fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
bh98fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino);
bh107fs/msdos/namei.cstruct buffer_head *bh;
bh128fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
bh132fs/msdos/namei.cif (bh) brelse(bh);
bh159fs/msdos/namei.cstruct buffer_head *bh;
bh163fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) {
bh166fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res;
bh173fs/msdos/namei.cbh->b_dirt = 1;
bh175fs/msdos/namei.cbrelse(bh);
bh187fs/msdos/namei.cstruct buffer_head *bh;
bh199fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
bh201fs/msdos/namei.cbrelse(bh);
bh214fs/msdos/namei.cstruct buffer_head *bh;
bh226fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
bh228fs/msdos/namei.cbrelse(bh);
bh267fs/msdos/namei.cstruct buffer_head *bh,*dbh;
bh271fs/msdos/namei.cbh = NULL;
bh275fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
bh298fs/msdos/namei.cbh->b_dirt = 1;
bh301fs/msdos/namei.cbrelse(bh);
bh311fs/msdos/namei.cstruct buffer_head *bh;
bh315fs/msdos/namei.cbh = NULL;
bh317fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
bh331fs/msdos/namei.cbh->b_dirt = 1;
bh333fs/msdos/namei.cbrelse(bh);
bh257include/linux/fs.hextern void ll_rw_block(int rw, struct buffer_head * bh);
bh101include/linux/msdos_fs.hstruct buffer_head *bh;
bh103include/linux/msdos_fs.hif (!(bh = bread(dev,sector >> 1, 1024)))
bh105include/linux/msdos_fs.h*start = bh->b_data+((sector & 1) << SECTOR_BITS);
bh106include/linux/msdos_fs.hreturn bh;
bh119include/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;
bh172kernel/blk_drv/blk.hextern inline void unlock_buffer(struct buffer_head * bh)
bh174kernel/blk_drv/blk.hif (!bh->b_lock)
bh176kernel/blk_drv/blk.hbh->b_lock=0;
bh177kernel/blk_drv/blk.hwake_up(&bh->b_wait);
bh183kernel/blk_drv/blk.hstruct buffer_head * bh;
bh196kernel/blk_drv/blk.hif (bh = req->bh) {
bh197kernel/blk_drv/blk.hreq->bh = bh->b_reqnext;
bh198kernel/blk_drv/blk.hbh->b_reqnext = NULL;
bh199kernel/blk_drv/blk.hbh->b_uptodate = uptodate;
bh200kernel/blk_drv/blk.hunlock_buffer(bh);
bh201kernel/blk_drv/blk.hif (bh = req->bh) {
bh202kernel/blk_drv/blk.hreq->current_nr_sectors = bh->b_size >> 9;
bh207kernel/blk_drv/blk.hreq->buffer = bh->b_data;
bh231kernel/blk_drv/blk.hif (CURRENT->bh) { \
bh232kernel/blk_drv/blk.hif (!CURRENT->bh->b_lock) \
bh298kernel/blk_drv/floppy.cint floppy_change(struct buffer_head * bh)
bh300kernel/blk_drv/floppy.cunsigned int mask = 1 << (bh->b_dev & 0x03);
bh302kernel/blk_drv/floppy.cif (MAJOR(bh->b_dev) != 2) {
bh317kernel/blk_drv/floppy.cif (!bh)
bh319kernel/blk_drv/floppy.cif (bh->b_dirt)
bh320kernel/blk_drv/floppy.cll_rw_block(WRITE,bh);
bh323kernel/blk_drv/floppy.cbh->b_uptodate = 0;
bh324kernel/blk_drv/floppy.cll_rw_block(READ,bh);
bh327kernel/blk_drv/floppy.cwhile (bh->b_lock)
bh328kernel/blk_drv/floppy.csleep_on(&bh->b_wait);
bh913kernel/blk_drv/floppy.cif (CURRENT->bh) {
bh914kernel/blk_drv/floppy.cif (!CURRENT->bh->b_lock)
bh34kernel/blk_drv/genhd.cstruct buffer_head *bh;
bh45kernel/blk_drv/genhd.cif (!(bh = bread(dev,0,1024))) {
bh53kernel/blk_drv/genhd.cbh->b_dirt=0;
bh54kernel/blk_drv/genhd.cbh->b_uptodate=0;
bh55kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+510) == 0xAA55) {
bh56kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh85kernel/blk_drv/genhd.cbrelse(bh);
bh90kernel/blk_drv/genhd.cbrelse(bh);
bh96kernel/blk_drv/genhd.cstruct buffer_head *bh;
bh102kernel/blk_drv/genhd.cif (!(bh = bread(dev,0,1024))) {
bh108kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+510) == 0xAA55) {
bh109kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh126kernel/blk_drv/genhd.cif (*(unsigned short *) (bh->b_data+0xfc) == 0x55AA) {
bh127kernel/blk_drv/genhd.cp = 0x1BE + (void *)bh->b_data;
bh146kernel/blk_drv/genhd.cbrelse(bh);
bh277kernel/blk_drv/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
bh316kernel/blk_drv/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
bh58kernel/blk_drv/ll_rw_blk.cstatic inline void lock_buffer(struct buffer_head * bh)
bh61kernel/blk_drv/ll_rw_blk.cwhile (bh->b_lock)
bh62kernel/blk_drv/ll_rw_blk.csleep_on(&bh->b_wait);
bh63kernel/blk_drv/ll_rw_blk.cbh->b_lock=1;
bh67kernel/blk_drv/ll_rw_blk.cstatic inline void unlock_buffer(struct buffer_head * bh)
bh69kernel/blk_drv/ll_rw_blk.cif (!bh->b_lock)
bh71kernel/blk_drv/ll_rw_blk.cbh->b_lock = 0;
bh72kernel/blk_drv/ll_rw_blk.cwake_up(&bh->b_wait);
bh114kernel/blk_drv/ll_rw_blk.cif (req->bh)
bh115kernel/blk_drv/ll_rw_blk.creq->bh->b_dirt = 0;
bh123kernel/blk_drv/ll_rw_blk.cif (!req->bh)
bh124kernel/blk_drv/ll_rw_blk.cif (tmp->next->bh)
bh138kernel/blk_drv/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
bh147kernel/blk_drv/ll_rw_blk.cif (bh->b_lock)
bh158kernel/blk_drv/ll_rw_blk.ccount = bh->b_size >> 9;
bh159kernel/blk_drv/ll_rw_blk.csector = bh->b_blocknr * count;
bh161kernel/blk_drv/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
bh162kernel/blk_drv/ll_rw_blk.cbh->b_dirt = bh->b_uptodate = 0;
bh165kernel/blk_drv/ll_rw_blk.clock_buffer(bh);
bh166kernel/blk_drv/ll_rw_blk.cif ((rw == WRITE && !bh->b_dirt) || (rw == READ && bh->b_uptodate)) {
bh167kernel/blk_drv/ll_rw_blk.cunlock_buffer(bh);
bh174kernel/blk_drv/ll_rw_blk.cif (req->dev == bh->b_dev &&
bh179kernel/blk_drv/ll_rw_blk.creq->bhtail->b_reqnext = bh;
bh180kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
bh182kernel/blk_drv/ll_rw_blk.cbh->b_dirt = 0;
bh203kernel/blk_drv/ll_rw_blk.cunlock_buffer(bh);
bh212kernel/blk_drv/ll_rw_blk.creq->dev = bh->b_dev;
bh218kernel/blk_drv/ll_rw_blk.creq->buffer = bh->b_data;
bh220kernel/blk_drv/ll_rw_blk.creq->bh = bh;
bh221kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
bh261kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
bh268kernel/blk_drv/ll_rw_blk.cvoid ll_rw_block(int rw, struct buffer_head * bh)
bh272kernel/blk_drv/ll_rw_blk.cif (!bh)
bh274kernel/blk_drv/ll_rw_blk.cif (bh->b_size != 1024) {
bh275kernel/blk_drv/ll_rw_blk.cprintk("ll_rw_block: only 1024-char blocks implemented (%d)\n",bh->b_size);
bh276kernel/blk_drv/ll_rw_blk.cbh->b_dirt = bh->b_uptodate = 0;
bh279kernel/blk_drv/ll_rw_blk.cif ((major=MAJOR(bh->b_dev)) >= NR_BLK_DEV ||
bh281kernel/blk_drv/ll_rw_blk.cprintk("ll_rw_block: Trying to read nonexistent block-device %04x (%d)\n",bh->b_dev,bh->b_blocknr);
bh282kernel/blk_drv/ll_rw_blk.cbh->b_dirt = bh->b_uptodate = 0;
bh285kernel/blk_drv/ll_rw_blk.cif ((rw == WRITE || rw == WRITEA) && is_read_only(bh->b_dev)) {
bh286kernel/blk_drv/ll_rw_blk.cprintk("Can't write to read-only device 0x%X\n\r",bh->b_dev);
bh287kernel/blk_drv/ll_rw_blk.cbh->b_dirt = bh->b_uptodate = 0;
bh290kernel/blk_drv/ll_rw_blk.cmake_request(major,rw,bh);
bh348kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
bh88kernel/blk_drv/ramdisk.cstruct buffer_head *bh;
bh101kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV,block+1,block,block+2,-1);
bh102kernel/blk_drv/ramdisk.cif (!bh) {
bh106kernel/blk_drv/ramdisk.c*((struct minix_super_block *) &s) = *((struct minix_super_block *) bh->b_data);
bh107kernel/blk_drv/ramdisk.cbrelse(bh);
bh122kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV, block, block+1, block+2, -1);
bh124kernel/blk_drv/ramdisk.cbh = bread(ROOT_DEV, block, BLOCK_SIZE);
bh125kernel/blk_drv/ramdisk.cif (!bh) {
bh130kernel/blk_drv/ramdisk.c(void) memcpy(cp, bh->b_data, BLOCK_SIZE);
bh131kernel/blk_drv/ramdisk.cbrelse(bh);
bh128kernel/blk_drv/scsi/sd.cif (!CURRENT->bh)
bh249kernel/blk_drv/scsi/sd.cif (!CURRENT->bh)