/fs/ubifs/ |
D | lprops.c | 42 return lprops->free; in get_heap_comp_val() 44 return lprops->free + lprops->dirty; in get_heap_comp_val() 416 if (lprops->free == c->leb_size) { in ubifs_categorize_lprops() 421 if (lprops->free + lprops->dirty == c->leb_size) { in ubifs_categorize_lprops() 429 if (lprops->dirty + lprops->free >= c->min_idx_node_sz) in ubifs_categorize_lprops() 433 lprops->dirty > lprops->free) in ubifs_categorize_lprops() 435 if (lprops->free > 0) in ubifs_categorize_lprops() 536 int free, int dirty, int flags, in ubifs_change_lp() argument 546 lprops->lnum, free, dirty, flags); in ubifs_change_lp() 558 ubifs_assert(free == LPROPS_NC || free >= 0); in ubifs_change_lp() [all …]
|
D | find.c | 66 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable() 108 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb() 114 if (lprops->free + lprops->dirty == c->leb_size) { in scan_for_dirty_cb() 149 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty() 165 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty() 192 ubifs_assert(lprops->free + lprops->dirty >= min_space); in scan_for_dirty() 195 lprops->free + lprops->dirty == c->leb_size)); in scan_for_dirty() 289 sum = idx_lp->free + idx_lp->dirty; in ubifs_find_dirty_leb() 306 if (lp->dirty + lp->free < min_space) in ubifs_find_dirty_leb() 312 if (idx_lp->free + idx_lp->dirty >= lp->free + lp->dirty) in ubifs_find_dirty_leb() [all …]
|
D | replay.c | 84 int free; member 111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 132 lp->free, lp->dirty); in set_bud_lprops() 134 lp->free, lp->dirty); in set_bud_lprops() 135 dirty -= c->leb_size - lp->free; in set_bud_lprops() 145 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops() 148 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, in set_bud_lprops() 157 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops() 679 b->free = c->leb_size - sleb->endpt; in replay_bud() 681 lnum, b->dirty, b->free); in replay_bud() [all …]
|
D | lpt.c | 361 pack_bits(&addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode() 424 pack_bits(&addr, &pos, ltab[i].free, c->lpt_spc_bits); in ubifs_pack_ltab() 479 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in set_ltab() argument 482 lnum, c->ltab[lnum - c->lpt_first].free, in set_ltab() 483 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in set_ltab() 485 c->ltab[lnum - c->lpt_first].free = free; in set_ltab() 646 ltab[i].free = c->leb_size; in ubifs_create_dflt_lpt() 663 pnode->lprops[0].free = c->leb_size - iopos; in ubifs_create_dflt_lpt() 669 pnode->lprops[1].free = c->leb_size - iopos; in ubifs_create_dflt_lpt() 673 pnode->lprops[i].free = c->leb_size; in ubifs_create_dflt_lpt() [all …]
|
D | budget.c | 637 long long ubifs_reported_space(const struct ubifs_info *c, long long free) in ubifs_reported_space() argument 658 free *= factor; in ubifs_reported_space() 659 return div_u64(free, divisor); in ubifs_reported_space() 681 long long available, outstanding, free; in ubifs_get_free_space_nolock() local 708 free = ubifs_reported_space(c, available - outstanding); in ubifs_get_free_space_nolock() 710 free = 0; in ubifs_get_free_space_nolock() 711 return free; in ubifs_get_free_space_nolock() 723 long long free; in ubifs_get_free_space() local 726 free = ubifs_get_free_space_nolock(c); in ubifs_get_free_space() 729 return free; in ubifs_get_free_space()
|
D | lpt_commit.c | 140 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument 143 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab() 144 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab() 146 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab() 168 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb() 178 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb() 726 long long free = 0; in need_write_all() local 731 free += c->leb_size - c->nhead_offs; in need_write_all() 732 else if (c->ltab[i].free == c->leb_size) in need_write_all() 733 free += c->leb_size; in need_write_all() [all …]
|
D | gc.c | 481 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb() 486 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb() 527 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 563 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 717 lp.lnum, lp.free, lp.dirty, lp.free + lp.dirty, in ubifs_garbage_collect()
|
D | sb.c | 731 int free = c->ltab[lnum - c->lpt_first].free; in fixup_free_space() local 733 if (free > 0) { in fixup_free_space() 734 err = fixup_leb(c, lnum, c->leb_size - free); in fixup_free_space() 755 if (lprops->free > 0) { in fixup_free_space() 756 err = fixup_leb(c, lnum, c->leb_size - lprops->free); in fixup_free_space()
|
D | ubifs.h | 482 int free; member 500 int free; member 698 int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad); 1572 long long ubifs_reported_space(const struct ubifs_info *c, long long free); 1724 int free, int dirty, int flags, 1734 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty, 1736 int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
|
/fs/reiserfs/ |
D | item_ops.c | 76 static int sd_check_left(struct virtual_item *vi, int free, in sd_check_left() argument 83 static int sd_check_right(struct virtual_item *vi, int free) in sd_check_right() argument 166 static int direct_check_left(struct virtual_item *vi, int free, in direct_check_left() argument 171 bytes = free - free % 8; in direct_check_left() 175 static int direct_check_right(struct virtual_item *vi, int free) in direct_check_right() argument 177 return direct_check_left(vi, free, 0, 0); in direct_check_right() 304 static int indirect_check_left(struct virtual_item *vi, int free, in indirect_check_left() argument 309 bytes = free - free % UNFM_P_SIZE; in indirect_check_left() 313 static int indirect_check_right(struct virtual_item *vi, int free) in indirect_check_right() argument 315 return indirect_check_left(vi, free, 0, 0); in indirect_check_right() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_dir2_node.c | 251 xfs_dir2_free_t *free; /* freespace structure */ in xfs_dir2_free_log_bests() local 254 free = bp->b_addr; in xfs_dir2_free_log_bests() 255 bests = args->dp->d_ops->free_bests_p(free); in xfs_dir2_free_log_bests() 256 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_bests() 257 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_bests() 259 (uint)((char *)&bests[first] - (char *)free), in xfs_dir2_free_log_bests() 260 (uint)((char *)&bests[last] - (char *)free + in xfs_dir2_free_log_bests() 273 xfs_dir2_free_t *free; /* freespace structure */ in xfs_dir2_free_log_header() local 275 free = bp->b_addr; in xfs_dir2_free_log_header() 276 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_header() [all …]
|
/fs/xfs/ |
D | xfs_filestream.c | 150 xfs_extlen_t longest, free = 0, minfree, maxfree = 0; in xfs_filestream_pick_ag() local 207 free = pag->pagf_freeblks; in xfs_filestream_pick_ag() 243 free = maxfree; in xfs_filestream_pick_ag() 249 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag() 254 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
|
D | xfs_bmap_util.c | 106 struct xfs_bmap_free_item *free; /* free extent item */ in xfs_bmap_finish() local 115 for (free = flist->xbf_first; free; free = free->xbfi_next) in xfs_bmap_finish() 116 xfs_trans_log_efi_extent(*tp, efi, free->xbfi_startblock, in xfs_bmap_finish() 117 free->xbfi_blockcount); in xfs_bmap_finish() 150 for (free = flist->xbf_first; free != NULL; free = next) { in xfs_bmap_finish() 151 next = free->xbfi_next; in xfs_bmap_finish() 153 error = xfs_trans_free_extent(*tp, efd, free->xbfi_startblock, in xfs_bmap_finish() 154 free->xbfi_blockcount); in xfs_bmap_finish() 158 xfs_bmap_del_free(flist, NULL, free); in xfs_bmap_finish()
|
D | xfs_fsops.c | 715 __int64_t free; in xfs_reserve_blocks() local 717 free = percpu_counter_sum(&mp->m_fdblocks) - in xfs_reserve_blocks() 719 if (!free) in xfs_reserve_blocks() 723 lcounter = free - delta; in xfs_reserve_blocks() 726 mp->m_resblks += free; in xfs_reserve_blocks() 727 mp->m_resblks_avail += free; in xfs_reserve_blocks() 728 fdblks_delta = -free; in xfs_reserve_blocks()
|
/fs/jffs2/ |
D | debug.c | 163 uint32_t free = 0, dirty = 0, used = 0, wasted = 0, in __jffs2_dbg_superblock_counts() local 170 free += c->gcblock->free_size; in __jffs2_dbg_superblock_counts() 178 free += c->nextblock->free_size; in __jffs2_dbg_superblock_counts() 186 free += jeb->free_size; in __jffs2_dbg_superblock_counts() 194 free += jeb->free_size; in __jffs2_dbg_superblock_counts() 202 free += jeb->free_size; in __jffs2_dbg_superblock_counts() 210 free += jeb->free_size; in __jffs2_dbg_superblock_counts() 218 free += jeb->free_size; in __jffs2_dbg_superblock_counts() 226 free += jeb->free_size; in __jffs2_dbg_superblock_counts() 234 free += jeb->free_size; in __jffs2_dbg_superblock_counts() [all …]
|
/fs/ocfs2/ |
D | sysfile.c | 61 struct inode **local_system_inodes, **free = NULL; in get_local_system_inode() local 89 free = local_system_inodes; in get_local_system_inode() 94 kfree(free); in get_local_system_inode()
|
/fs/squashfs/ |
D | decompressor_multi_percpu.c | 55 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create() 71 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
|
/fs/affs/ |
D | bitmap.c | 17 u32 free; in affs_count_free_blocks() local 28 free = 0; in affs_count_free_blocks() 30 free += bm->bm_free; in affs_count_free_blocks() 34 return free; in affs_count_free_blocks()
|
/fs/btrfs/ |
D | Makefile | 9 export.o tree-log.o free-space-cache.o zlib.o lzo.o \ 17 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
|
/fs/adfs/ |
D | dir.c | 63 ops->free(&dir); in adfs_readdir() 97 ops->free(&dir); in adfs_dir_update() 181 ops->free(&dir); in adfs_dir_lookup_byname()
|
/fs/logfs/ |
D | journal.c | 15 s64 free; in logfs_calc_free() local 31 free = no_segs * (super->s_segsize - LOGFS_SEGMENT_RESERVE); in logfs_calc_free() 32 free -= super->s_used_bytes; in logfs_calc_free() 34 free -= super->s_total_levels * 4096; in logfs_calc_free() 43 free -= reserve; in logfs_calc_free() 44 if (free < 0) in logfs_calc_free() 45 free = 0; in logfs_calc_free() 47 super->s_free_bytes = free; in logfs_calc_free()
|
/fs/ |
D | coredump.c | 80 int free, need; in cn_vprintf() local 84 free = cn->size - cn->used; in cn_vprintf() 87 need = vsnprintf(cn->corename + cn->used, free, fmt, arg_copy); in cn_vprintf() 90 if (need < free) { in cn_vprintf() 95 if (!expand_corename(cn, cn->size + need - free + 1)) in cn_vprintf()
|
/fs/notify/dnotify/ |
D | dnotify.c | 157 bool free = false; in dnotify_flush() local 188 free = true; in dnotify_flush() 193 if (free) in dnotify_flush()
|
/fs/ext4/ |
D | mballoc.c | 732 unsigned free = 0; in ext4_mb_generate_buddy() local 745 free += len; in ext4_mb_generate_buddy() 755 if (free != grp->bb_free) { in ext4_mb_generate_buddy() 759 free, grp->bb_free); in ext4_mb_generate_buddy() 764 grp->bb_free = free; in ext4_mb_generate_buddy() 1944 int free; in ext4_mb_complex_scan_group() local 1946 free = e4b->bd_info->bb_free; in ext4_mb_complex_scan_group() 1947 if (WARN_ON(free <= 0)) in ext4_mb_complex_scan_group() 1952 while (free && ac->ac_status == AC_STATUS_CONTINUE) { in ext4_mb_complex_scan_group() 1964 free); in ext4_mb_complex_scan_group() [all …]
|
D | xattr.c | 641 size_t free, min_offs = s->end - s->base, name_len = strlen(i->name); in ext4_xattr_set_entry() local 657 free = min_offs - ((void *)last - s->base) - sizeof(__u32); in ext4_xattr_set_entry() 661 free += EXT4_XATTR_SIZE(size); in ext4_xattr_set_entry() 663 free += EXT4_XATTR_LEN(name_len); in ext4_xattr_set_entry() 666 if (free < EXT4_XATTR_LEN(name_len) + in ext4_xattr_set_entry() 1300 size_t min_offs, free; in ext4_expand_extra_isize_ea() local 1334 free = ext4_xattr_free_space(last, &min_offs, base, &total_ino); in ext4_expand_extra_isize_ea() 1335 if (free >= isize_diff) { in ext4_expand_extra_isize_ea() 1365 free = ext4_xattr_free_space(first, &min_offs, base, NULL); in ext4_expand_extra_isize_ea() 1366 if (free < isize_diff) { in ext4_expand_extra_isize_ea() [all …]
|