/fs/jfs/ |
D | jfs_dmap.c | 70 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) argument 71 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) argument 72 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) argument 77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 85 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results); 86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 93 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks, [all …]
|
D | jfs_discard.c | 81 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim() local 99 if (minlen > bmp->db_agsize || in jfs_ioc_trim() 100 start >= bmp->db_mapsize || in jfs_ioc_trim() 104 if (end >= bmp->db_mapsize) in jfs_ioc_trim() 105 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
|
D | resize.c | 70 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() 501 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << in jfs_extendfs() 503 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); in jfs_extendfs()
|
D | jfs_imap.c | 867 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local 1043 amp = bmp = cmp = dmp = NULL; in diFree() 1080 if ((rc = diIAGRead(imap, back, &bmp))) in diFree() 1082 biagp = (struct iag *) bmp->data; in diFree() 1107 ciagp = (struct iag *) bmp->data; in diFree() 1121 diagp = (struct iag *) bmp->data; in diFree() 1232 if (bmp) in diFree() 1233 write_metapage(bmp); in diFree() 1294 if (bmp) in diFree() 1295 release_metapage(bmp); in diFree() [all …]
|
D | jfs_extent.c | 515 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/ |
D | alloc.c | 71 __le32 *bmp; in chk_if_allocated() local 72 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated() 73 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { in chk_if_allocated() 80 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated() 81 if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) { in chk_if_allocated() 117 __le32 *bmp; in alloc_in_bmp() local 129 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; in alloc_in_bmp() 131 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls; in alloc_in_bmp() 133 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp() 138 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp() [all …]
|
D | hpfs_fn.h | 187 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);
|
D | map.c | 111 __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() argument 122 __le32 *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory()
|
/fs/hfsplus/ |
D | xattr.c | 67 char *bmp; in hfsplus_init_header_node() local 112 bmp = buf + offset; in hfsplus_init_header_node() 117 memset(bmp, 0xFF, used_bmp_bytes); in hfsplus_init_header_node() 118 bmp += used_bmp_bytes; in hfsplus_init_header_node() 121 *bmp = ~(0xFF >> used_nodes); in hfsplus_init_header_node()
|
/fs/ntfs/ |
D | dir.c | 1115 u8 *kaddr, *bmp, *index_end; in ntfs_readdir() local 1264 bmp = (u8*)page_address(bmp_page); in ntfs_readdir() 1266 while (!(bmp[cur_bmp_pos >> 3] & (1 << (cur_bmp_pos & 7)))) { in ntfs_readdir()
|