Home
last modified time | relevance | path

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

12345

/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()
823 b->free = c->leb_size - sleb->endpt; in replay_bud()
825 lnum, b->dirty, b->free); in replay_bud()
[all …]
Dbudget.c621 long long ubifs_reported_space(const struct ubifs_info *c, long long free) in ubifs_reported_space() argument
642 free *= factor; in ubifs_reported_space()
643 return div_u64(free, divisor); in ubifs_reported_space()
665 long long available, outstanding, free; in ubifs_get_free_space_nolock() local
692 free = ubifs_reported_space(c, available - outstanding); in ubifs_get_free_space_nolock()
694 free = 0; in ubifs_get_free_space_nolock()
695 return free; in ubifs_get_free_space_nolock()
707 long long free; in ubifs_get_free_space() local
710 free = ubifs_get_free_space_nolock(c); in ubifs_get_free_space()
713 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.c503 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb()
508 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb()
549 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
585 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()
Dsb.c857 int free = c->ltab[lnum - c->lpt_first].free; in fixup_free_space() local
859 if (free > 0) { in fixup_free_space()
860 err = fixup_leb(c, lnum, c->leb_size - free); in fixup_free_space()
881 if (lprops->free > 0) { in fixup_free_space()
882 err = fixup_leb(c, lnum, c->leb_size - lprops->free); in fixup_free_space()
/fs/xfs/
Dxfs_extfree_item.c407 struct xfs_extent_free_item *free) in xfs_extent_free_log_item() argument
423 extp->ext_start = free->xefi_startblock; in xfs_extent_free_log_item()
424 extp->ext_len = free->xefi_blockcount; in xfs_extent_free_log_item()
436 struct xfs_extent_free_item *free; in xfs_extent_free_create_intent() local
443 list_for_each_entry(free, items, xefi_list) in xfs_extent_free_create_intent()
444 xfs_extent_free_log_item(tp, efip, free); in xfs_extent_free_create_intent()
467 struct xfs_extent_free_item *free; in xfs_extent_free_finish_item() local
470 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_finish_item()
471 oinfo.oi_owner = free->xefi_owner; in xfs_extent_free_finish_item()
472 if (free->xefi_flags & XFS_EFI_ATTR_FORK) in xfs_extent_free_finish_item()
[all …]
Dxfs_filestream.c108 xfs_extlen_t longest, free = 0, minfree, maxfree = 0; in xfs_filestream_pick_ag() local
166 free = pag->pagf_freeblks; in xfs_filestream_pick_ag()
202 free = maxfree; in xfs_filestream_pick_ag()
208 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
213 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
Dxfs_fsops.c377 int64_t free; in xfs_reserve_blocks() local
437 free = percpu_counter_sum(&mp->m_fdblocks) - in xfs_reserve_blocks()
441 if (delta > 0 && free > 0) { in xfs_reserve_blocks()
452 fdblks_delta = min(free, delta); 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/fat/
Dfatent.c722 int err = 0, free; in fat_count_free_clusters() local
728 free = 0; in fat_count_free_clusters()
742 free++; in fat_count_free_clusters()
746 sbi->free_clusters = free; in fat_count_free_clusters()
770 u32 free = 0; in fat_trim_fs() local
801 free++; in fat_trim_fs()
802 } else if (free) { in fat_trim_fs()
803 if (free >= minlen) { in fat_trim_fs()
804 u32 clus = fatent.entry - free; in fat_trim_fs()
806 err = fat_trim_clusters(sb, clus, free); in fat_trim_fs()
[all …]
/fs/btrfs/
DMakefile29 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
32 uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \
42 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
45 tests/free-space-tree-tests.o tests/extent-map-tests.o
/fs/xfs/libxfs/
Dxfs_dir2_node.c370 struct xfs_dir2_free *free = bp->b_addr; in xfs_dir2_free_log_bests() local
372 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_bests()
373 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_bests()
375 (char *)&hdr->bests[first] - (char *)free, in xfs_dir2_free_log_bests()
376 (char *)&hdr->bests[last] - (char *)free + in xfs_dir2_free_log_bests()
389 xfs_dir2_free_t *free; /* freespace structure */ in xfs_dir2_free_log_header() local
391 free = bp->b_addr; in xfs_dir2_free_log_header()
392 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_header()
393 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_header()
637 xfs_dir2_free_t *free = NULL; /* free block structure */ in xfs_dir2_leafn_lookup_for_addname() local
[all …]
/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.c45 struct inode **local_system_inodes, **free = NULL; in get_local_system_inode() local
74 free = local_system_inodes; in get_local_system_inode()
79 kfree(free); in get_local_system_inode()
/fs/ceph/
Dquota.c489 u64 total = 0, used, free; in ceph_quota_update_statfs() local
517 free = total > used ? total - used : 0; in ceph_quota_update_statfs()
523 free = ci->i_max_bytes > ci->i_rbytes ? 1 : 0; in ceph_quota_update_statfs()
530 buf->f_bfree = free; in ceph_quota_update_statfs()
531 buf->f_bavail = free; in ceph_quota_update_statfs()
/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/squashfs/
Ddecompressor_multi_percpu.c56 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create()
72 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
/fs/
Dfs_context.c489 if (fc->need_free && fc->ops && fc->ops->free) in put_fs_context()
490 fc->ops->free(fc); in put_fs_context()
660 .free = legacy_fs_context_free,
707 if (fc->need_free && fc->ops && fc->ops->free) in vfs_clean_context()
708 fc->ops->free(fc); in vfs_clean_context()
/fs/notify/dnotify/
Ddnotify.c160 bool free = false; in dnotify_flush() local
191 free = true; in dnotify_flush()
196 if (free) in dnotify_flush()
/fs/ext2/
Dxattr.c414 size_t name_len, free, min_offs = sb->s_blocksize; in ext2_xattr_set() local
490 free = min_offs - ((char*)last - (char*)header) - sizeof(__u32); in ext2_xattr_set()
493 free = sb->s_blocksize - in ext2_xattr_set()
510 free += EXT2_XATTR_SIZE(le32_to_cpu(here->e_value_size)); in ext2_xattr_set()
511 free += EXT2_XATTR_LEN(name_len); in ext2_xattr_set()
514 if (free < EXT2_XATTR_LEN(name_len) + EXT2_XATTR_SIZE(value_len)) in ext2_xattr_set()
/fs/ext4/
Dmballoc.c1075 unsigned free = 0; in ext4_mb_generate_buddy() local
1088 free += len; in ext4_mb_generate_buddy()
1098 if (free != grp->bb_free) { in ext4_mb_generate_buddy()
1102 free, grp->bb_free); in ext4_mb_generate_buddy()
1107 grp->bb_free = free; in ext4_mb_generate_buddy()
2324 int free; in ext4_mb_complex_scan_group() local
2326 free = e4b->bd_info->bb_free; in ext4_mb_complex_scan_group()
2327 if (WARN_ON(free <= 0)) in ext4_mb_complex_scan_group()
2332 while (free && ac->ac_status == AC_STATUS_CONTINUE) { in ext4_mb_complex_scan_group()
2344 free); in ext4_mb_complex_scan_group()
[all …]
/fs/f2fs/
Dxattr.c715 int free; in __f2fs_setxattr() local
720 free = MIN_OFFSET(inode) - ((char *)last - (char *)base_addr); in __f2fs_setxattr()
722 free = free + ENTRY_SIZE(here); in __f2fs_setxattr()
724 if (unlikely(free < newsize)) { in __f2fs_setxattr()

12345