Searched refs:ubh (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/fs/ufs/ |
D | util.c | 22 struct ufs_buffer_head * ubh; in _ubh_bread_() local 30 ubh = kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS); in _ubh_bread_() 31 if (!ubh) in _ubh_bread_() 33 ubh->fragment = fragment; in _ubh_bread_() 34 ubh->count = count; in _ubh_bread_() 36 if (!(ubh->bh[i] = sb_bread(sb, fragment + i))) in _ubh_bread_() 39 ubh->bh[i] = NULL; in _ubh_bread_() 40 return ubh; in _ubh_bread_() 43 brelse (ubh->bh[j]); in _ubh_bread_() 44 kfree(ubh); in _ubh_bread_() [all …]
|
D | util.h | 276 #define ubh_ubhcpymem(mem,ubh,size) _ubh_ubhcpymem_(uspi,mem,ubh,size) argument 278 #define ubh_memcpyubh(ubh,mem,size) _ubh_memcpyubh_(uspi,ubh,mem,size) argument 315 #define ubh_get_ucg(ubh) \ argument 316 ((struct ufs_cylinder_group *)((ubh)->bh[0]->b_data)) 323 #define ubh_get_addr8(ubh,begin) \ argument 324 ((u8*)(ubh)->bh[(begin) >> uspi->s_fshift]->b_data + \ 327 #define ubh_get_addr16(ubh,begin) \ argument 328 (((__fs16*)((ubh)->bh[(begin) >> (uspi->s_fshift-1)]->b_data)) + \ 331 #define ubh_get_addr32(ubh,begin) \ argument 332 (((__fs32*)((ubh)->bh[(begin) >> (uspi->s_fshift-2)]->b_data)) + \ [all …]
|
D | inode.c | 981 struct ufs_buffer_head *ubh = ubh_bread(sb, ind_block, uspi->s_bsize); in free_full_branch() local 984 if (!ubh) in free_full_branch() 989 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_full_branch() 998 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_full_branch() 1006 ubh_bforget(ubh); in free_full_branch() 1010 static void free_branch_tail(struct inode *inode, unsigned from, struct ufs_buffer_head *ubh, int d… in free_branch_tail() argument 1018 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_branch_tail() 1024 ubh_mark_buffer_dirty(ubh); in free_branch_tail() 1032 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_branch_tail() 1038 ubh_mark_buffer_dirty(ubh); in free_branch_tail() [all …]
|
D | super.c | 507 struct ufs_buffer_head * ubh; in ufs_read_cylinder_structures() local 528 ubh = ubh_bread(sb, uspi->s_csaddr + i, size); in ufs_read_cylinder_structures() 530 if (!ubh) in ufs_read_cylinder_structures() 533 ubh_ubhcpymem (space, ubh, size); in ufs_read_cylinder_structures() 536 ubh_brelse (ubh); in ufs_read_cylinder_structures() 537 ubh = NULL; in ufs_read_cylinder_structures() 647 struct ufs_buffer_head * ubh; in ufs_put_super_internal() local 663 ubh = ubh_bread(sb, uspi->s_csaddr + i, size); in ufs_put_super_internal() 665 ubh_memcpyubh (ubh, space, size); in ufs_put_super_internal() 667 ubh_mark_buffer_uptodate (ubh, 1); in ufs_put_super_internal() [all …]
|
D | balloc.c | 761 struct ufs_buffer_head *ubh, in ubh_scanc() argument 777 cp = ubh->bh[begin]->b_data + offset; in ubh_scanc()
|