Fork me on GitHub
buf               371 drivers/char/console.c static void insert_seq(struct tty *tty, char *buf, int count)
buf               374 drivers/char/console.c 		tty_queue_putchar(tty, &tty->read_q, *(buf++));
buf               393 drivers/char/console.c static void echo_char(struct vconsole *vc, unsigned char *buf, unsigned int count)
buf               408 drivers/char/console.c 		ch = *buf++;
buf                50 fs/buffer.c    static void insert_to_hash(struct buffer *buf)
buf                55 fs/buffer.c    	i = BUFFER_HASH(buf->dev, buf->block);
buf                59 fs/buffer.c    		*h = buf;
buf                62 fs/buffer.c    		buf->prev_hash = NULL;
buf                63 fs/buffer.c    		buf->next_hash = *h;
buf                64 fs/buffer.c    		(*h)->prev_hash = buf;
buf                65 fs/buffer.c    		*h = buf;
buf                69 fs/buffer.c    static void remove_from_hash(struct buffer *buf)
buf                74 fs/buffer.c    	i = BUFFER_HASH(buf->dev, buf->block);
buf                78 fs/buffer.c    		if(*h == buf) {
buf                94 fs/buffer.c    static void insert_on_dirty_list(struct buffer *buf)
buf                96 fs/buffer.c    	if(buf->prev_dirty || buf->next_dirty) {
buf               101 fs/buffer.c    		buf->next_dirty = buffer_dirty_head;
buf               102 fs/buffer.c    		buffer_dirty_head->prev_dirty = buf;
buf               104 fs/buffer.c    	buffer_dirty_head = buf;
buf               108 fs/buffer.c    static void remove_from_dirty_list(struct buffer *buf)
buf               110 fs/buffer.c    	if(buf->next_dirty) {
buf               111 fs/buffer.c    		buf->next_dirty->prev_dirty = buf->prev_dirty;
buf               113 fs/buffer.c    	if(buf->prev_dirty) {
buf               114 fs/buffer.c    		buf->prev_dirty->next_dirty = buf->next_dirty;
buf               116 fs/buffer.c    	if(buf == buffer_dirty_head) {
buf               117 fs/buffer.c    		buffer_dirty_head = buf->next_dirty;
buf               119 fs/buffer.c    	buf->prev_dirty = buf->next_dirty = NULL;
buf               120 fs/buffer.c    	buf->flags &= ~BUFFER_DIRTY;
buf               124 fs/buffer.c    static void insert_on_free_list(struct buffer *buf)
buf               127 fs/buffer.c    		buf->prev_free = buf->next_free = buf;
buf               128 fs/buffer.c    		buffer_head = buf;
buf               130 fs/buffer.c    		buf->next_free = buffer_head;
buf               131 fs/buffer.c    		buf->prev_free = buffer_head->prev_free;
buf               132 fs/buffer.c    		buffer_head->prev_free->next_free = buf;
buf               133 fs/buffer.c    		buffer_head->prev_free = buf;
buf               139 fs/buffer.c    		if(!(buf->flags & BUFFER_VALID)) {
buf               140 fs/buffer.c    			buffer_head = buf;
buf               145 fs/buffer.c    static void remove_from_free_list(struct buffer *buf)
buf               151 fs/buffer.c    	buf->prev_free->next_free = buf->next_free;
buf               152 fs/buffer.c    	buf->next_free->prev_free = buf->prev_free;
buf               153 fs/buffer.c    	if(buf == buffer_head) {
buf               154 fs/buffer.c    		buffer_head = buf->next_free;
buf               162 fs/buffer.c    static void buffer_wait(struct buffer *buf)
buf               168 fs/buffer.c    		if(buf->flags & BUFFER_LOCKED) {
buf               175 fs/buffer.c    	buf->flags |= BUFFER_LOCKED;
buf               182 fs/buffer.c    	struct buffer *buf;
buf               191 fs/buffer.c    		buf = buffer_head;
buf               192 fs/buffer.c    		if(buf->flags & BUFFER_LOCKED) {
buf               200 fs/buffer.c    	remove_from_free_list(buf);
buf               201 fs/buffer.c    	buf->flags |= BUFFER_LOCKED;
buf               204 fs/buffer.c    	return buf;
buf               207 fs/buffer.c    static void sync_one_buffer(struct buffer *buf)
buf               212 fs/buffer.c    	if(!(d = get_device(BLK_DEV, buf->dev))) {
buf               213 fs/buffer.c    		printk("WARNING: %s(): block device %d,%d not registered!\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev));
buf               218 fs/buffer.c    	if(!buf->data) {
buf               219 fs/buffer.c    		printk("WARNING: %s(): buffer (dev=%x, block=%d, size=%d) don't has data!\n", __FUNCTION__, buf->dev, buf->block, buf->size);
buf               224 fs/buffer.c    		errno = d->fsop->write_block(buf->dev, buf->block, buf->data, buf->size);
buf               227 fs/buffer.c    				printk("WARNING: %s(): write protection on device %d,%d.\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev), buf->block);
buf               229 fs/buffer.c    				printk("WARNING: %s(): I/O error on device %d,%d.\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev), buf->block);
buf               233 fs/buffer.c    		remove_from_dirty_list(buf);
buf               235 fs/buffer.c    		printk("WARNING: %s(): device %d,%d does not have the write_block() method!\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev));
buf               241 fs/buffer.c    	struct buffer *buf;
buf               245 fs/buffer.c    	buf = buffer_hash_table[i];
buf               247 fs/buffer.c    	while(buf) {
buf               248 fs/buffer.c    		if(buf->dev == dev && buf->block == block && buf->size == size) {
buf               249 fs/buffer.c    			return buf;
buf               251 fs/buffer.c    		buf = buf->next_hash;
buf               260 fs/buffer.c    	struct buffer *buf;
buf               263 fs/buffer.c    		if((buf = search_buffer_hash(dev, block, size))) {
buf               265 fs/buffer.c    			if(buf->flags & BUFFER_LOCKED) {
buf               270 fs/buffer.c    			buf->flags |= BUFFER_LOCKED;
buf               271 fs/buffer.c    			remove_from_free_list(buf);
buf               273 fs/buffer.c    			return buf;
buf               276 fs/buffer.c    		if(!(buf = get_free_buffer())) {
buf               282 fs/buffer.c    		if(buf->flags & BUFFER_DIRTY) {
buf               283 fs/buffer.c    			sync_one_buffer(buf);
buf               285 fs/buffer.c    			if(!buf->data) {
buf               286 fs/buffer.c    				if(!(buf->data = (char *)kmalloc())) {
buf               287 fs/buffer.c    					brelse(buf);
buf               296 fs/buffer.c    		remove_from_hash(buf);	/* remove it from old hash */
buf               297 fs/buffer.c    		buf->dev = dev;
buf               298 fs/buffer.c    		buf->block = block;
buf               299 fs/buffer.c    		buf->size = size;
buf               300 fs/buffer.c    		insert_to_hash(buf);
buf               301 fs/buffer.c    		buf->flags &= ~BUFFER_VALID;
buf               303 fs/buffer.c    		return buf;
buf               309 fs/buffer.c    	struct buffer *buf;
buf               317 fs/buffer.c    	if((buf = getblk(dev, block, size))) {
buf               318 fs/buffer.c    		if(buf->flags & BUFFER_VALID) {
buf               319 fs/buffer.c    			return buf;
buf               322 fs/buffer.c    			if(d->fsop->read_block(dev, block, buf->data, size) >= 0) {
buf               323 fs/buffer.c    				buf->flags |= BUFFER_VALID;
buf               326 fs/buffer.c    		if(buf->flags & BUFFER_VALID) {
buf               327 fs/buffer.c    			return buf;
buf               329 fs/buffer.c    		brelse(buf);
buf               336 fs/buffer.c    void bwrite(struct buffer *buf)
buf               338 fs/buffer.c    	buf->flags |= (BUFFER_DIRTY | BUFFER_VALID);
buf               339 fs/buffer.c    	brelse(buf);
buf               342 fs/buffer.c    void brelse(struct buffer *buf)
buf               348 fs/buffer.c    	if(buf->flags & BUFFER_DIRTY) {
buf               349 fs/buffer.c    		insert_on_dirty_list(buf);
buf               352 fs/buffer.c    	insert_on_free_list(buf);
buf               353 fs/buffer.c    	buf->flags &= ~BUFFER_LOCKED;
buf               363 fs/buffer.c    	struct buffer *buf, *next;
buf               365 fs/buffer.c    	buf = buffer_dirty_head;
buf               368 fs/buffer.c    	while(buf) {
buf               369 fs/buffer.c    		next = buf->next_dirty;
buf               370 fs/buffer.c    		if(!dev || buf->dev == dev) {
buf               371 fs/buffer.c    			buffer_wait(buf);
buf               372 fs/buffer.c    			sync_one_buffer(buf);
buf               373 fs/buffer.c    			buf->flags &= ~BUFFER_LOCKED;
buf               376 fs/buffer.c    		buf = next;
buf               385 fs/buffer.c    	struct buffer *buf;
buf               387 fs/buffer.c    	buf = &buffer_table[0];
buf               391 fs/buffer.c    		if(!(buf->flags & BUFFER_LOCKED) && buf->dev == dev) {
buf               392 fs/buffer.c    			buffer_wait(buf);
buf               393 fs/buffer.c    			remove_from_hash(buf);
buf               394 fs/buffer.c    			buf->flags &= ~(BUFFER_VALID | BUFFER_LOCKED);
buf               397 fs/buffer.c    		buf++;
buf               410 fs/buffer.c    	struct buffer *buf, *first;
buf               417 fs/buffer.c    		if(!(buf = get_free_buffer())) {
buf               423 fs/buffer.c    		if(buf->flags & BUFFER_DIRTY) {
buf               424 fs/buffer.c    			sync_one_buffer(buf);
buf               428 fs/buffer.c    		buf->flags |= BUFFER_VALID;
buf               431 fs/buffer.c    			if(first == buf) {
buf               432 fs/buffer.c    				brelse(buf);
buf               436 fs/buffer.c    			first = buf;
buf               438 fs/buffer.c    		if(buf->data) {
buf               439 fs/buffer.c    			kfree((unsigned int)buf->data);
buf               440 fs/buffer.c    			buf->data = NULL;
buf               441 fs/buffer.c    			remove_from_hash(buf);
buf               445 fs/buffer.c    				brelse(buf);
buf               449 fs/buffer.c    		brelse(buf);
buf               468 fs/buffer.c    	struct buffer *buf;
buf               475 fs/buffer.c    		buf = &buffer_table[n];
buf               476 fs/buffer.c    		insert_on_free_list(buf);
buf               250 fs/devices.c   	struct buffer *buf;
buf               274 fs/devices.c   		if(!(buf = bread(i->rdev, block, blksize))) {
buf               279 fs/devices.c   		memcpy_b(buffer + total_read, buf->data + boffset, bytes);
buf               283 fs/devices.c   		brelse(buf);
buf               295 fs/devices.c   	struct buffer *buf;
buf               319 fs/devices.c   		if(!(buf = bread(i->rdev, block, blksize))) {
buf               324 fs/devices.c   		memcpy_b(buf->data + boffset, buffer + total_written, bytes);
buf               328 fs/devices.c   		bwrite(buf);
buf               303 fs/elf.c       	struct buffer *buf;
buf               315 fs/elf.c       	if(!(buf = bread(ii->dev, block, ii->sb->s_blocksize))) {
buf               325 fs/elf.c       		brelse(buf);
buf               328 fs/elf.c       	memcpy_b(data, buf->data, ii->sb->s_blocksize);
buf               329 fs/elf.c       	brelse(buf);
buf                24 fs/ext2/bitmaps.c 	struct buffer *buf;
buf                28 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, block, blksize))) {
buf                32 fs/ext2/bitmaps.c 		c = (unsigned char)buf->data[n];
buf                35 fs/ext2/bitmaps.c 				brelse(buf);
buf                40 fs/ext2/bitmaps.c 	brelse(buf);
buf                47 fs/ext2/bitmaps.c 	struct buffer *buf;
buf                54 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, block, sb->s_blocksize))) {
buf                59 fs/ext2/bitmaps.c 		if(!(buf->data[byte] & mask)) {
buf                60 fs/ext2/bitmaps.c 			brelse(buf);
buf                63 fs/ext2/bitmaps.c 		buf->data[byte] &= ~mask;
buf                66 fs/ext2/bitmaps.c 		if((buf->data[byte] & mask)) {
buf                67 fs/ext2/bitmaps.c 			brelse(buf);
buf                70 fs/ext2/bitmaps.c 		buf->data[byte] |= mask;
buf                73 fs/ext2/bitmaps.c 	bwrite(buf);
buf                88 fs/ext2/bitmaps.c 	struct buffer *buf;
buf                96 fs/ext2/bitmaps.c 	buf = NULL;
buf               101 fs/ext2/bitmaps.c 			if(buf) {
buf               102 fs/ext2/bitmaps.c 				brelse(buf);
buf               106 fs/ext2/bitmaps.c 			if(!(buf = bread(sb->dev, block, sb->s_blocksize))) {
buf               111 fs/ext2/bitmaps.c 		gd = (struct ext2_group_desc *)(buf->data + (d * sizeof(struct ext2_group_desc)));
buf               119 fs/ext2/bitmaps.c 		brelse(buf);
buf               128 fs/ext2/bitmaps.c 			brelse(buf);
buf               142 fs/ext2/bitmaps.c 	bwrite(buf);
buf               156 fs/ext2/bitmaps.c 	struct buffer *buf;
buf               175 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, b + (bg / EXT2_DESC_PER_BLOCK(sb)), sb->s_blocksize))) {
buf               179 fs/ext2/bitmaps.c 	gd = (struct ext2_group_desc *)(buf->data + ((bg % EXT2_DESC_PER_BLOCK(sb)) * sizeof(struct ext2_group_desc)));
buf               185 fs/ext2/bitmaps.c 			brelse(buf);
buf               198 fs/ext2/bitmaps.c 	bwrite(buf);
buf               213 fs/ext2/bitmaps.c 	struct buffer *buf;
buf               220 fs/ext2/bitmaps.c 	buf = NULL;
buf               225 fs/ext2/bitmaps.c 			if(buf) {
buf               226 fs/ext2/bitmaps.c 				brelse(buf);
buf               230 fs/ext2/bitmaps.c 			if(!(buf = bread(sb->dev, b, sb->s_blocksize))) {
buf               235 fs/ext2/bitmaps.c 		gd = (struct ext2_group_desc *)(buf->data + (d * sizeof(struct ext2_group_desc)));
buf               243 fs/ext2/bitmaps.c 		brelse(buf);
buf               252 fs/ext2/bitmaps.c 			brelse(buf);
buf               263 fs/ext2/bitmaps.c 	bwrite(buf);
buf               272 fs/ext2/bitmaps.c 	struct buffer *buf;
buf               285 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, b + (bg / EXT2_DESC_PER_BLOCK(sb)), sb->s_blocksize))) {
buf               289 fs/ext2/bitmaps.c 	gd = (struct ext2_group_desc *)(buf->data + ((bg % EXT2_DESC_PER_BLOCK(sb)) * sizeof(struct ext2_group_desc)));
buf               295 fs/ext2/bitmaps.c 			brelse(buf);
buf               305 fs/ext2/bitmaps.c 	bwrite(buf);
buf                90 fs/ext2/dir.c  	struct buffer *buf;
buf               109 fs/ext2/dir.c  			if(!(buf = bread(i->dev, block, blksize))) {
buf               116 fs/ext2/dir.c  				d = (struct ext2_dir_entry_2 *)(buf->data + offset);
buf               140 fs/ext2/dir.c  			brelse(buf);
buf                87 fs/ext2/file.c 	struct buffer *buf;
buf               106 fs/ext2/file.c 		if(!(buf = bread(i->dev, block, blksize))) {
buf               110 fs/ext2/file.c 		memcpy_b(buf->data + boffset, buffer + total_written, bytes);
buf               112 fs/ext2/file.c 		bwrite(buf);
buf                33 fs/ext2/inode.c 	struct buffer *buf;
buf                36 fs/ext2/inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf                40 fs/ext2/inode.c 	indblock = (__blk_t *)buf->data;
buf                48 fs/ext2/inode.c 	bwrite(buf);
buf                55 fs/ext2/inode.c 	struct buffer *buf;
buf                59 fs/ext2/inode.c 	if(!(buf = bread(sb->dev, SUPERBLOCK + sb->u.ext2.sb.s_first_data_block + group_desc_block, sb->s_blocksize))) {
buf                62 fs/ext2/inode.c 	memcpy_b(gd, (void *)(buf->data + (group_desc * sizeof(struct ext2_group_desc))), sizeof(struct ext2_group_desc));
buf                63 fs/ext2/inode.c 	brelse(buf);
buf                74 fs/ext2/inode.c 	struct buffer *buf;
buf                86 fs/ext2/inode.c 	if(!(buf = bread(i->dev, gd.bg_inode_table + block, i->sb->s_blocksize))) {
buf                91 fs/ext2/inode.c 	ii = (struct ext2_inode *)(buf->data + offset);
buf               133 fs/ext2/inode.c 			brelse(buf);
buf               136 fs/ext2/inode.c 	brelse(buf);
buf               147 fs/ext2/inode.c 	struct buffer *buf;
buf               159 fs/ext2/inode.c 	if(!(buf = bread(i->dev, gd.bg_inode_table + block, i->sb->s_blocksize))) {
buf               163 fs/ext2/inode.c 	ii = (struct ext2_inode *)(buf->data + offset);
buf               183 fs/ext2/inode.c 	bwrite(buf);
buf               193 fs/ext2/inode.c 	struct buffer *buf, *buf2, *buf3, *buf4;
buf               219 fs/ext2/inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
buf               223 fs/ext2/inode.c 			memset_b(buf->data, 0, blksize);
buf               224 fs/ext2/inode.c 			bwrite(buf);
buf               237 fs/ext2/inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
buf               241 fs/ext2/inode.c 			memset_b(buf->data, 0, blksize);
buf               242 fs/ext2/inode.c 			bwrite(buf);
buf               249 fs/ext2/inode.c 	if(!(buf = bread(i->dev, i->u.ext2.i_data[level], blksize))) {
buf               252 fs/ext2/inode.c 	indblock = (__blk_t *)buf->data;
buf               266 fs/ext2/inode.c 				brelse(buf);
buf               272 fs/ext2/inode.c 				brelse(buf);
buf               280 fs/ext2/inode.c 				bwrite(buf);
buf               283 fs/ext2/inode.c 			buf->flags |= (BUFFER_DIRTY | BUFFER_VALID);
buf               285 fs/ext2/inode.c 			brelse(buf);
buf               291 fs/ext2/inode.c 		brelse(buf);
buf               298 fs/ext2/inode.c 			brelse(buf);
buf               306 fs/ext2/inode.c 					brelse(buf);
buf               313 fs/ext2/inode.c 					brelse(buf);
buf               324 fs/ext2/inode.c 				brelse(buf);
buf               333 fs/ext2/inode.c 			brelse(buf);
buf               341 fs/ext2/inode.c 			brelse(buf);
buf               350 fs/ext2/inode.c 			brelse(buf);
buf               360 fs/ext2/inode.c 			brelse(buf);
buf               374 fs/ext2/inode.c 	brelse(buf);
buf               385 fs/ext2/inode.c 	struct buffer *buf;
buf               426 fs/ext2/inode.c 		if(!(buf = bread(i->dev, i->u.ext2.i_data[EXT2_DIND_BLOCK], blksize))) {
buf               430 fs/ext2/inode.c 		indblock = (__blk_t *)buf->data;
buf               442 fs/ext2/inode.c 		bwrite(buf);
buf                26 fs/ext2/namei.c 	struct buffer *buf;
buf                42 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
buf                47 fs/ext2/namei.c 				*d_res = (struct ext2_dir_entry_2 *)(buf->data + doffset);
buf                55 fs/ext2/namei.c 							return buf;
buf                64 fs/ext2/namei.c 							*d_res = (struct ext2_dir_entry_2 *)(buf->data + doffset);
buf                66 fs/ext2/namei.c 							return buf;
buf                74 fs/ext2/namei.c 							return buf;
buf                79 fs/ext2/namei.c 								return buf;
buf                86 fs/ext2/namei.c 			brelse(buf);
buf               100 fs/ext2/namei.c 	struct buffer *buf;
buf               102 fs/ext2/namei.c 	if(!(buf = find_dir_entry(dir, NULL, d_res, name))) {
buf               106 fs/ext2/namei.c 		if(!(buf = bread(dir->dev, block, dir->sb->s_blocksize))) {
buf               109 fs/ext2/namei.c 		*d_res = (struct ext2_dir_entry_2 *)buf->data;
buf               114 fs/ext2/namei.c 	return buf;
buf               122 fs/ext2/namei.c 	struct buffer *buf;
buf               133 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
buf               141 fs/ext2/namei.c 				d = (struct ext2_dir_entry_2 *)(buf->data + doffset);
buf               150 fs/ext2/namei.c 					brelse(buf);
buf               154 fs/ext2/namei.c 			brelse(buf);
buf               193 fs/ext2/namei.c 	struct buffer *buf;
buf               205 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
buf               211 fs/ext2/namei.c 				d = (struct ext2_dir_entry_2 *)(buf->data + doffset);
buf               222 fs/ext2/namei.c 			brelse(buf);
buf               252 fs/ext2/namei.c 	struct buffer *buf;
buf               264 fs/ext2/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, NULL))) {
buf               282 fs/ext2/namei.c 	bwrite(buf);
buf               291 fs/ext2/namei.c 	struct buffer *buf;
buf               299 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir_new, &d, name))) {
buf               325 fs/ext2/namei.c 	bwrite(buf);
buf               334 fs/ext2/namei.c 	struct buffer *buf;
buf               340 fs/ext2/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, name))) {
buf               363 fs/ext2/namei.c 	bwrite(buf);
buf               372 fs/ext2/namei.c 	struct buffer *buf, *buf2;
buf               386 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
buf               403 fs/ext2/namei.c 			brelse(buf);
buf               409 fs/ext2/namei.c 			brelse(buf);
buf               457 fs/ext2/namei.c 	bwrite(buf);
buf               465 fs/ext2/namei.c 	struct buffer *buf, *buf2;
buf               500 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
buf               548 fs/ext2/namei.c 	bwrite(buf);
buf               557 fs/ext2/namei.c 	struct buffer *buf;
buf               570 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
buf               622 fs/ext2/namei.c 	bwrite(buf);
buf               630 fs/ext2/namei.c 	struct buffer *buf;
buf               647 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
buf               684 fs/ext2/namei.c 	bwrite(buf);
buf                93 fs/ext2/super.c 	struct buffer *buf;
buf                97 fs/ext2/super.c 	if(!(buf = bread(dev, SUPERBLOCK, BLKSIZE_1K))) {
buf               103 fs/ext2/super.c 	ext2sb = (struct ext2_super_block *)buf->data;
buf               107 fs/ext2/super.c 		brelse(buf);
buf               115 fs/ext2/super.c 		brelse(buf);
buf               129 fs/ext2/super.c 		brelse(buf);
buf               138 fs/ext2/super.c 		memcpy_b(buf->data, &sb->u.ext2.sb, sizeof(struct ext2_super_block));
buf               139 fs/ext2/super.c 		bwrite(buf);
buf               141 fs/ext2/super.c 		brelse(buf);
buf               149 fs/ext2/super.c 	struct buffer *buf;
buf               157 fs/ext2/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
buf               161 fs/ext2/super.c 	ext2sb = (struct ext2_super_block *)buf->data;
buf               179 fs/ext2/super.c 	bwrite(buf);
buf               185 fs/ext2/super.c 	struct buffer *buf;
buf               188 fs/ext2/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
buf               193 fs/ext2/super.c 	memcpy_b(buf->data, &sb->u.ext2.sb, sizeof(struct ext2_super_block));
buf               196 fs/ext2/super.c 	bwrite(buf);
buf                63 fs/ext2/symlink.c 	struct buffer *buf;
buf                79 fs/ext2/symlink.c 		if(!(buf = bread(i->dev, i->u.ext2.i_data[0], blksize))) {
buf                83 fs/ext2/symlink.c 		memcpy_b(buffer, buf->data, count);
buf                84 fs/ext2/symlink.c 		brelse(buf);
buf                95 fs/ext2/symlink.c 	struct buffer *buf;
buf               115 fs/ext2/symlink.c 		if(!(buf = bread(i->dev, i->u.ext2.i_data[0], i->sb->s_blocksize))) {
buf               119 fs/ext2/symlink.c 		name = buf->data;
buf               121 fs/ext2/symlink.c 		buf = NULL;
buf               128 fs/ext2/symlink.c 	if(buf) {
buf               129 fs/ext2/symlink.c 		brelse(buf);
buf                84 fs/iso9660/dir.c 	struct buffer *buf;
buf               105 fs/iso9660/dir.c 			if(!(buf = bread(i->dev, block, blksize))) {
buf               113 fs/iso9660/dir.c 				d = (struct iso9660_directory_record *)(buf->data + offset);
buf               171 fs/iso9660/dir.c 			brelse(buf);
buf                27 fs/iso9660/inode.c 	struct buffer *buf;
buf                43 fs/iso9660/inode.c 		if(!(buf = bread(i->dev, pt_blk++, BLKSIZE_2K))) {
buf                47 fs/iso9660/inode.c 		memcpy_b(sbi->pathtable_raw + offset, (void *)buf->data, MIN(pt_len - offset, BLKSIZE_2K));
buf                49 fs/iso9660/inode.c 		brelse(buf);
buf                95 fs/iso9660/inode.c 	struct buffer *buf;
buf               111 fs/iso9660/inode.c 	if(!(buf = bread(i->dev, dblock, blksize))) {
buf               117 fs/iso9660/inode.c 		brelse(buf);
buf               120 fs/iso9660/inode.c 	d = (struct iso9660_directory_record *)(buf->data + doffset);
buf               140 fs/iso9660/inode.c 	brelse(buf);
buf                25 fs/iso9660/namei.c 	struct buffer *buf;
buf                40 fs/iso9660/namei.c 			if(!(buf = bread(dir->dev, dblock, blksize))) {
buf                45 fs/iso9660/namei.c 				d = (struct iso9660_directory_record *)(buf->data + doffset);
buf                93 fs/iso9660/namei.c 			brelse(buf);
buf                28 fs/iso9660/rrip.c 	struct buffer *buf;
buf                34 fs/iso9660/rrip.c 	buf = NULL;
buf                46 fs/iso9660/rrip.c 		if(!(buf = bread(i->dev, ce_block, i->sb->s_blocksize))) {
buf                49 fs/iso9660/rrip.c 		sue = (unsigned char *)buf->data + ce_offset;
buf                64 fs/iso9660/rrip.c 						brelse(buf);
buf                71 fs/iso9660/rrip.c 					brelse(buf);
buf               148 fs/iso9660/rrip.c 		brelse(buf);
buf               160 fs/iso9660/rrip.c 	struct buffer *buf;
buf               164 fs/iso9660/rrip.c 	buf = NULL;
buf               176 fs/iso9660/rrip.c 		if(!(buf = bread(i->dev, ce_block, i->sb->s_blocksize))) {
buf               179 fs/iso9660/rrip.c 		sue = (unsigned char *)buf->data + ce_offset;
buf               194 fs/iso9660/rrip.c 						brelse(buf);
buf               201 fs/iso9660/rrip.c 					brelse(buf);
buf               211 fs/iso9660/rrip.c 						brelse(buf);
buf               223 fs/iso9660/rrip.c 		brelse(buf);
buf               236 fs/iso9660/rrip.c 	struct buffer *buf;
buf               248 fs/iso9660/rrip.c 	if(!(buf = bread(i->dev, dblock, i->sb->s_blocksize))) {
buf               251 fs/iso9660/rrip.c 	d = (struct iso9660_directory_record *)(buf->data + doffset);
buf               338 fs/iso9660/rrip.c 	brelse(buf);
buf               153 fs/iso9660/super.c 	struct buffer *buf;
buf               164 fs/iso9660/super.c 		if(!(buf = bread(dev, ISO9660_SUPERBLOCK + n, BLKSIZE_2K))) {
buf               169 fs/iso9660/super.c 		iso9660sb = (struct iso9660_super_block *)buf->data;
buf               174 fs/iso9660/super.c 			pvd = (struct iso9660_super_block *)buf->data;
buf               177 fs/iso9660/super.c 		brelse(buf);
buf               182 fs/iso9660/super.c 		brelse(buf);
buf               196 fs/iso9660/super.c 		brelse(buf);
buf               200 fs/iso9660/super.c 	brelse(buf);
buf                25 fs/minix/bitmaps.c 	struct buffer *buf;
buf                31 fs/minix/bitmaps.c 		if(!(buf = bread(sb->dev, offset, blksize))) {
buf                36 fs/minix/bitmaps.c 			c = (unsigned char)buf->data[n];
buf                45 fs/minix/bitmaps.c 						brelse(buf);
buf                54 fs/minix/bitmaps.c 		brelse(buf);
buf                62 fs/minix/bitmaps.c 	struct buffer *buf;
buf                69 fs/minix/bitmaps.c 	if(!(buf = bread(sb->dev, map, sb->s_blocksize))) {
buf                74 fs/minix/bitmaps.c 		if(!(buf->data[byte] & mask)) {
buf                75 fs/minix/bitmaps.c 			brelse(buf);
buf                78 fs/minix/bitmaps.c 		buf->data[byte] &= ~mask;
buf                81 fs/minix/bitmaps.c 		if((buf->data[byte] & mask)) {
buf                82 fs/minix/bitmaps.c 			brelse(buf);
buf                85 fs/minix/bitmaps.c 		buf->data[byte] |= mask;
buf                88 fs/minix/bitmaps.c 	bwrite(buf);
buf                90 fs/minix/dir.c 	struct buffer *buf;
buf               109 fs/minix/dir.c 			if(!(buf = bread(i->dev, block, blksize))) {
buf               116 fs/minix/dir.c 				d = (struct minix_dir_entry *)(buf->data + offset);
buf               137 fs/minix/dir.c 			brelse(buf);
buf                87 fs/minix/file.c 	struct buffer *buf;
buf               106 fs/minix/file.c 		if(!(buf = bread(i->dev, block, blksize))) {
buf               110 fs/minix/file.c 		memcpy_b(buf->data + boffset, buffer + total_written, bytes);
buf               112 fs/minix/file.c 		bwrite(buf);
buf                24 fs/minix/namei.c 	struct buffer *buf;
buf                36 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
buf                43 fs/minix/namei.c 				d = (struct minix_dir_entry *)(buf->data + doffset);
buf                45 fs/minix/namei.c 					brelse(buf);
buf                50 fs/minix/namei.c 			brelse(buf);
buf                67 fs/minix/namei.c 	struct buffer *buf;
buf                77 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
buf                82 fs/minix/namei.c 				*d_res = (struct minix_dir_entry *)(buf->data + doffset);
buf                90 fs/minix/namei.c 						return buf;
buf                96 fs/minix/namei.c 							return buf;
buf               100 fs/minix/namei.c 							return buf;
buf               106 fs/minix/namei.c 			brelse(buf);
buf               120 fs/minix/namei.c 	struct buffer *buf;
buf               122 fs/minix/namei.c 	if(!(buf = find_dir_entry(dir, NULL, d_res, NULL))) {
buf               126 fs/minix/namei.c 		if(!(buf = bread(dir->dev, block, dir->sb->s_blocksize))) {
buf               129 fs/minix/namei.c 		*d_res = (struct minix_dir_entry *)buf->data;
buf               133 fs/minix/namei.c 	return buf;
buf               165 fs/minix/namei.c 	struct buffer *buf;
buf               178 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
buf               184 fs/minix/namei.c 				d = (struct minix_dir_entry *)(buf->data + doffset);
buf               195 fs/minix/namei.c 			brelse(buf);
buf               215 fs/minix/namei.c 	struct buffer *buf;
buf               227 fs/minix/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, NULL))) {
buf               244 fs/minix/namei.c 	bwrite(buf);
buf               253 fs/minix/namei.c 	struct buffer *buf;
buf               260 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir_new, &d))) {
buf               285 fs/minix/namei.c 	bwrite(buf);
buf               294 fs/minix/namei.c 	struct buffer *buf;
buf               300 fs/minix/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, name))) {
buf               316 fs/minix/namei.c 	bwrite(buf);
buf               325 fs/minix/namei.c 	struct buffer *buf, *buf_new;
buf               370 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
buf               403 fs/minix/namei.c 	bwrite(buf);
buf               412 fs/minix/namei.c 	struct buffer *buf, *buf_new;
buf               455 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
buf               492 fs/minix/namei.c 	bwrite(buf);
buf               501 fs/minix/namei.c 	struct buffer *buf;
buf               513 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
buf               562 fs/minix/namei.c 	bwrite(buf);
buf               570 fs/minix/namei.c 	struct buffer *buf;
buf               586 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
buf               619 fs/minix/namei.c 	bwrite(buf);
buf                87 fs/minix/super.c 	struct buffer *buf;
buf                91 fs/minix/super.c 	if(!(buf = bread(dev, SUPERBLOCK, BLKSIZE_1K))) {
buf                96 fs/minix/super.c 	memcpy_b(&sb->u.minix.sb, buf->data, sizeof(struct minix_super_block));
buf               130 fs/minix/super.c 			brelse(buf);
buf               141 fs/minix/super.c 		brelse(buf);
buf               169 fs/minix/super.c 		brelse(buf);
buf               175 fs/minix/super.c 		brelse(buf);
buf               183 fs/minix/super.c 		brelse(buf);
buf               191 fs/minix/super.c 		memcpy_b(buf->data, &sb->u.minix.sb, sizeof(struct minix_super_block));
buf               192 fs/minix/super.c 		bwrite(buf);
buf               194 fs/minix/super.c 		brelse(buf);
buf               202 fs/minix/super.c 	struct buffer *buf;
buf               210 fs/minix/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
buf               214 fs/minix/super.c 	minixsb = (struct minix_super_block *)buf->data;
buf               230 fs/minix/super.c 	bwrite(buf);
buf               236 fs/minix/super.c 	struct buffer *buf;
buf               239 fs/minix/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
buf               244 fs/minix/super.c 	memcpy_b(buf->data, &sb->u.minix.sb, sizeof(struct minix_super_block));
buf               247 fs/minix/super.c 	bwrite(buf);
buf                62 fs/minix/symlink.c 	struct buffer *buf;
buf                78 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[0], blksize))) {
buf                83 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[0], blksize))) {
buf                88 fs/minix/symlink.c 	memcpy_b(buffer, buf->data, count);
buf                89 fs/minix/symlink.c 	brelse(buf);
buf                97 fs/minix/symlink.c 	struct buffer *buf;
buf               117 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[0], i->sb->s_blocksize))) {
buf               122 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[0], i->sb->s_blocksize))) {
buf               127 fs/minix/symlink.c 	name = buf->data;
buf               132 fs/minix/symlink.c 	brelse(buf);
buf                33 fs/minix/v1_inode.c 	struct buffer *buf;
buf                36 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf                40 fs/minix/v1_inode.c 	zone = (__u16 *)buf->data;
buf                47 fs/minix/v1_inode.c 	bwrite(buf);
buf                55 fs/minix/v1_inode.c 	struct buffer *buf;
buf                60 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf                64 fs/minix/v1_inode.c 	ii = ((struct minix_inode *)buf->data) + offset;
buf               110 fs/minix/v1_inode.c 	brelse(buf);
buf               119 fs/minix/v1_inode.c 	struct buffer *buf;
buf               123 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf               127 fs/minix/v1_inode.c 	ii = ((struct minix_inode *)buf->data) + offset;
buf               141 fs/minix/v1_inode.c 	bwrite(buf);
buf               214 fs/minix/v1_inode.c 	struct buffer *buf, *buf2, *buf3;
buf               237 fs/minix/v1_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
buf               241 fs/minix/v1_inode.c 			memset_b(buf->data, 0, blksize);
buf               242 fs/minix/v1_inode.c 			bwrite(buf);
buf               254 fs/minix/v1_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
buf               258 fs/minix/v1_inode.c 			memset_b(buf->data, 0, blksize);
buf               259 fs/minix/v1_inode.c 			bwrite(buf);
buf               265 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[level], blksize))) {
buf               268 fs/minix/v1_inode.c 	indblock = (__u16 *)buf->data;
buf               278 fs/minix/v1_inode.c 				brelse(buf);
buf               284 fs/minix/v1_inode.c 				brelse(buf);
buf               291 fs/minix/v1_inode.c 				bwrite(buf);
buf               294 fs/minix/v1_inode.c 			buf->flags |= (BUFFER_DIRTY | BUFFER_VALID);
buf               296 fs/minix/v1_inode.c 			brelse(buf);
buf               302 fs/minix/v1_inode.c 		brelse(buf);
buf               309 fs/minix/v1_inode.c 		brelse(buf);
buf               316 fs/minix/v1_inode.c 			brelse(buf);
buf               323 fs/minix/v1_inode.c 			brelse(buf);
buf               333 fs/minix/v1_inode.c 	brelse(buf);
buf               343 fs/minix/v1_inode.c 	struct buffer *buf;
buf               380 fs/minix/v1_inode.c 		if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[MINIX_DIND_BLOCK], i->sb->s_blocksize))) {
buf               383 fs/minix/v1_inode.c 		zone = (__u16 *)buf->data;
buf               394 fs/minix/v1_inode.c 		bwrite(buf);
buf                34 fs/minix/v2_inode.c 	struct buffer *buf;
buf                37 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf                41 fs/minix/v2_inode.c 	zone = (__u32 *)buf->data;
buf                48 fs/minix/v2_inode.c 	bwrite(buf);
buf                56 fs/minix/v2_inode.c 	struct buffer *buf;
buf                61 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf                65 fs/minix/v2_inode.c 	ii = ((struct minix2_inode *)buf->data) + offset;
buf               111 fs/minix/v2_inode.c 	brelse(buf);
buf               120 fs/minix/v2_inode.c 	struct buffer *buf;
buf               124 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf               128 fs/minix/v2_inode.c 	ii = ((struct minix2_inode *)buf->data) + offset;
buf               144 fs/minix/v2_inode.c 	bwrite(buf);
buf               217 fs/minix/v2_inode.c 	struct buffer *buf, *buf2, *buf3, *buf4;
buf               243 fs/minix/v2_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
buf               247 fs/minix/v2_inode.c 			memset_b(buf->data, 0, blksize);
buf               248 fs/minix/v2_inode.c 			bwrite(buf);
buf               260 fs/minix/v2_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
buf               264 fs/minix/v2_inode.c 			memset_b(buf->data, 0, blksize);
buf               265 fs/minix/v2_inode.c 			bwrite(buf);
buf               271 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[level], blksize))) {
buf               274 fs/minix/v2_inode.c 	indblock = (__u32 *)buf->data;
buf               288 fs/minix/v2_inode.c 				brelse(buf);
buf               294 fs/minix/v2_inode.c 				brelse(buf);
buf               301 fs/minix/v2_inode.c 				bwrite(buf);
buf               304 fs/minix/v2_inode.c 			buf->flags |= (BUFFER_DIRTY | BUFFER_VALID);
buf               306 fs/minix/v2_inode.c 			brelse(buf);
buf               312 fs/minix/v2_inode.c 		brelse(buf);
buf               319 fs/minix/v2_inode.c 			brelse(buf);
buf               327 fs/minix/v2_inode.c 					brelse(buf);
buf               334 fs/minix/v2_inode.c 					brelse(buf);
buf               344 fs/minix/v2_inode.c 				brelse(buf);
buf               353 fs/minix/v2_inode.c 			brelse(buf);
buf               361 fs/minix/v2_inode.c 			brelse(buf);
buf               370 fs/minix/v2_inode.c 			brelse(buf);
buf               380 fs/minix/v2_inode.c 			brelse(buf);
buf               393 fs/minix/v2_inode.c 	brelse(buf);
buf               406 fs/minix/v2_inode.c 	struct buffer *buf;
buf               443 fs/minix/v2_inode.c 		if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[MINIX_DIND_BLOCK], i->sb->s_blocksize))) {
buf               446 fs/minix/v2_inode.c 		zone = (__u32 *)buf->data;
buf               457 fs/minix/v2_inode.c 		bwrite(buf);
buf               141 fs/procfs/dir.c 	char *buf;
buf               143 fs/procfs/dir.c 	if(!(buf = (void *)kmalloc())) {
buf               150 fs/procfs/dir.c 		len = proc_listdir(buf, count);
buf               167 fs/procfs/dir.c 		kfree((unsigned int)buf);
buf               170 fs/procfs/dir.c 	memcpy_b(buf + len, (char *)&procfs_array[lev], bytes);
buf               173 fs/procfs/dir.c 	memcpy_b(buffer, buf, len);
buf               174 fs/procfs/dir.c 	kfree((unsigned int)buf);
buf                80 fs/procfs/file.c 	char *buf;
buf                88 fs/procfs/file.c 	if(!(buf = (void *)kmalloc())) {
buf                92 fs/procfs/file.c 	size = d->data_fn(buf, (i->inode >> 12) & 0xFFFF);
buf               109 fs/procfs/file.c 		memcpy_b(buffer + total_read, buf + boffset, bytes);
buf               115 fs/procfs/file.c 	kfree((unsigned int)buf);
buf                65 fs/procfs/symlink.c 	char *buf;
buf                75 fs/procfs/symlink.c 	if(!(buf = (char *)kmalloc())) {
buf                79 fs/procfs/symlink.c 	if((size_read = d->data_fn(buf, (i->inode >> 12) & 0xFFFF)) > 0) {
buf                83 fs/procfs/symlink.c 		memcpy_b(buffer, buf, size_read);
buf                85 fs/procfs/symlink.c 	kfree((unsigned int)buf);
buf               239 kernel/syscalls/execve.c 	struct buffer *buf;
buf               293 kernel/syscalls/execve.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
buf               305 kernel/syscalls/execve.c 	memcpy_b(data, buf->data, i->sb->s_blocksize);
buf               306 kernel/syscalls/execve.c 	brelse(buf);
buf                17 kernel/syscalls/getcwd.c int sys_getcwd(char *buf, __size_t size)
buf                22 kernel/syscalls/getcwd.c 	printk("(pid %d) sys_getcwd(0x%08x, %d)\n", current->pid, (unsigned int)buf, size);
buf                25 kernel/syscalls/getcwd.c 	if((errno = check_user_area(VERIFY_WRITE, buf, size))) {
buf                17 kernel/syscalls/read.c int sys_read(unsigned int ufd, char *buf, int count)
buf                23 kernel/syscalls/read.c 	printk("(pid %d) sys_read(%d, 0x%08x, %d) -> ", current->pid, ufd, buf, count);
buf                27 kernel/syscalls/read.c 	if((errno = check_user_area(VERIFY_WRITE, buf, count))) {
buf                42 kernel/syscalls/read.c 		errno = i->fsop->read(i, &fd_table[current->fd[ufd]], buf, count);
buf                18 kernel/syscalls/times.c int sys_times(struct tms *buf)
buf                23 kernel/syscalls/times.c 	printk("(pid %d) sys_times(0x%08x) -> ", (unsigned int )buf);
buf                26 kernel/syscalls/times.c 	if((errno = check_user_area(VERIFY_WRITE, buf, sizeof(struct tms)))) {
buf                29 kernel/syscalls/times.c 	if(buf) {
buf                30 kernel/syscalls/times.c 		buf->tms_utime = tv2ticks(&current->usage.ru_utime);
buf                31 kernel/syscalls/times.c 		buf->tms_stime = tv2ticks(&current->usage.ru_stime);
buf                32 kernel/syscalls/times.c 		buf->tms_cutime = tv2ticks(&current->cusage.ru_utime);
buf                33 kernel/syscalls/times.c 		buf->tms_cstime = tv2ticks(&current->cusage.ru_stime);
buf                17 kernel/syscalls/write.c int sys_write(unsigned int ufd, const char *buf, int count)
buf                24 kernel/syscalls/write.c 	printk("(pid %d) sys_write(%d, 0x%08x, %d) -> ", current->pid, ufd, buf, count);
buf                28 kernel/syscalls/write.c 	if((errno = check_user_area(VERIFY_READ, buf, count))) {
buf                42 kernel/syscalls/write.c 		errno = i->fsop->write(i, &fd_table[current->fd[ufd]], buf, count);
buf                19 lib/strings.c  	char *buf;
buf                21 lib/strings.c  	if(!(buf = (void *)kmalloc())) {
buf                28 lib/strings.c  		buf[n2++] = *ptr >> 8;
buf                29 lib/strings.c  		buf[n2++] = *ptr & 0xFF;
buf                33 lib/strings.c  		if(buf[n] == NULL || buf[n] == ' ') {
buf                34 lib/strings.c  			buf[n] = NULL;
buf                39 lib/strings.c  	memcpy_b(str, buf, len);
buf                40 lib/strings.c  	kfree((unsigned int)buf);
buf               257 mm/page.c      void update_page_cache(struct inode *i, __off_t offset, const char *buf, int count)
buf               271 mm/page.c      			memcpy_b(pg->data + poffset, buf, bytes);
buf               303 mm/page.c      	struct buffer *buf;
buf               313 mm/page.c      			if(!(buf = bread(i->dev, block, blksize))) {
buf               316 mm/page.c      			memcpy_b(pg->data + size_read, buf->data, blksize);
buf               317 mm/page.c      			brelse(buf);