Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 12 of 12) sorted by relevance

/fs/jfs/
A Djfs_dmap.c58 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) argument
194 !bmp->db_numag || (bmp->db_numag > MAXAG) || in dbMount()
221 memset(bmp->db_active, 0, sizeof(bmp->db_active)); in dbMount()
629 avgfree = (u32)bmp->db_nfree / bmp->db_numag; in dbNextAG()
2404 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits()
2409 if (bmp->db_agfree[bmp->db_maxag] != in dbFreeBits()
2418 if (bmp->db_agpref > bmp->db_maxag) in dbFreeBits()
2419 bmp->db_agpref = bmp->db_maxag; in dbFreeBits()
3428 bmp->db_agfree[n] += bmp->db_agfree[i]; in dbExtendFS()
3440 bmp->db_maxag = bmp->db_maxag / k; in dbExtendFS()
[all …]
A Djfs_discard.c68 struct bmap *bmp; in jfs_ioc_trim() local
87 bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
89 if (bmp == NULL || in jfs_ioc_trim()
90 minlen > bmp->db_agsize || in jfs_ioc_trim()
91 start >= bmp->db_mapsize || in jfs_ioc_trim()
97 if (end >= bmp->db_mapsize) in jfs_ioc_trim()
98 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
A Dresize.c58 struct bmap *bmp = sbi->bmap; in jfs_extendfs() local
173 if (newFSSize < bmp->db_mapsize) { in jfs_extendfs()
300 mapSize = bmp->db_mapsize; in jfs_extendfs()
303 old_agsize = bmp->db_agsize; /* We need to know if this changes */ in jfs_extendfs()
325 agsizechanged |= (bmp->db_agsize != old_agsize); in jfs_extendfs()
488 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << in jfs_extendfs()
490 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); in jfs_extendfs()
A Djfs_extent.c315 struct bmap *bmp = sbi->bmap; in extBalloc() local
326 if (bmp->db_maxfreebud == -1) in extBalloc()
329 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc()
358 atomic_inc(&bmp->db_active[ag]); in extBalloc()
361 atomic_dec(&bmp->db_active[ji->active_ag]); in extBalloc()
362 atomic_inc(&bmp->db_active[ag]); in extBalloc()
A Djfs_imap.c1215 if (bmp) in diFree()
1216 write_metapage(bmp); in diFree()
1277 if (bmp) in diFree()
1278 release_metapage(bmp); in diFree()
2034 &bmp))) { in diAllocBit()
2061 if (bmp) in diAllocBit()
2091 if (bmp) { in diAllocBit()
2093 write_metapage(bmp); in diAllocBit()
2378 if (bmp) in diNewExt()
2379 write_metapage(bmp); in diNewExt()
[all …]
/fs/hpfs/
A Dalloc.c72 __le32 *bmp; in chk_if_allocated() local
118 __le32 *bmp; in alloc_in_bmp() local
134 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp()
157 if (!le32_to_cpu(bmp[i])) goto cont; in alloc_in_bmp()
299 __le32 *bmp; in hpfs_alloc_if_possible() local
318 __le32 *bmp; in hpfs_free_sectors() local
364 __le32 *bmp; in hpfs_check_free_dnodes() local
387 if (bmp) { in hpfs_check_free_dnodes()
416 __le32 *bmp; in hpfs_free_dnode() local
492 while (tstbits(bmp, *idx, 1)) { in find_run()
[all …]
A Dhpfs_fn.h187 static inline unsigned tstbits(__le32 *bmp, unsigned b, unsigned n) in tstbits() argument
191 if (!((le32_to_cpu(bmp[(b & 0x3fff) >> 5]) >> (b & 0x1f)) & 1)) return 1; in tstbits()
193 if (!((le32_to_cpu(bmp[((b+i) & 0x3fff) >> 5]) >> ((b+i) & 0x1f)) & 1)) in tstbits()
293 __le32 *hpfs_load_bitmap_directory(struct super_block *, secno bmp);
A Dmap.c112 __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() argument
123 __le32 *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory()
/fs/xfs/scrub/
A Drmap.c288 struct xagb_bitmap *bmp = NULL; in xchk_rmapbt_mark_bitmap() local
308 bmp = &cr->fs_owned; in xchk_rmapbt_mark_bitmap()
311 bmp = &cr->log_owned; in xchk_rmapbt_mark_bitmap()
314 bmp = &cr->ag_owned; in xchk_rmapbt_mark_bitmap()
317 bmp = &cr->inobt_owned; in xchk_rmapbt_mark_bitmap()
320 bmp = &cr->refcbt_owned; in xchk_rmapbt_mark_bitmap()
324 if (!bmp) in xchk_rmapbt_mark_bitmap()
327 if (xagb_bitmap_test(bmp, irec->rm_startblock, &fsbcount)) { in xchk_rmapbt_mark_bitmap()
348 return xagb_bitmap_clear(bmp, irec->rm_startblock, irec->rm_blockcount); in xchk_rmapbt_mark_bitmap()
/fs/hfsplus/
A Dxattr.c62 char *bmp; in hfsplus_init_header_node() local
107 bmp = buf + offset; in hfsplus_init_header_node()
112 memset(bmp, 0xFF, used_bmp_bytes); in hfsplus_init_header_node()
113 bmp += used_bmp_bytes; in hfsplus_init_header_node()
116 *bmp = ~(0xFF >> used_nodes); in hfsplus_init_header_node()
/fs/ntfs3/
A Dindex.c1493 struct ATTRIB *bmp, *alloc; in indx_add_allocate() local
1497 err = indx_find_free(indx, ni, &bit, &bmp); in indx_add_allocate()
1502 bmp = NULL; in indx_add_allocate()
1504 if (bmp->non_res) { in indx_add_allocate()
1505 bmp_size = le64_to_cpu(bmp->nres.data_size); in indx_add_allocate()
1506 bmp_size_v = le64_to_cpu(bmp->nres.valid_size); in indx_add_allocate()
1508 bmp_size = bmp_size_v = le32_to_cpu(bmp->res.data_size); in indx_add_allocate()
1516 if (bmp) { in indx_add_allocate()
1530 if (bmp) in indx_add_allocate()
1545 if (bmp) in indx_add_allocate()
A Dbitmap.c1533 const ulong *bmp = bitmap; in ntfs_bitmap_weight_le() local
1538 w += hweight_long(bmp[k]); in ntfs_bitmap_weight_le()

Completed in 41 milliseconds