Home
last modified time | relevance | path

Searched refs:ubh (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/fs/ufs/
Dutil.c22 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 …]
Dutil.h276 #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 …]
Dinode.c980 struct ufs_buffer_head *ubh = ubh_bread(sb, ind_block, uspi->s_bsize); in free_full_branch() local
983 if (!ubh) in free_full_branch()
988 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_full_branch()
997 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_full_branch()
1005 ubh_bforget(ubh); in free_full_branch()
1009 static void free_branch_tail(struct inode *inode, unsigned from, struct ufs_buffer_head *ubh, int d… in free_branch_tail() argument
1017 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_branch_tail()
1023 ubh_mark_buffer_dirty(ubh); in free_branch_tail()
1031 void *p = ubh_get_data_ptr(uspi, ubh, i); in free_branch_tail()
1037 ubh_mark_buffer_dirty(ubh); in free_branch_tail()
[all …]
Dsuper.c508 struct ufs_buffer_head * ubh; in ufs_read_cylinder_structures() local
529 ubh = ubh_bread(sb, uspi->s_csaddr + i, size); in ufs_read_cylinder_structures()
531 if (!ubh) in ufs_read_cylinder_structures()
534 ubh_ubhcpymem (space, ubh, size); in ufs_read_cylinder_structures()
537 ubh_brelse (ubh); in ufs_read_cylinder_structures()
538 ubh = NULL; in ufs_read_cylinder_structures()
648 struct ufs_buffer_head * ubh; in ufs_put_super_internal() local
664 ubh = ubh_bread(sb, uspi->s_csaddr + i, size); in ufs_put_super_internal()
666 ubh_memcpyubh (ubh, space, size); in ufs_put_super_internal()
668 ubh_mark_buffer_uptodate (ubh, 1); in ufs_put_super_internal()
[all …]
Dballoc.c761 struct ufs_buffer_head *ubh, in ubh_scanc() argument
777 cp = ubh->bh[begin]->b_data + offset; in ubh_scanc()