Home
last modified time | relevance | path

Searched refs:usedmap (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/fs/xfs/scrub/
Dattr.c37 kvfree(ab->usedmap); in xchk_xattr_buf_cleanup()
38 ab->usedmap = NULL; in xchk_xattr_buf_cleanup()
94 ab->usedmap = kvmalloc(bmp_sz, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf()
95 if (!ab->usedmap) in xchk_setup_xattr_buf()
313 return !bitmap_intersects(ab->freemap, ab->usedmap, mapsize); in xchk_xattr_check_freemap()
373 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, nameidx, namesize)) in xchk_xattr_entry()
405 bitmap_zero(ab->usedmap, mp->m_attr_geo->blksize); in xchk_xattr_block()
440 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, 0, hdrsize)) in xchk_xattr_block()
456 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, off, in xchk_xattr_block()
581 bitmap_zero(ab->usedmap, ifp->if_bytes); in xchk_xattr_check_sf()
[all …]
Dattr_repair.c259 if (!xchk_xattr_set_map(sc, ab->usedmap, (char *)name - (char *)hdr, in xrep_xattr_salvage_sf_attr()
263 if (!xchk_xattr_set_map(sc, ab->usedmap, (char *)value - (char *)hdr, in xrep_xattr_salvage_sf_attr()
304 if (!xchk_xattr_set_map(rx->sc, ab->usedmap, nameidx, namesize)) in xrep_xattr_salvage_local_attr()
354 if (!xchk_xattr_set_map(rx->sc, ab->usedmap, nameidx, namesize)) in xrep_xattr_salvage_remote_attr()
408 bitmap_zero(ab->usedmap, mp->m_attr_geo->blksize); in xrep_xattr_recover_leaf()
414 xchk_xattr_set_map(sc, ab->usedmap, 0, hdrsize); in xrep_xattr_recover_leaf()
424 if (!xchk_xattr_set_map(sc, ab->usedmap, off, in xrep_xattr_recover_leaf()
468 bitmap_zero(ab->usedmap, ifp->if_bytes); in xrep_xattr_recover_sf()
470 xchk_xattr_set_map(sc, ab->usedmap, 0, sizeof(*hdr)); in xrep_xattr_recover_sf()
484 if (xchk_xattr_set_map(sc, ab->usedmap, in xrep_xattr_recover_sf()
Dattr.h14 unsigned long *usedmap; member
/linux-6.12.1/drivers/mtd/
Dmtdpstore.c18 unsigned long *usedmap; /* used bit map */ member
67 set_bit(zonenum, cxt->usedmap); in mtdpstore_mark_used()
77 clear_bit(zonenum, cxt->usedmap); in mtdpstore_mark_unused()
91 clear_bit(zonenum, cxt->usedmap); in mtdpstore_block_mark_unused()
104 return test_bit(zonenum, cxt->usedmap); in mtdpstore_is_used()
117 if (test_bit(zonenum, cxt->usedmap)) in mtdpstore_block_is_used()
250 if (!test_bit(num, cxt->usedmap)) in mtdpstore_security()
421 cxt->usedmap = kcalloc(longcnt, sizeof(long), GFP_KERNEL); in mtdpstore_notify_add()
531 kfree(cxt->usedmap); in mtdpstore_notify_remove()