Home
last modified time | relevance | path

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

/fs/jfs/
Djfs_dmap.c68 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) argument
69 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) argument
70 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) argument
75 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
81 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
83 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
84 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
86 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
89 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
91 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
[all …]
Dresize.c70 struct bmap *bmp = sbi->bmap; in jfs_extendfs() local
186 if (newFSSize < bmp->db_mapsize) { in jfs_extendfs()
313 mapSize = bmp->db_mapsize; in jfs_extendfs()
316 old_agsize = bmp->db_agsize; /* We need to know if this changes */ in jfs_extendfs()
338 agsizechanged |= (bmp->db_agsize != old_agsize); in jfs_extendfs()
495 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << in jfs_extendfs()
497 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); in jfs_extendfs()
Djfs_imap.c868 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local
1046 amp = bmp = cmp = dmp = NULL; in diFree()
1083 if ((rc = diIAGRead(imap, back, &bmp))) in diFree()
1085 biagp = (struct iag *) bmp->data; in diFree()
1110 ciagp = (struct iag *) bmp->data; in diFree()
1124 diagp = (struct iag *) bmp->data; in diFree()
1235 if (bmp) in diFree()
1236 write_metapage(bmp); in diFree()
1297 if (bmp) in diFree()
1298 release_metapage(bmp); in diFree()
[all …]
Djfs_extent.c515 struct bmap *bmp = sbi->bmap; in extBalloc() local
524 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc()
553 atomic_inc(&bmp->db_active[ag]); in extBalloc()
556 atomic_dec(&bmp->db_active[ji->active_ag]); in extBalloc()
557 atomic_inc(&bmp->db_active[ag]); in extBalloc()
/fs/hpfs/
Dalloc.c19 u32 *bmp; in chk_if_allocated() local
20 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
21 if ((cpu_to_le32(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { in chk_if_allocated()
28 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated()
29 if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) { in chk_if_allocated()
65 unsigned *bmp; 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()
81 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp()
86 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp()
[all …]
Dhpfs_fn.h181 static inline unsigned tstbits(u32 *bmp, unsigned b, unsigned n) in tstbits() argument
185 if (!((le32_to_cpu(bmp[(b & 0x3fff) >> 5]) >> (b & 0x1f)) & 1)) return 1; in tstbits()
187 if (!((le32_to_cpu(bmp[((b+i) & 0x3fff) >> 5]) >> ((b+i) & 0x1f)) & 1)) in tstbits()
281 secno *hpfs_load_bitmap_directory(struct super_block *, secno bmp);
Dmap.c93 secno *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() argument
104 secno *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory()
/fs/ntfs/
Ddir.c1116 u8 *kaddr, *bmp, *index_end; in ntfs_readdir() local
1283 bmp = (u8*)page_address(bmp_page); in ntfs_readdir()
1285 while (!(bmp[cur_bmp_pos >> 3] & (1 << (cur_bmp_pos & 7)))) { in ntfs_readdir()