Home
last modified time | relevance | path

Searched refs:used_blocks (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/mtd/ubi/
H A Dfastmap.c791 ai->bad_peb_count - fm->used_blocks)) in ubi_attach_fastmap()
869 int i, used_blocks, pnum, fm_anchor, ret = 0; in ubi_scan_fastmap() local
925 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
926 if (used_blocks > UBI_FM_MAX_BLOCKS || used_blocks < 1) { in ubi_scan_fastmap()
928 used_blocks); in ubi_scan_fastmap()
933 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()
955 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1051 fm->used_blocks = used_blocks; in ubi_scan_fastmap()
1060 for (i = 0; i < used_blocks; i++) { in ubi_scan_fastmap()
1188 fmsb->used_blocks = cpu_to_be32(new_fm->used_blocks); in ubi_write_fastmap()
[all …]
H A Dubi-media.h412 __be32 used_blocks; member
H A Dubi.h235 int used_blocks; member
1228 for (i = 0; i < ubi->fm->used_blocks; i++) { in ubi_find_fm_block()
H A Dfastmap-wl.c544 for (i = 0; i < ubi->fm->used_blocks; i++) in ubi_fastmap_close()
/linux/fs/befs/
H A Dsuper.c37 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); in befs_load_sb()
H A Dbefs.h38 befs_off_t used_blocks; member
H A Dbefs_fs_types.h122 fs64 used_blocks; member
H A Ddebug.c173 befs_debug(sb, " used_blocks %llu", fs64_to_cpu(sb, sup->used_blocks)); in befs_dump_super_block()
/linux/fs/gfs2/
H A Dlog.c1035 unsigned int reserved_blocks = 0, used_blocks = 0; in gfs2_log_flush() local
1141 used_blocks = log_distance(sdp, sdp->sd_log_flush_head, first_log_head); in gfs2_log_flush()
1148 if (used_blocks != reserved_blocks) { in gfs2_log_flush()
1149 gfs2_assert_withdraw_delayed(sdp, used_blocks < reserved_blocks); in gfs2_log_flush()
1150 gfs2_log_release(sdp, reserved_blocks - used_blocks); in gfs2_log_flush()
/linux/include/linux/
H A Dshmem_fs.h59 struct percpu_counter used_blocks; /* How many are allocated */ member
/linux/drivers/infiniband/hw/hfi1/
H A Dpio.c188 int used_blocks; in init_sc_pools_and_sizes() local
376 used_blocks = 0; in init_sc_pools_and_sizes()
390 used_blocks += dd->sc_sizes[i].size * dd->sc_sizes[i].count; in init_sc_pools_and_sizes()
392 extra = total_blocks - used_blocks; in init_sc_pools_and_sizes()
/linux/include/trace/events/
H A Dext4.h1213 TP_PROTO(struct inode *inode, int used_blocks, int quota_claim),
1215 TP_ARGS(inode, used_blocks, quota_claim),
1221 __field( int, used_blocks )
1231 __entry->used_blocks = used_blocks;
1243 __entry->used_blocks, __entry->reserved_data_blocks,
/linux/mm/
H A Dshmem.c234 if (!percpu_counter_limited_add(&sbinfo->used_blocks, in shmem_inode_acct_blocks()
240 percpu_counter_sub(&sbinfo->used_blocks, pages); in shmem_inode_acct_blocks()
265 percpu_counter_sub(&sbinfo->used_blocks, pages); in shmem_inode_unacct_blocks()
3646 percpu_counter_sum(&sbinfo->used_blocks); in shmem_statfs()
4648 if (percpu_counter_compare(&sbinfo->used_blocks, in shmem_reconfigure()
4814 percpu_counter_destroy(&sbinfo->used_blocks); in shmem_put_super()
4898 if (percpu_counter_init(&sbinfo->used_blocks, 0, GFP_KERNEL)) in shmem_fill_super()