Home
last modified time | relevance | path

Searched refs:qbh (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/fs/hpfs/
Dbuffer.c114 void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, in hpfs_map_4sectors() argument
130 if (!hpfs_map_sector(s, secno + 0, &qbh->bh[0], 0)) goto bail0; in hpfs_map_4sectors()
131 if (!hpfs_map_sector(s, secno + 1, &qbh->bh[1], 0)) goto bail1; in hpfs_map_4sectors()
132 if (!hpfs_map_sector(s, secno + 2, &qbh->bh[2], 0)) goto bail2; in hpfs_map_4sectors()
133 if (!hpfs_map_sector(s, secno + 3, &qbh->bh[3], 0)) goto bail3; in hpfs_map_4sectors()
135 if (likely(qbh->bh[1]->b_data == qbh->bh[0]->b_data + 1 * 512) && in hpfs_map_4sectors()
136 likely(qbh->bh[2]->b_data == qbh->bh[0]->b_data + 2 * 512) && in hpfs_map_4sectors()
137 likely(qbh->bh[3]->b_data == qbh->bh[0]->b_data + 3 * 512)) { in hpfs_map_4sectors()
138 return qbh->data = qbh->bh[0]->b_data; in hpfs_map_4sectors()
141 qbh->data = data = kmalloc(2048, GFP_NOFS); in hpfs_map_4sectors()
[all …]
Ddnode.c222 struct quad_buffer_head qbh; in fix_up_ptrs() local
224 if ((dd = hpfs_map_dnode(s, de_down_pointer(de), &qbh))) { in fix_up_ptrs()
228 hpfs_mark_4buffers_dirty(&qbh); in fix_up_ptrs()
230 hpfs_brelse4(&qbh); in fix_up_ptrs()
241 struct quad_buffer_head qbh, qbh1, qbh2; in hpfs_add_to_dnode() local
263 if (!(d = hpfs_map_dnode(i->i_sb, dno, &qbh))) { in hpfs_add_to_dnode()
271 hpfs_brelse4(&qbh); in hpfs_add_to_dnode()
283 hpfs_mark_4buffers_dirty(&qbh); in hpfs_add_to_dnode()
284 hpfs_brelse4(&qbh); in hpfs_add_to_dnode()
296 hpfs_brelse4(&qbh); in hpfs_add_to_dnode()
[all …]
Dalloc.c71 struct quad_buffer_head qbh; in chk_if_allocated() local
73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
78 hpfs_brelse4(&qbh); in chk_if_allocated()
81 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated()
86 hpfs_brelse4(&qbh); in chk_if_allocated()
90 hpfs_brelse4(&qbh); in chk_if_allocated()
117 struct quad_buffer_head qbh; in alloc_in_bmp() local
130 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; in alloc_in_bmp()
132 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls; in alloc_in_bmp()
187 hpfs_mark_4buffers_dirty(&qbh); in alloc_in_bmp()
[all …]
Ddir.c28 struct quad_buffer_head qbh; in hpfs_dir_lseek() local
44 if (map_pos_dirent(i, &pos, &qbh)) hpfs_brelse4(&qbh); in hpfs_dir_lseek()
69 struct quad_buffer_head qbh; in hpfs_readdir() local
155 if (!(de = map_pos_dirent(inode, &next_pos, &qbh))) { in hpfs_readdir()
168 hpfs_brelse4(&qbh); in hpfs_readdir()
175 hpfs_brelse4(&qbh); in hpfs_readdir()
180 hpfs_brelse4(&qbh); in hpfs_readdir()
206 struct quad_buffer_head qbh; in hpfs_lookup() local
226 de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, NULL, &qbh); in hpfs_lookup()
308 hpfs_brelse4(&qbh); in hpfs_lookup()
Dmap.c12 __le32 *hpfs_map_dnode_bitmap(struct super_block *s, struct quad_buffer_head *qbh) in hpfs_map_dnode_bitmap() argument
14 return hpfs_map_4sectors(s, hpfs_sb(s)->sb_dmap, qbh, 0); in hpfs_map_dnode_bitmap()
18 struct quad_buffer_head *qbh, char *id) in hpfs_map_bitmap() argument
32 ret = hpfs_map_4sectors(s, sec, qbh, 4); in hpfs_map_bitmap()
136 struct quad_buffer_head qbh; in hpfs_load_hotfix_map() local
148 if (!(directory = hpfs_map_4sectors(s, le32_to_cpu(spareblock->hotfix_map), &qbh, 0))) { in hpfs_load_hotfix_map()
157 hpfs_brelse4(&qbh); in hpfs_load_hotfix_map()
257 struct quad_buffer_head *qbh) in hpfs_map_dnode() argument
267 if ((dnode = hpfs_map_4sectors(s, secno, qbh, DNODE_RD_AHEAD))) in hpfs_map_dnode()
318 hpfs_brelse4(qbh); in hpfs_map_dnode()
Dnamei.c370 struct quad_buffer_head qbh; in hpfs_unlink() local
381 de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); in hpfs_unlink()
393 r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); in hpfs_unlink()
409 hpfs_brelse4(&qbh); in hpfs_unlink()
421 struct quad_buffer_head qbh; in hpfs_rmdir() local
432 de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); in hpfs_rmdir()
449 r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); in hpfs_rmdir()
465 hpfs_brelse4(&qbh); in hpfs_rmdir()
516 struct quad_buffer_head qbh, qbh1; in hpfs_rename() local
541 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
[all …]
Dinode.c214 struct quad_buffer_head qbh; in hpfs_write_inode_nolock() local
219 if (!(de = map_fnode_dirent(i->i_sb, i->i_ino, fnode, &qbh))) { in hpfs_write_inode_nolock()
238 hpfs_mark_4buffers_dirty(&qbh); in hpfs_write_inode_nolock()
239 hpfs_brelse4(&qbh); in hpfs_write_inode_nolock()
242 if ((de = map_dirent(i, hpfs_inode->i_dno, "\001\001", 2, NULL, &qbh))) { in hpfs_write_inode_nolock()
249 hpfs_mark_4buffers_dirty(&qbh); in hpfs_write_inode_nolock()
250 hpfs_brelse4(&qbh); in hpfs_write_inode_nolock()
Dsuper.c135 struct quad_buffer_head qbh; in hpfs_count_one_bitmap() local
139 bits = hpfs_map_4sectors(s, secno, &qbh, 0); in hpfs_count_one_bitmap()
143 hpfs_brelse4(&qbh); in hpfs_count_one_bitmap()
553 struct quad_buffer_head qbh; in hpfs_fill_super() local
724 de = map_dirent(root, root_dno, "\001\001", 2, NULL, &qbh); in hpfs_fill_super()
741 hpfs_brelse4(&qbh); in hpfs_fill_super()
/linux-6.6.21/fs/ocfs2/
Dquota_local.c468 struct buffer_head *hbh = NULL, *qbh = NULL; in ocfs2_recover_local_quota_file() local
488 qbh = NULL; in ocfs2_recover_local_quota_file()
491 &qbh); in ocfs2_recover_local_quota_file()
496 dqblk = (struct ocfs2_local_disk_dqblk *)(qbh->b_data + in ocfs2_recover_local_quota_file()
544 qbh, OCFS2_JOURNAL_ACCESS_WRITE); in ocfs2_recover_local_quota_file()
549 lock_buffer(qbh); in ocfs2_recover_local_quota_file()
553 unlock_buffer(qbh); in ocfs2_recover_local_quota_file()
554 ocfs2_journal_dirty(handle, qbh); in ocfs2_recover_local_quota_file()
563 brelse(qbh); in ocfs2_recover_local_quota_file()