/fs/squashfs/ |
D | lzo_wrapper.c | 71 int avail, i, bytes = length, res; in lzo_uncompress() local 75 avail = min(bytes, msblk->devblksize - offset); in lzo_uncompress() 76 memcpy(buff, bh[i]->b_data + offset, avail); in lzo_uncompress() 77 buff += avail; in lzo_uncompress() 78 bytes -= avail; in lzo_uncompress()
|
D | block.c | 85 int bytes, compressed, b = 0, k = 0, avail, i; in squashfs_read_data() local 178 avail = min_t(int, in, PAGE_SIZE - in squashfs_read_data() 181 avail); in squashfs_read_data() 182 in -= avail; in squashfs_read_data() 183 pg_offset += avail; in squashfs_read_data() 184 offset += avail; in squashfs_read_data()
|
D | lz4_wrapper.c | 97 int avail, i, bytes = length, res; in lz4_uncompress() local 100 avail = min(bytes, msblk->devblksize - offset); in lz4_uncompress() 101 memcpy(buff, bh[i]->b_data + offset, avail); in lz4_uncompress() 102 buff += avail; in lz4_uncompress() 103 bytes -= avail; in lz4_uncompress()
|
D | xz_wrapper.c | 124 int avail, total = 0, k = 0; in squashfs_xz_uncompress() local 136 avail = min(length, msblk->devblksize - offset); in squashfs_xz_uncompress() 137 length -= avail; in squashfs_xz_uncompress() 139 stream->buf.in_size = avail; in squashfs_xz_uncompress()
|
D | zlib_wrapper.c | 65 int avail = min(length, msblk->devblksize - offset); in zlib_uncompress() local 66 length -= avail; in zlib_uncompress() 68 stream->avail_in = avail; in zlib_uncompress()
|
D | file.c | 364 …d squashfs_fill_page(struct page *page, struct squashfs_cache_entry *buffer, int offset, int avail) in squashfs_fill_page() argument 370 copied = squashfs_copy_data(pageaddr, buffer, offset, avail); in squashfs_fill_page() 375 if (copied == avail) in squashfs_fill_page() 399 int avail = buffer ? min_t(int, bytes, PAGE_SIZE) : 0; in squashfs_copy_cache() local 401 TRACE("bytes %d, i %d, available_bytes %d\n", bytes, i, avail); in squashfs_copy_cache() 412 squashfs_fill_page(push_page, buffer, offset, avail); in squashfs_copy_cache()
|
D | zstd_wrapper.c | 85 int avail = min(length, msblk->devblksize - offset); in zstd_uncompress() local 87 length -= avail; in zstd_uncompress() 89 in_buf.size = avail; in zstd_uncompress()
|
D | file_direct.c | 160 int avail = min_t(int, bytes, PAGE_SIZE); in squashfs_read_cache() local 165 squashfs_fill_page(page[n], buffer, offset, avail); in squashfs_read_cache()
|
/fs/xfs/libxfs/ |
D | xfs_ag_resv.c | 71 xfs_extlen_t avail; in xfs_ag_resv_critical() local 76 avail = pag->pagf_freeblks - pag->pag_rmapbt_resv.ar_reserved; in xfs_ag_resv_critical() 80 avail = pag->pagf_freeblks + pag->pagf_flcount - in xfs_ag_resv_critical() 89 trace_xfs_ag_resv_critical(pag, type, avail); in xfs_ag_resv_critical() 92 return XFS_TEST_ERROR(avail < orig / 10 || avail < XFS_BTREE_MAXLEVELS, in xfs_ag_resv_critical()
|
/fs/ubifs/ |
D | io.c | 548 ubifs_assert(c, !(wbuf->avail & 7)); in ubifs_wbuf_sync_nolock() 590 wbuf->avail = wbuf->size; in ubifs_wbuf_sync_nolock() 631 wbuf->avail = wbuf->size; in ubifs_wbuf_seek_nolock() 729 ubifs_assert(c, wbuf->avail > 0 && wbuf->avail <= wbuf->size); in ubifs_wbuf_write_nolock() 749 if (aligned_len <= wbuf->avail) { in ubifs_wbuf_write_nolock() 756 if (aligned_len == wbuf->avail) { in ubifs_wbuf_write_nolock() 770 wbuf->avail = wbuf->size; in ubifs_wbuf_write_nolock() 776 wbuf->avail -= aligned_len; in ubifs_wbuf_write_nolock() 794 memcpy(wbuf->buf + wbuf->used, buf, wbuf->avail); in ubifs_wbuf_write_nolock() 801 len -= wbuf->avail; in ubifs_wbuf_write_nolock() [all …]
|
D | tnc_commit.c | 432 int lnum, offs, len, next_len, buf_len, buf_offs, used, avail; in layout_in_empty_space() local 445 avail = buf_len; in layout_in_empty_space() 466 avail = buf_len; in layout_in_empty_space() 512 avail -= ALIGN(len, 8); in layout_in_empty_space() 516 avail > 0) in layout_in_empty_space() 519 if (avail <= 0 && next_len && in layout_in_empty_space() 539 avail = buf_len - used; in layout_in_empty_space() 829 int avail, wlen, err, lnum_pos = 0, blen, nxt_offs; in write_index() local 845 avail = buf_len; in write_index() 912 avail = buf_len; in write_index() [all …]
|
D | orphan.c | 267 int avail_lebs, avail, gap; in avail_orphs() local 270 avail = avail_lebs * in avail_orphs() 274 avail += (gap - UBIFS_ORPH_NODE_SZ) / sizeof(__le64); in avail_orphs() 275 return avail; in avail_orphs() 287 int avail_lebs, avail; in tot_avail_orphs() local 290 avail = avail_lebs * in tot_avail_orphs() 292 return avail / 2; in tot_avail_orphs() 479 int avail, atomic = 0, err; in commit_orphans() local 482 avail = avail_orphs(c); in commit_orphans() 483 if (avail < c->cmt_orphans) { in commit_orphans()
|
D | gc.c | 356 int avail, moved = 0; in move_nodes() local 361 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes() 363 if (snod->len > avail) in move_nodes() 383 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes() 385 if (avail < min) in move_nodes() 388 if (snod->len > avail) { in move_nodes()
|
D | journal.c | 100 int err = 0, err1, retries = 0, avail, lnum, offs, squeeze; in reserve_space() local 118 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space() 119 if (wbuf->lnum != -1 && avail >= len) in reserve_space() 167 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space() 169 if (wbuf->lnum != -1 && avail >= len) { in reserve_space()
|
D | ubifs.h | 686 int avail; member
|
/fs/jffs2/ |
D | nodemgmt.c | 26 uint32_t avail; in jffs2_rp_can_write() local 29 avail = c->dirty_size + c->free_size + c->unchecked_size + in jffs2_rp_can_write() 33 if (avail < 2 * opts->rp_size) in jffs2_rp_can_write() 39 c->nr_erasing_blocks, avail, c->nospc_dirty_size); in jffs2_rp_can_write() 41 if (avail > opts->rp_size) in jffs2_rp_can_write() 101 uint32_t dirty, avail; in jffs2_reserve_space() local 140 avail = c->free_size + c->dirty_size + c->erasing_size + c->unchecked_size; in jffs2_reserve_space() 141 if ( (avail / c->sector_size) <= blocksneeded) { in jffs2_reserve_space() 149 avail, blocksneeded * c->sector_size); in jffs2_reserve_space()
|
D | fs.c | 212 unsigned long avail; in jffs2_statfs() local 224 avail = c->dirty_size + c->free_size; in jffs2_statfs() 225 if (avail > c->sector_size * c->resv_blocks_write) in jffs2_statfs() 226 avail -= c->sector_size * c->resv_blocks_write; in jffs2_statfs() 228 avail = 0; in jffs2_statfs() 231 buf->f_bavail = buf->f_bfree = avail >> PAGE_SHIFT; in jffs2_statfs()
|
/fs/ |
D | aio.c | 928 int old, avail = atomic_read(&ctx->reqs_available); in __get_reqs_available() local 931 if (avail < ctx->req_batch) in __get_reqs_available() 934 old = avail; in __get_reqs_available() 935 avail = atomic_cmpxchg(&ctx->reqs_available, in __get_reqs_available() 936 avail, avail - ctx->req_batch); in __get_reqs_available() 937 } while (avail != old); in __get_reqs_available() 1211 long avail; in aio_read_events_ring() local 1215 avail = (head <= tail ? tail : ctx->nr_events) - head; in aio_read_events_ring() 1223 avail = min(avail, nr - ret); in aio_read_events_ring() 1224 avail = min_t(long, avail, AIO_EVENTS_PER_PAGE - pos); in aio_read_events_ring() [all …]
|
/fs/btrfs/ |
D | space-info.c | 169 u64 avail; in can_overcommit() local 183 avail = atomic64_read(&fs_info->free_chunk_space); in can_overcommit() 192 avail = div_u64(avail, factor); in can_overcommit() 200 avail >>= 3; in can_overcommit() 202 avail >>= 1; in can_overcommit() 204 if (used + bytes < space_info->total_bytes + avail) in can_overcommit()
|
/fs/ceph/ |
D | debugfs.c | 141 int total, avail, used, reserved, min, i; in caps_show() local 143 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show() 149 total, avail, used, reserved, min); in caps_show()
|
D | super.h | 697 int *total, int *avail, int *used,
|
D | caps.c | 407 int *total, int *avail, int *used, int *reserved, in ceph_reservation_status() argument 416 if (avail) in ceph_reservation_status() 417 *avail = mdsc->caps_avail_count; in ceph_reservation_status()
|
/fs/sdcardfs/ |
D | sdcardfs.h | 593 u64 avail; in check_min_free_space() local 614 avail = statfs.f_bavail * statfs.f_bsize; in check_min_free_space() 617 if ((u64)size > avail) in check_min_free_space() 621 if ((avail - size) > (sbi->options.reserved_mb * 1024 * 1024)) in check_min_free_space()
|
/fs/nfsd/ |
D | nfs4xdr.c | 160 unsigned int avail = (char *)argp->end - (char *)argp->p; in read_buf() local 168 avail = vec->iov_len; in read_buf() 170 argp->end = vec->iov_base + avail; in read_buf() 173 if (avail < nbytes) in read_buf() 181 if (avail + argp->pagelen < nbytes) in read_buf() 183 if (avail + PAGE_SIZE < nbytes) /* need more than a page !! */ in read_buf() 200 memcpy(p, argp->p, avail); in read_buf() 202 memcpy(((char*)p)+avail, argp->p, (nbytes - avail)); in read_buf() 203 argp->p += XDR_QUADLEN(nbytes - avail); in read_buf() 1267 int avail; in nfsd4_decode_write() local [all …]
|
D | nfs4state.c | 1575 unsigned long avail, total_avail; in nfsd4_get_drc_mem() local 1588 avail = min((unsigned long)NFSD_MAX_MEM_PER_SESSION, total_avail); in nfsd4_get_drc_mem() 1600 avail = clamp_t(unsigned long, avail, slotsize, in nfsd4_get_drc_mem() 1602 num = min_t(int, num, avail / slotsize); in nfsd4_get_drc_mem()
|