Home
last modified time | relevance | path

Searched refs:free (Results 1 – 25 of 93) sorted by relevance

1234

/fs/ubifs/
Dlprops.c30 return lprops->free; in get_heap_comp_val()
32 return lprops->free + lprops->dirty; in get_heap_comp_val()
402 if (lprops->free == c->leb_size) { in ubifs_categorize_lprops()
407 if (lprops->free + lprops->dirty == c->leb_size) { in ubifs_categorize_lprops()
415 if (lprops->dirty + lprops->free >= c->min_idx_node_sz) in ubifs_categorize_lprops()
419 lprops->dirty > lprops->free) in ubifs_categorize_lprops()
421 if (lprops->free > 0) in ubifs_categorize_lprops()
522 int free, int dirty, int flags, in ubifs_change_lp() argument
532 lprops->lnum, free, dirty, flags); in ubifs_change_lp()
544 ubifs_assert(c, free == LPROPS_NC || free >= 0); in ubifs_change_lp()
[all …]
Dfind.c54 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable()
96 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb()
102 if (lprops->free + lprops->dirty == c->leb_size) { in scan_for_dirty_cb()
137 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty()
153 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty()
180 ubifs_assert(c, lprops->free + lprops->dirty >= min_space); in scan_for_dirty()
183 lprops->free + lprops->dirty == c->leb_size)); in scan_for_dirty()
277 sum = idx_lp->free + idx_lp->dirty; in ubifs_find_dirty_leb()
294 if (lp->dirty + lp->free < min_space) in ubifs_find_dirty_leb()
300 if (idx_lp->free + idx_lp->dirty >= lp->free + lp->dirty) in ubifs_find_dirty_leb()
[all …]
Dreplay.c75 int free; member
102 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
123 lp->free, lp->dirty); in set_bud_lprops()
125 lp->free, lp->dirty); in set_bud_lprops()
126 dirty -= c->leb_size - lp->free; in set_bud_lprops()
136 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
139 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, in set_bud_lprops()
148 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops()
837 b->free = c->leb_size - sleb->endpt; in replay_bud()
839 lnum, b->dirty, b->free); in replay_bud()
[all …]
Dbudget.c625 long long ubifs_reported_space(const struct ubifs_info *c, long long free) in ubifs_reported_space() argument
646 free *= factor; in ubifs_reported_space()
647 return div_u64(free, divisor); in ubifs_reported_space()
669 long long available, outstanding, free; in ubifs_get_free_space_nolock() local
696 free = ubifs_reported_space(c, available - outstanding); in ubifs_get_free_space_nolock()
698 free = 0; in ubifs_get_free_space_nolock()
699 return free; in ubifs_get_free_space_nolock()
711 long long free; in ubifs_get_free_space() local
714 free = ubifs_get_free_space_nolock(c); in ubifs_get_free_space()
717 return free; in ubifs_get_free_space()
Dlpt.c351 pack_bits(c, &addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode()
414 pack_bits(c, &addr, &pos, ltab[i].free, c->lpt_spc_bits); in ubifs_pack_ltab()
469 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in set_ltab() argument
472 lnum, c->ltab[lnum - c->lpt_first].free, in set_ltab()
473 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in set_ltab()
475 c->ltab[lnum - c->lpt_first].free = free; in set_ltab()
643 ltab[i].free = c->leb_size; in ubifs_create_dflt_lpt()
660 pnode->lprops[0].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
666 pnode->lprops[1].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
670 pnode->lprops[i].free = c->leb_size; in ubifs_create_dflt_lpt()
[all …]
Dlpt_commit.c129 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument
132 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab()
133 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab()
135 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab()
157 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
167 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
683 long long free = 0; in need_write_all() local
688 free += c->leb_size - c->nhead_offs; in need_write_all()
689 else if (c->ltab[i].free == c->leb_size) in need_write_all()
690 free += c->leb_size; in need_write_all()
[all …]
Dgc.c506 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb()
511 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb()
552 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
588 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
742 lp.lnum, lp.free, lp.dirty, lp.free + lp.dirty, in ubifs_garbage_collect()
/fs/xfs/
Dxfs_extfree_item.c443 struct xfs_extent_free_item *free; in xfs_extent_free_log_item() local
447 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_log_item()
460 extp->ext_start = free->xefi_startblock; in xfs_extent_free_log_item()
461 extp->ext_len = free->xefi_blockcount; in xfs_extent_free_log_item()
482 struct xfs_extent_free_item *free; in xfs_extent_free_finish_item() local
485 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_finish_item()
487 free->xefi_startblock, in xfs_extent_free_finish_item()
488 free->xefi_blockcount, in xfs_extent_free_finish_item()
489 &free->xefi_oinfo, free->xefi_skip_discard); in xfs_extent_free_finish_item()
490 kmem_free(free); in xfs_extent_free_finish_item()
[all …]
Dxfs_filestream.c139 xfs_extlen_t longest, free = 0, minfree, maxfree = 0; in xfs_filestream_pick_ag() local
197 free = pag->pagf_freeblks; in xfs_filestream_pick_ag()
233 free = maxfree; in xfs_filestream_pick_ag()
239 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
244 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
Dxfs_fsops.c327 int64_t free; in xfs_reserve_blocks() local
382 free = percpu_counter_sum(&mp->m_fdblocks) - in xfs_reserve_blocks()
384 if (free <= 0) in xfs_reserve_blocks()
388 lcounter = free - delta; in xfs_reserve_blocks()
391 fdblks_delta = free; in xfs_reserve_blocks()
/fs/reiserfs/
Ditem_ops.c68 static int sd_check_left(struct virtual_item *vi, int free, in sd_check_left() argument
75 static int sd_check_right(struct virtual_item *vi, int free) in sd_check_right() argument
158 static int direct_check_left(struct virtual_item *vi, int free, in direct_check_left() argument
163 bytes = free - free % 8; in direct_check_left()
167 static int direct_check_right(struct virtual_item *vi, int free) in direct_check_right() argument
169 return direct_check_left(vi, free, 0, 0); in direct_check_right()
296 static int indirect_check_left(struct virtual_item *vi, int free, in indirect_check_left() argument
301 bytes = free - free % UNFM_P_SIZE; in indirect_check_left()
305 static int indirect_check_right(struct virtual_item *vi, int free) in indirect_check_right() argument
307 return indirect_check_left(vi, free, 0, 0); in indirect_check_right()
[all …]
/fs/xfs/libxfs/
Dxfs_dir2_node.c296 xfs_dir2_free_t *free; /* freespace structure */ in xfs_dir2_free_log_bests() local
299 free = bp->b_addr; in xfs_dir2_free_log_bests()
300 bests = args->dp->d_ops->free_bests_p(free); in xfs_dir2_free_log_bests()
301 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_bests()
302 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_bests()
304 (uint)((char *)&bests[first] - (char *)free), in xfs_dir2_free_log_bests()
305 (uint)((char *)&bests[last] - (char *)free + in xfs_dir2_free_log_bests()
318 xfs_dir2_free_t *free; /* freespace structure */ in xfs_dir2_free_log_header() local
320 free = bp->b_addr; in xfs_dir2_free_log_header()
321 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_header()
[all …]
/fs/fat/
Dfatent.c657 int err = 0, free; in fat_count_free_clusters() local
667 free = 0; in fat_count_free_clusters()
684 free++; in fat_count_free_clusters()
688 sbi->free_clusters = free; in fat_count_free_clusters()
711 u32 free = 0; in fat_trim_fs() local
749 free++; in fat_trim_fs()
750 } else if (free) { in fat_trim_fs()
751 if (free >= minlen) { in fat_trim_fs()
752 u32 clus = fatent.entry - free; in fat_trim_fs()
754 err = fat_trim_clusters(sb, clus, free); in fat_trim_fs()
[all …]
/fs/btrfs/
DMakefile10 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
13 uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \
20 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
23 tests/free-space-tree-tests.o tests/extent-map-tests.o
/fs/jffs2/
Ddebug.c163 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/
Dsysfile.c47 struct inode **local_system_inodes, **free = NULL; in get_local_system_inode() local
76 free = local_system_inodes; in get_local_system_inode()
81 kfree(free); in get_local_system_inode()
/fs/squashfs/
Ddecompressor_multi_percpu.c53 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create()
69 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
/fs/affs/
Dbitmap.c18 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/
Ddir.c98 ops->free(&dir); in adfs_readdir()
132 ops->free(&dir); in adfs_dir_update()
204 ops->free(&dir); in adfs_dir_lookup_byname()
/fs/
Dfs_context.c500 if (fc->need_free && fc->ops && fc->ops->free) in put_fs_context()
501 fc->ops->free(fc); in put_fs_context()
675 .free = legacy_fs_context_free,
722 if (fc->need_free && fc->ops && fc->ops->free) in vfs_clean_context()
723 fc->ops->free(fc); in vfs_clean_context()
Dcoredump.c85 int free, need; in cn_vprintf() local
89 free = cn->size - cn->used; in cn_vprintf()
92 need = vsnprintf(cn->corename + cn->used, free, fmt, arg_copy); in cn_vprintf()
95 if (need < free) { in cn_vprintf()
100 if (!expand_corename(cn, cn->size + need - free + 1)) in cn_vprintf()
/fs/ceph/
Dquota.c484 u64 total = 0, used, free; in ceph_quota_update_statfs() local
505 free = total > used ? total - used : 0; in ceph_quota_update_statfs()
510 buf->f_bfree = free; in ceph_quota_update_statfs()
511 buf->f_bavail = free; in ceph_quota_update_statfs()
/fs/notify/dnotify/
Ddnotify.c148 bool free = false; in dnotify_flush() local
179 free = true; in dnotify_flush()
184 if (free) in dnotify_flush()
/fs/ext4/
Dmballoc.c720 unsigned free = 0; in ext4_mb_generate_buddy() local
733 free += len; in ext4_mb_generate_buddy()
743 if (free != grp->bb_free) { in ext4_mb_generate_buddy()
747 free, grp->bb_free); in ext4_mb_generate_buddy()
752 grp->bb_free = free; in ext4_mb_generate_buddy()
1936 int free; in ext4_mb_complex_scan_group() local
1938 free = e4b->bd_info->bb_free; in ext4_mb_complex_scan_group()
1939 BUG_ON(free <= 0); in ext4_mb_complex_scan_group()
1943 while (free && ac->ac_status == AC_STATUS_CONTINUE) { in ext4_mb_complex_scan_group()
1955 free); in ext4_mb_complex_scan_group()
[all …]
/fs/f2fs/
Dxattr.c671 int free; in __f2fs_setxattr() local
676 free = MIN_OFFSET(inode) - ((char *)last - (char *)base_addr); in __f2fs_setxattr()
678 free = free + ENTRY_SIZE(here); in __f2fs_setxattr()
680 if (unlikely(free < newsize)) { in __f2fs_setxattr()

1234