Lines Matching full:free

62  * This function runs garbage collector to make some more free space. Returns
63 * zero if a free LEB has been produced, %-EAGAIN if commit is required, and a
70 /* Make some free space by garbage-collecting dirty space */ in run_gc()
100 * make_free_space - make more free space on the file-system.
104 * is supposedly no free space. But in most cases there is some free space:
106 * needed, so shrinking the liability is one way to make free space - the
108 * o GC may turn some dark space into free space (budgeting treats dark space
110 * o commit may free some LEB, i.e., turn freeable LEBs into free LEBs.
112 * So this function tries to do the above. Returns %-EAGAIN if some free space
114 * Returns %-ENOSPC if it couldn't do more free space, and other negative error
269 * This function makes sure UBIFS has enough free LEBs for index growth and
277 * and makes sure this does not exceed the amount of free LEBs.
282 * there is free space. IOW, the index may take a lot of LEBs, but the LEBs
311 * @c->freeable_cnt are available because they contain only free and in do_budget_space()
419 * %-ENOSPC if there is no free space and other negative error codes in case of
501 * ubifs_release_budget - release budgeted free space.
602 * ubifs_reported_space - calculate reported free space.
604 * @free: amount of free space
606 * This function calculates amount of free space which will be reported to
611 * overhead, and UBIFS has to report slightly less free space to meet the above
614 * This function assumes free space is made up of uncompressed data nodes and
621 long long ubifs_reported_space(const struct ubifs_info *c, long long free) in ubifs_reported_space() argument
626 * Reported space size is @free * X, where X is UBIFS block size in ubifs_reported_space()
642 free *= factor; in ubifs_reported_space()
643 return div_u64(free, divisor); in ubifs_reported_space()
647 * ubifs_get_free_space_nolock - return amount of free space.
650 * This function calculates amount of free space to report to user-space.
654 * free flash space it has (well, because not all dirty space is reclaimable,
656 * bread user expectations about what free space is. Users seem to accustomed
657 * to assume that if the file-system reports N bytes of free space, they would
665 long long available, outstanding, free; in ubifs_get_free_space_nolock() local
672 * When reporting free space to user-space, UBIFS guarantees that it is in ubifs_get_free_space_nolock()
673 * possible to write a file of free space size. This means that for in ubifs_get_free_space_nolock()
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()
699 * ubifs_get_free_space - return amount of free space.
702 * This function calculates and returns amount of free space to report to
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()