Home
last modified time | relevance | path

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

/fs/jfs/
Djfs_dmap.c57 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) argument
58 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) argument
59 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) argument
64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
72 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
[all …]
Djfs_discard.c68 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim() local
86 if (minlen > bmp->db_agsize || in jfs_ioc_trim()
87 start >= bmp->db_mapsize || in jfs_ioc_trim()
91 if (end >= bmp->db_mapsize) in jfs_ioc_trim()
92 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
Dresize.c57 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()
Djfs_imap.c848 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local
1024 amp = bmp = cmp = dmp = NULL; in diFree()
1061 if ((rc = diIAGRead(imap, back, &bmp))) in diFree()
1063 biagp = (struct iag *) bmp->data; in diFree()
1088 ciagp = (struct iag *) bmp->data; in diFree()
1102 diagp = (struct iag *) bmp->data; in diFree()
1213 if (bmp) in diFree()
1214 write_metapage(bmp); in diFree()
1275 if (bmp) in diFree()
1276 release_metapage(bmp); in diFree()
[all …]
Djfs_extent.c502 struct bmap *bmp = sbi->bmap; in extBalloc() local
511 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc()
540 atomic_inc(&bmp->db_active[ag]); in extBalloc()
543 atomic_dec(&bmp->db_active[ji->active_ag]); in extBalloc()
544 atomic_inc(&bmp->db_active[ag]); in extBalloc()
/fs/hpfs/
Dalloc.c72 __le32 *bmp; in chk_if_allocated() local
73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
74 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { in chk_if_allocated()
81 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated()
82 if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) { in chk_if_allocated()
118 __le32 *bmp; in alloc_in_bmp() local
130 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; in alloc_in_bmp()
132 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls; in alloc_in_bmp()
134 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp()
139 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp()
[all …]
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);
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/hfsplus/
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/ntfs/
Ddir.c1101 u8 *kaddr, *bmp, *index_end; in ntfs_readdir() local
1250 bmp = (u8*)page_address(bmp_page); in ntfs_readdir()
1252 while (!(bmp[cur_bmp_pos >> 3] & (1 << (cur_bmp_pos & 7)))) { in ntfs_readdir()