Searched refs:bhs (Results 1 - 25 of 43) sorted by relevance

12

/linux-master/fs/fat/
H A Dfatent.c45 struct buffer_head **bhs = fatent->bhs; local
47 WARN_ON(offset >= (bhs[0]->b_size - 1));
48 fatent->u.ent12_p[0] = bhs[0]->b_data + offset;
49 fatent->u.ent12_p[1] = bhs[0]->b_data + (offset + 1);
51 WARN_ON(offset != (bhs[0]->b_size - 1));
52 fatent->u.ent12_p[0] = bhs[0]->b_data + offset;
53 fatent->u.ent12_p[1] = bhs[1]->b_data;
60 fatent->u.ent16_p = (__le16 *)(fatent->bhs[0]->b_data + offset);
66 fatent->u.ent32_p = (__le32 *)(fatent->bhs[
72 struct buffer_head **bhs = fatent->bhs; local
198 struct buffer_head **bhs = fatent->bhs; local
325 struct buffer_head **bhs = fatent->bhs; local
376 fat_mirror_bhs(struct super_block *sb, struct buffer_head **bhs, int nr_bhs) argument
448 fat_collect_bhs(struct buffer_head **bhs, int *nr_bhs, struct fat_entry *fatent) argument
472 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; local
560 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; local
[all...]
H A Ddir.c1082 struct buffer_head **bhs, int nr_bhs)
1092 bhs[n] = sb_getblk(sb, blknr);
1093 if (!bhs[n]) {
1098 lock_buffer(bhs[n]);
1099 memset(bhs[n]->b_data, 0, sb->s_blocksize);
1100 set_buffer_uptodate(bhs[n]);
1101 unlock_buffer(bhs[n]);
1102 mark_buffer_dirty_inode(bhs[n], dir);
1108 err = fat_sync_bhs(bhs, n);
1113 brelse(bhs[
1081 fat_zeroed_cluster(struct inode *dir, sector_t blknr, int nr_used, struct buffer_head **bhs, int nr_bhs) argument
1137 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; local
1204 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; local
1286 struct buffer_head *bh, *prev, *bhs[3]; /* 32*slots (672bytes) */ local
[all...]
H A Dfat.h350 struct buffer_head *bhs[2]; member in struct:fat_entry
359 fatent->bhs[0] = fatent->bhs[1] = NULL;
374 brelse(fatent->bhs[i]);
376 fatent->bhs[0] = fatent->bhs[1] = NULL;
464 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
H A Dmisc.c362 int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs) argument
367 write_dirty_buffer(bhs[i], 0);
370 wait_on_buffer(bhs[i]);
371 if (!err && !buffer_uptodate(bhs[i]))
/linux-master/fs/ocfs2/
H A Dbuffer_head_io.c86 /* Caller must provide a bhs[] with all NULL or non-NULL entries, so it
90 unsigned int nr, struct buffer_head *bhs[])
105 new_bh = (bhs[0] == NULL);
108 if (bhs[i] == NULL) {
109 bhs[i] = sb_getblk(osb->sb, block++);
110 if (bhs[i] == NULL) {
116 bh = bhs[i];
155 bh = bhs[i - 1];
166 bhs[i - 1] = NULL;
190 /* Caller must provide a bhs[] wit
89 ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, unsigned int nr, struct buffer_head *bhs[]) argument
193 ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, struct buffer_head *bhs[], int flags, int (*validate)(struct super_block *sb, struct buffer_head *bh)) argument
[all...]
H A Dblockcheck.c429 * bhs is the blocks to be checked. bc is a pointer to the
441 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, argument
455 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
461 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data,
462 bhs[i]->b_size * 8,
463 bhs[i]->b_size * 8 * i);
485 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, argument
508 crc = crc32_le(crc, bhs[i]->b_data, bhs[
584 ocfs2_compute_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) argument
592 ocfs2_validate_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) argument
[all...]
H A Dblockcheck.h35 struct buffer_head **bhs, int nr,
38 struct buffer_head **bhs, int nr,
47 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
49 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
H A Dbuffer_head_io.h19 unsigned int nr, struct buffer_head *bhs[]);
29 struct buffer_head *bhs[], int flags,
H A Dextent_map.h52 struct buffer_head *bhs[], int flags,
H A Dnamei.c717 /* make sure both dirs have bhs
1305 /* make sure both dirs have bhs
1710 struct buffer_head **bhs = NULL; local
1732 bhs = kcalloc(blocks, sizeof(struct buffer_head *), GFP_KERNEL);
1733 if (!bhs) {
1759 bhs[virtual] = sb_getblk(sb, p_blkno);
1760 if (!bhs[virtual]) {
1766 bhs[virtual]); local
1769 bhs[virtual],
1776 memset(bhs[virtua
[all...]
H A Dextent_map.c957 struct buffer_head *bhs[], int flags,
966 inode, (unsigned long long)v_block, nr, bhs, flags,
1000 * If the caller passed us bhs, they should have come
1005 if (!bhs[done + i])
1007 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i));
1011 bhs + done, flags, validate);
956 ocfs2_read_virt_blocks(struct inode *inode, u64 v_block, int nr, struct buffer_head *bhs[], int flags, int (*validate)(struct super_block *sb, struct buffer_head *bh)) argument
/linux-master/fs/adfs/
H A Ddir.c30 memcpy(dst, dir->bhs[index]->b_data + offset, remain);
37 memcpy(dst, dir->bhs[index]->b_data + offset, len);
55 memcpy(dir->bhs[index]->b_data + offset, src, remain);
62 memcpy(dir->bhs[index]->b_data + offset, src, len);
71 if (dir->bhs != dir->bh)
72 kfree(dir->bhs);
73 dir->bhs = NULL;
82 brelse(dir->bhs[i]);
92 bforget(dir->bhs[i]);
100 struct buffer_head **bhs; local
[all...]
H A Ddir_fplus.c83 bp = (void *)dir->bhs[bi]->b_data;
84 bs = dir->bhs[bi]->b_size;
116 dir->bighead = h = (void *)dir->bhs[0]->b_data;
136 (dir->bhs[dir->nr_buffers - 1]->b_data + (sb->s_blocksize - 8));
H A Dadfs.h95 struct buffer_head **bhs; member in struct:adfs_dir
/linux-master/fs/isofs/
H A Dcompress.c58 struct buffer_head **bhs; local
78 bhs = kcalloc(needblocks + 1, sizeof(*bhs), GFP_KERNEL);
79 if (!bhs) {
83 haveblocks = isofs_get_blocks(inode, blocknum, bhs, needblocks);
84 bh_read_batch(haveblocks, bhs);
95 if (!bhs[0])
98 wait_on_buffer(bhs[0]);
99 if (!buffer_uptodate(bhs[0])) {
132 wait_on_buffer(bhs[curb
[all...]
/linux-master/fs/exfat/
H A Dmisc.c173 int exfat_update_bhs(struct buffer_head **bhs, int nr_bhs, int sync) argument
178 set_buffer_uptodate(bhs[i]);
179 mark_buffer_dirty(bhs[i]);
181 write_dirty_buffer(bhs[i], REQ_SYNC);
185 wait_on_buffer(bhs[i]);
186 if (!err && !buffer_uptodate(bhs[i]))
/linux-master/fs/gfs2/
H A Dmeta_io.c215 static void gfs2_submit_bhs(blk_opf_t opf, struct buffer_head *bhs[], int num) argument
218 struct buffer_head *bh = *bhs;
224 bh = *bhs;
229 bhs++;
252 struct buffer_head *bh, *bhs[2]; local
270 bhs[num++] = bh;
282 bhs[num++] = bh;
286 gfs2_submit_bhs(REQ_OP_READ | REQ_META | REQ_PRIO, bhs, num);
/linux-master/include/linux/
H A Dbuffer_head.h246 void __bh_read_batch(int nr, struct buffer_head *bhs[],
428 static inline void bh_read_batch(int nr, struct buffer_head *bhs[]) argument
430 __bh_read_batch(nr, bhs, 0, true);
433 static inline void bh_readahead_batch(int nr, struct buffer_head *bhs[], argument
436 __bh_read_batch(nr, bhs, op_flags, false);
/linux-master/arch/arm/mm/
H A Dcache-v4wt.S87 bhs __flush_whole_cache
H A Dcache-v4wb.S114 bhs __flush_whole_cache @ flush whole D cache
H A Dcache-fa.S87 bhs __flush_whole_cache @ flush whole D cache
/linux-master/fs/
H A Dbuffer.c1278 * The bhs[] array is sorted - newest buffer is at bhs[0]. Buffers have their
1293 struct buffer_head *bhs[BH_LRU_SIZE]; member in struct:bh_lru
1340 swap(evictee, b->bhs[i]);
1368 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]);
1374 __this_cpu_write(bh_lrus.bhs[i],
1375 __this_cpu_read(bh_lrus.bhs[i - 1]));
1378 __this_cpu_write(bh_lrus.bhs[0], bh);
1487 brelse(b->bhs[i]);
1488 b->bhs[
3094 __bh_read_batch(int nr, struct buffer_head *bhs[], blk_opf_t op_flags, bool force_lock) argument
[all...]
/linux-master/arch/arm/lib/
H A Dfindbit.S54 bhs 3b
/linux-master/fs/ext4/
H A Dxattr.c388 struct buffer_head **bhs = bhs_inline; local
392 bhs = kmalloc_array(bh_count, sizeof(*bhs), GFP_NOFS);
393 if (!bhs)
398 true /* wait */, bhs);
404 if (!bhs[i]) {
408 memcpy((char *)buf + blocksize * i, bhs[i]->b_data,
414 brelse(bhs[i]);
416 if (bhs != bhs_inline)
417 kfree(bhs);
[all...]
H A Dinode.c905 bool wait, struct buffer_head **bhs)
910 bhs[i] = ext4_getblk(NULL, inode, block + i, 0 /* map_flags */);
911 if (IS_ERR(bhs[i])) {
912 err = PTR_ERR(bhs[i]);
919 /* Note that NULL bhs[i] is valid because of holes. */
920 if (bhs[i] && !ext4_buffer_uptodate(bhs[i]))
921 ext4_read_bh_lock(bhs[i], REQ_META | REQ_PRIO, false);
927 if (bhs[i])
928 wait_on_buffer(bhs[
904 ext4_bread_batch(struct inode *inode, ext4_lblk_t block, int bh_count, bool wait, struct buffer_head **bhs) argument
[all...]

Completed in 287 milliseconds

12