Home
last modified time | relevance | path

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

/linux-2.6.39/fs/hpfs/
Dbuffer.c55 void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, in hpfs_map_4sectors() argument
70 qbh->data = data = kmalloc(2048, GFP_NOFS); in hpfs_map_4sectors()
76 qbh->bh[0] = bh = sb_bread(s, secno); in hpfs_map_4sectors()
81 qbh->bh[1] = bh = sb_bread(s, secno + 1); in hpfs_map_4sectors()
86 qbh->bh[2] = bh = sb_bread(s, secno + 2); in hpfs_map_4sectors()
91 qbh->bh[3] = bh = sb_bread(s, secno + 3); in hpfs_map_4sectors()
99 brelse(qbh->bh[2]); in hpfs_map_4sectors()
101 brelse(qbh->bh[1]); in hpfs_map_4sectors()
103 brelse(qbh->bh[0]); in hpfs_map_4sectors()
114 struct quad_buffer_head *qbh) in hpfs_get_4sectors() argument
[all …]
Dalloc.c18 struct quad_buffer_head qbh; in chk_if_allocated() local
20 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
25 hpfs_brelse4(&qbh); in chk_if_allocated()
28 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated()
33 hpfs_brelse4(&qbh); in chk_if_allocated()
37 hpfs_brelse4(&qbh); in chk_if_allocated()
64 struct quad_buffer_head qbh; in alloc_in_bmp() local
77 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; in alloc_in_bmp()
79 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls; in alloc_in_bmp()
134 hpfs_mark_4buffers_dirty(&qbh); in alloc_in_bmp()
[all …]
Ddnode.c211 struct quad_buffer_head qbh; in fix_up_ptrs() local
213 if ((dd = hpfs_map_dnode(s, de_down_pointer(de), &qbh))) { in fix_up_ptrs()
217 hpfs_mark_4buffers_dirty(&qbh); in fix_up_ptrs()
219 hpfs_brelse4(&qbh); in fix_up_ptrs()
230 struct quad_buffer_head qbh, qbh1, qbh2; in hpfs_add_to_dnode() local
252 if (!(d = hpfs_map_dnode(i->i_sb, dno, &qbh))) { in hpfs_add_to_dnode()
260 hpfs_brelse4(&qbh); in hpfs_add_to_dnode()
272 hpfs_mark_4buffers_dirty(&qbh); in hpfs_add_to_dnode()
273 hpfs_brelse4(&qbh); in hpfs_add_to_dnode()
285 hpfs_brelse4(&qbh); in hpfs_add_to_dnode()
[all …]
Ddir.c27 struct quad_buffer_head qbh; in hpfs_dir_lseek() local
39 if (map_pos_dirent(i, &pos, &qbh)) hpfs_brelse4(&qbh); in hpfs_dir_lseek()
58 struct quad_buffer_head qbh; in hpfs_readdir() local
143 if (!(de = map_pos_dirent(inode, &filp->f_pos, &qbh))) { in hpfs_readdir()
155 hpfs_brelse4(&qbh); in hpfs_readdir()
162 hpfs_brelse4(&qbh); in hpfs_readdir()
166 hpfs_brelse4(&qbh); in hpfs_readdir()
192 struct quad_buffer_head qbh; in hpfs_lookup() local
212 de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, NULL, &qbh); in hpfs_lookup()
290 hpfs_brelse4(&qbh); in hpfs_lookup()
[all …]
Dmap.c11 unsigned *hpfs_map_dnode_bitmap(struct super_block *s, struct quad_buffer_head *qbh) in hpfs_map_dnode_bitmap() argument
13 return hpfs_map_4sectors(s, hpfs_sb(s)->sb_dmap, qbh, 0); in hpfs_map_dnode_bitmap()
17 struct quad_buffer_head *qbh, char *id) in hpfs_map_bitmap() argument
29 return hpfs_map_4sectors(s, sec, qbh, 4); in hpfs_map_bitmap()
211 struct quad_buffer_head *qbh) in hpfs_map_dnode() argument
221 if ((dnode = hpfs_map_4sectors(s, secno, qbh, DNODE_RD_AHEAD))) in hpfs_map_dnode()
270 hpfs_brelse4(qbh); in hpfs_map_dnode()
Dnamei.c360 struct quad_buffer_head qbh; in hpfs_unlink() local
372 de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); in hpfs_unlink()
384 r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); in hpfs_unlink()
427 hpfs_brelse4(&qbh); in hpfs_unlink()
437 struct quad_buffer_head qbh; in hpfs_rmdir() local
448 de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); in hpfs_rmdir()
465 r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); in hpfs_rmdir()
481 hpfs_brelse4(&qbh); in hpfs_rmdir()
530 struct quad_buffer_head qbh, qbh1; in hpfs_rename() local
551 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
[all …]
Dinode.c210 struct quad_buffer_head qbh; in hpfs_write_inode_nolock() local
215 if (!(de = map_fnode_dirent(i->i_sb, i->i_ino, fnode, &qbh))) { in hpfs_write_inode_nolock()
234 hpfs_mark_4buffers_dirty(&qbh); in hpfs_write_inode_nolock()
235 hpfs_brelse4(&qbh); in hpfs_write_inode_nolock()
238 if ((de = map_dirent(i, hpfs_inode->i_dno, "\001\001", 2, NULL, &qbh))) { in hpfs_write_inode_nolock()
245 hpfs_mark_4buffers_dirty(&qbh); in hpfs_write_inode_nolock()
246 hpfs_brelse4(&qbh); in hpfs_write_inode_nolock()
Dsuper.c120 struct quad_buffer_head qbh; in hpfs_count_one_bitmap() local
124 bits = hpfs_map_4sectors(s, secno, &qbh, 4); in hpfs_count_one_bitmap()
128 hpfs_brelse4(&qbh); in hpfs_count_one_bitmap()
466 struct quad_buffer_head qbh; in hpfs_fill_super() local
641 de = map_dirent(root, root_dno, "\001\001", 2, NULL, &qbh); in hpfs_fill_super()
657 hpfs_brelse4(&qbh); in hpfs_fill_super()
/linux-2.6.39/fs/ocfs2/
Dquota_local.c472 struct buffer_head *hbh = NULL, *qbh = NULL; in ocfs2_recover_local_quota_file() local
492 qbh = NULL; in ocfs2_recover_local_quota_file()
495 &qbh); in ocfs2_recover_local_quota_file()
500 dqblk = (struct ocfs2_local_disk_dqblk *)(qbh->b_data + in ocfs2_recover_local_quota_file()
546 qbh, OCFS2_JOURNAL_ACCESS_WRITE); in ocfs2_recover_local_quota_file()
551 lock_buffer(qbh); in ocfs2_recover_local_quota_file()
555 unlock_buffer(qbh); in ocfs2_recover_local_quota_file()
556 ocfs2_journal_dirty(handle, qbh); in ocfs2_recover_local_quota_file()
565 brelse(qbh); in ocfs2_recover_local_quota_file()