/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() 716 b->free = c->leb_size - sleb->endpt; in replay_bud() 718 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 | 139 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument 142 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab() 143 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab() 145 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab() 167 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb() 177 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb() 725 long long free = 0; in need_write_all() local 730 free += c->leb_size - c->nhead_offs; in need_write_all() 731 else if (c->ltab[i].free == c->leb_size) in need_write_all() 732 free += c->leb_size; in need_write_all() [all …]
|
D | gc.c | 477 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb() 482 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb() 523 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 559 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 713 lp.lnum, lp.free, lp.dirty, lp.free + lp.dirty, in ubifs_garbage_collect()
|
D | ubifs.h | 467 int free; member 485 int free; member 680 int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad); 1561 long long ubifs_reported_space(const struct ubifs_info *c, long long free); 1718 int free, int dirty, int flags, 1728 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty, 1730 int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
|
D | sb.c | 766 int free = c->ltab[lnum - c->lpt_first].free; in fixup_free_space() local 768 if (free > 0) { in fixup_free_space() 769 err = fixup_leb(c, lnum, c->leb_size - free); in fixup_free_space() 790 if (lprops->free > 0) { in fixup_free_space() 791 err = fixup_leb(c, lnum, c->leb_size - lprops->free); in fixup_free_space()
|
/fs/xfs/ |
D | xfs_trans_extfree.c | 151 struct xfs_extent_free_item *free; in xfs_extent_free_log_item() local 155 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_log_item() 168 extp->ext_start = free->xefi_startblock; in xfs_extent_free_log_item() 169 extp->ext_len = free->xefi_blockcount; in xfs_extent_free_log_item() 191 struct xfs_extent_free_item *free; in xfs_extent_free_finish_item() local 194 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_finish_item() 196 free->xefi_startblock, in xfs_extent_free_finish_item() 197 free->xefi_blockcount, in xfs_extent_free_finish_item() 198 &free->xefi_oinfo); in xfs_extent_free_finish_item() 199 kmem_free(free); in xfs_extent_free_finish_item() [all …]
|
D | xfs_filestream.c | 152 xfs_extlen_t longest, free = 0, minfree, maxfree = 0; in xfs_filestream_pick_ag() local 210 free = pag->pagf_freeblks; in xfs_filestream_pick_ag() 246 free = maxfree; in xfs_filestream_pick_ag() 252 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag() 257 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
|
/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 | 298 xfs_dir2_free_t *free; /* freespace structure */ in xfs_dir2_free_log_bests() local 301 free = bp->b_addr; in xfs_dir2_free_log_bests() 302 bests = args->dp->d_ops->free_bests_p(free); in xfs_dir2_free_log_bests() 303 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_bests() 304 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_bests() 306 (uint)((char *)&bests[first] - (char *)free), in xfs_dir2_free_log_bests() 307 (uint)((char *)&bests[last] - (char *)free + in xfs_dir2_free_log_bests() 320 xfs_dir2_free_t *free; /* freespace structure */ in xfs_dir2_free_log_header() local 322 free = bp->b_addr; in xfs_dir2_free_log_header() 323 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_header() [all …]
|
/fs/btrfs/ |
D | Makefile | 10 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \ 13 uuid-tree.o props.o hash.o free-space-tree.o tree-checker.o 18 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \ 21 tests/free-space-tree-tests.o
|
/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 | 18 u32 free; in affs_count_free_blocks() local 29 free = 0; in affs_count_free_blocks() 31 free += bm->bm_free; in affs_count_free_blocks() 35 return free; in affs_count_free_blocks()
|
/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/pstore/ |
D | platform.c | 93 void (*free)(void); member 275 .free = free_zlib, 336 .free = free_lzo, 401 .free = free_lz4, 447 zbackend->free(); in free_buf_for_compression()
|
/fs/ |
D | coredump.c | 84 int free, need; in cn_vprintf() local 88 free = cn->size - cn->used; in cn_vprintf() 91 need = vsnprintf(cn->corename + cn->used, free, fmt, arg_copy); in cn_vprintf() 94 if (need < free) { in cn_vprintf() 99 if (!expand_corename(cn, cn->size + need - free + 1)) in cn_vprintf()
|
/fs/notify/dnotify/ |
D | dnotify.c | 155 bool free = false; in dnotify_flush() local 186 free = true; in dnotify_flush() 191 if (free) in dnotify_flush()
|
/fs/ext4/ |
D | mballoc.c | 730 unsigned free = 0; in ext4_mb_generate_buddy() local 743 free += len; in ext4_mb_generate_buddy() 753 if (free != grp->bb_free) { in ext4_mb_generate_buddy() 757 free, grp->bb_free); in ext4_mb_generate_buddy() 762 grp->bb_free = free; in ext4_mb_generate_buddy() 1952 int free; in ext4_mb_complex_scan_group() local 1954 free = e4b->bd_info->bb_free; in ext4_mb_complex_scan_group() 1955 BUG_ON(free <= 0); in ext4_mb_complex_scan_group() 1959 while (free && ac->ac_status == AC_STATUS_CONTINUE) { in ext4_mb_complex_scan_group() 1971 free); in ext4_mb_complex_scan_group() [all …]
|
/fs/f2fs/ |
D | xattr.c | 634 int free; in __f2fs_setxattr() local 639 free = MIN_OFFSET(inode) - ((char *)last - (char *)base_addr); in __f2fs_setxattr() 641 free = free + ENTRY_SIZE(here); in __f2fs_setxattr() 643 if (unlikely(free < newsize)) { in __f2fs_setxattr()
|
/fs/ext2/ |
D | xattr.c | 370 size_t name_len, free, min_offs = sb->s_blocksize; in ext2_xattr_set() local 451 free = min_offs - ((char*)last - (char*)header) - sizeof(__u32); in ext2_xattr_set() 454 free = sb->s_blocksize - in ext2_xattr_set() 478 free += EXT2_XATTR_SIZE(size); in ext2_xattr_set() 480 free += EXT2_XATTR_LEN(name_len); in ext2_xattr_set() 483 if (free < EXT2_XATTR_LEN(name_len) + EXT2_XATTR_SIZE(value_len)) in ext2_xattr_set()
|