Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 25 of 35) sorted by relevance

12

/fs/nfs/
Dnfs4xdr.c799 static void encode_getattr_one(struct xdr_stream *xdr, uint32_t bitmap, struct compound_hdr *hdr) in encode_getattr_one() argument
806 WRITE32(bitmap); in encode_getattr_one()
2121 static int decode_attr_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_attr_bitmap() argument
2129 bitmap[0] = bitmap[1] = 0; in decode_attr_bitmap()
2132 READ32(bitmap[0]); in decode_attr_bitmap()
2134 READ32(bitmap[1]); in decode_attr_bitmap()
2149 static int decode_attr_supported(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *bitmask) in decode_attr_supported() argument
2151 if (likely(bitmap[0] & FATTR4_WORD0_SUPPORTED_ATTRS)) { in decode_attr_supported()
2153 bitmap[0] &= ~FATTR4_WORD0_SUPPORTED_ATTRS; in decode_attr_supported()
2160 static int decode_attr_type(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *type) in decode_attr_type() argument
[all …]
Dcallback_xdr.c102 static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_bitmap() argument
115 bitmap[0] = ntohl(*p++); in decode_bitmap()
117 bitmap[1] = ntohl(*p); in decode_bitmap()
180 status = decode_bitmap(xdr, args->bitmap); in decode_getattr_args()
220 static __be32 encode_attr_bitmap(struct xdr_stream *xdr, const uint32_t *bitmap, __be32 **savep) in encode_attr_bitmap() argument
225 bm[0] = htonl(bitmap[0] & CB_SUPPORTED_ATTR0); in encode_attr_bitmap()
226 bm[1] = htonl(bitmap[1] & CB_SUPPORTED_ATTR1); in encode_attr_bitmap()
250 static __be32 encode_attr_change(struct xdr_stream *xdr, const uint32_t *bitmap, uint64_t change) in encode_attr_change() argument
254 if (!(bitmap[0] & FATTR4_WORD0_CHANGE)) in encode_attr_change()
263 static __be32 encode_attr_size(struct xdr_stream *xdr, const uint32_t *bitmap, uint64_t size) in encode_attr_size() argument
[all …]
Dcallback_proc.c26 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr()
49 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) & in nfs4_callback_getattr()
50 args->bitmap[0]; in nfs4_callback_getattr()
51 res->bitmap[1] = (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY) & in nfs4_callback_getattr()
52 args->bitmap[1]; in nfs4_callback_getattr()
Dcallback.h43 uint32_t bitmap[2]; member
48 uint32_t bitmap[2]; member
/fs/hfs/
Dbitmap.c29 static u32 hfs_find_set_zero_bits(__be32 *bitmap, u32 size, u32 offset, u32 *max) in hfs_find_set_zero_bits() argument
40 curr = bitmap + (offset / 32); in hfs_find_set_zero_bits()
41 end = bitmap + ((size + 31) / 32); in hfs_find_set_zero_bits()
70 start = (curr - bitmap) * 32 + i; in hfs_find_set_zero_bits()
108 *max = (curr - bitmap) * 32 + i - start; in hfs_find_set_zero_bits()
141 void *bitmap; in hfs_vbm_search_free() local
149 bitmap = HFS_SB(sb)->bitmap; in hfs_vbm_search_free()
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
210 curr = HFS_SB(sb)->bitmap + (start / 32); in hfs_clear_vbm_bits()
Dmdb.c168 HFS_SB(sb)->bitmap = (__be32 *)__get_free_pages(GFP_KERNEL, PAGE_SIZE < 8192 ? 1 : 0); in hfs_mdb_get()
169 if (!HFS_SB(sb)->bitmap) in hfs_mdb_get()
176 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_get()
302 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_commit()
DMakefile7 hfs-objs := bitmap.o bfind.o bnode.o brec.o btree.o \
/fs/reiserfs/
Dresize.c24 struct reiserfs_bitmap_info *bitmap; in reiserfs_resize() local
114 bitmap = in reiserfs_resize()
116 if (!bitmap) { in reiserfs_resize()
122 memset(bitmap, 0, in reiserfs_resize()
125 bitmap[i] = old_bitmap[i]; in reiserfs_resize()
136 vfree(bitmap); in reiserfs_resize()
141 reiserfs_cache_bitmap_metadata(s, bh, bitmap + i); in reiserfs_resize()
147 bitmap[i].free_count = sb_blocksize(sb) * 8 - 1; in reiserfs_resize()
151 SB_AP_BITMAP(s) = bitmap; in reiserfs_resize()
Dbitmap.c1240 unsigned int bitmap) in reiserfs_read_bitmap_block() argument
1242 b_blocknr_t block = (sb->s_blocksize << 3) * bitmap; in reiserfs_read_bitmap_block()
1243 struct reiserfs_bitmap_info *info = SB_AP_BITMAP(sb) + bitmap; in reiserfs_read_bitmap_block()
1250 block = REISERFS_SB(sb)->s_sbh->b_blocknr + 1 + bitmap; in reiserfs_read_bitmap_block()
1251 else if (bitmap == 0) in reiserfs_read_bitmap_block()
1275 struct reiserfs_bitmap_info *bitmap; in reiserfs_init_bitmap_cache() local
1278 bitmap = vmalloc(sizeof(*bitmap) * bmap_nr); in reiserfs_init_bitmap_cache()
1279 if (bitmap == NULL) in reiserfs_init_bitmap_cache()
1282 memset(bitmap, 0xff, sizeof(*bitmap) * bmap_nr); in reiserfs_init_bitmap_cache()
1284 SB_AP_BITMAP(sb) = bitmap; in reiserfs_init_bitmap_cache()
DMakefile7 reiserfs-objs := bitmap.o do_balan.o namei.o inode.o file.o dir.o fix_node.o \
/fs/udf/
Dballoc.c85 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap() argument
92 loc.logicalBlockNum = bitmap->s_extPosition; in read_block_bitmap()
99 bitmap->s_block_bitmap[bitmap_nr] = bh; in read_block_bitmap()
104 struct udf_bitmap *bitmap, in __load_block_bitmap() argument
108 int nr_groups = bitmap->s_nr_groups; in __load_block_bitmap()
115 if (bitmap->s_block_bitmap[block_group]) { in __load_block_bitmap()
118 retval = read_block_bitmap(sb, bitmap, block_group, in __load_block_bitmap()
127 struct udf_bitmap *bitmap, in load_block_bitmap() argument
132 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap()
137 if (!bitmap->s_block_bitmap[slot]) in load_block_bitmap()
[all …]
Dsuper.c1064 struct udf_bitmap *bitmap; in udf_sb_alloc_bitmap() local
1073 bitmap = kmalloc(size, GFP_KERNEL); in udf_sb_alloc_bitmap()
1075 bitmap = vmalloc(size); /* TODO: get rid of vmalloc */ in udf_sb_alloc_bitmap()
1077 if (bitmap == NULL) { in udf_sb_alloc_bitmap()
1084 memset(bitmap, 0x00, size); in udf_sb_alloc_bitmap()
1085 bitmap->s_block_bitmap = (struct buffer_head **)(bitmap + 1); in udf_sb_alloc_bitmap()
1086 bitmap->s_nr_groups = nr_groups; in udf_sb_alloc_bitmap()
1087 return bitmap; in udf_sb_alloc_bitmap()
1140 struct udf_bitmap *bitmap = udf_sb_alloc_bitmap(sb, p_index); in udf_fill_partdesc_info() local
1141 if (!bitmap) in udf_fill_partdesc_info()
[all …]
/fs/gfs2/
Dutil.c248 void gfs2_icbit_munge(struct gfs2_sbd *sdp, unsigned char **bitmap, in gfs2_icbit_munge() argument
259 old_value = (bitmap[c][o] & (1 << b)); in gfs2_icbit_munge()
263 bitmap[c][o] |= 1 << b; in gfs2_icbit_munge()
265 bitmap[c][o] &= ~(1 << b); in gfs2_icbit_munge()
Dutil.h166 void gfs2_icbit_munge(struct gfs2_sbd *sdp, unsigned char **bitmap,
/fs/ocfs2/
Dlocalalloc.c742 void *bitmap; in ocfs2_claim_local_alloc_bits() local
761 bitmap = la->la_bitmap; in ocfs2_claim_local_alloc_bits()
776 ocfs2_set_bit(start++, bitmap); in ocfs2_claim_local_alloc_bits()
814 void *bitmap = NULL; in ocfs2_local_alloc_find_clear_bits() local
824 bitmap = OCFS2_LOCAL_ALLOC(alloc)->la_bitmap; in ocfs2_local_alloc_find_clear_bits()
829 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { in ocfs2_local_alloc_find_clear_bits()
885 static void ocfs2_verify_zero_bits(unsigned long *bitmap,
891 if (ocfs2_test_bit(start + tmp, bitmap)) {
918 void *bitmap; in ocfs2_sync_local_to_main() local
938 bitmap = la->la_bitmap; in ocfs2_sync_local_to_main()
[all …]
/fs/affs/
DChanges22 bitmap flag set valid.
34 - fix for a possible bitmap corruption
79 - new bitmap allocation functions
189 the bitmap was changed, so the bitmap wasn't sync'd.
234 bitmap pointers read only, also allows them
DMakefile9 affs-objs := super.o namei.o inode.o file.o dir.o amigaffs.o bitmap.o symlink.o
/fs/omfs/
DMakefile4 omfs-y := bitmap.o dir.o file.o inode.o
/fs/minix/
DMakefile7 minix-objs := bitmap.o itree_v1.o itree_v2.o namei.o inode.o file.o dir.o
/fs/qnx4/
DMakefile7 qnx4-objs := inode.o dir.o namei.o file.o bitmap.o truncate.o fsync.o
/fs/hfsplus/
DMakefile8 bnode.o brec.o bfind.o tables.o unicode.o wrapper.o bitmap.o part_tbl.o
/fs/ext3/
DMakefile7 ext3-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
/fs/ext4/
Dgroup.h28 extern void mark_bitmap_end(int start_bit, int end_bit, char *bitmap);
DMakefile7 ext4-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
Dmballoc.c336 static void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap,
338 static void ext4_mb_generate_from_freelist(struct super_block *sb, void *bitmap,
483 static void mb_cmp_bitmaps(struct ext4_buddy *e4b, void *bitmap) in mb_cmp_bitmaps() argument
485 if (memcmp(e4b->bd_info->bb_bitmap, bitmap, e4b->bd_sb->s_blocksize)) { in mb_cmp_bitmaps()
489 b2 = (unsigned char *) bitmap; in mb_cmp_bitmaps()
513 static inline void mb_cmp_bitmaps(struct ext4_buddy *e4b, void *bitmap) in mb_cmp_bitmaps() argument
674 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument
687 i = mb_find_next_zero_bit(bitmap, max, 0); in ext4_mb_generate_buddy()
692 i = mb_find_next_bit(bitmap, max, i); in ext4_mb_generate_buddy()
700 i = mb_find_next_zero_bit(bitmap, max, i); in ext4_mb_generate_buddy()
[all …]

12