/fs/ntfs3/ |
D | record.c | 195 u32 used = le32_to_cpu(rec->used); in mi_enum_attr() local 204 if (used > total) in mi_enum_attr() 207 if (off >= used || off < MFTRECORD_FIXUP_OFFSET_1 || in mi_enum_attr() 220 if (off >= used) in mi_enum_attr() 236 if (off + 8 > used) { in mi_enum_attr() 252 if (off + asize < off || off + asize > used) in mi_enum_attr() 372 } else if (rno >= sbi->mft.used) { in mi_format_new() 422 u32 used = le32_to_cpu(rec->used); in mi_insert_attr() local 427 if (used + asize > mi->sbi->record_size) in mi_insert_attr() 448 attr = Add2Ptr(rec, used - 8); in mi_insert_attr() [all …]
|
D | index.c | 562 u32 used_2 = le32_to_cpu(hdr->used) >> 1; in hdr_find_split() 594 u32 used = le32_to_cpu(hdr->used); in hdr_insert_head() local 600 to_move = used - le32_to_cpu(hdr->de_off); in hdr_insert_head() 603 hdr->used = cpu_to_le32(used + ins_bytes); in hdr_insert_head() 615 u32 end = le32_to_cpu(hdr->used); in index_hdr_check() 727 u32 end = le32_to_cpu(hdr->used); in hdr_find_e() 810 u32 used = le32_to_cpu(hdr->used); in hdr_insert_de() local 815 if (used + de_size > total) in hdr_insert_de() 821 if (off >= used || off < le32_to_cpu(hdr->de_off) || in hdr_insert_de() 836 memmove(Add2Ptr(before, de_size), before, used - off); in hdr_insert_de() [all …]
|
D | fslog.c | 95 __le16 used; // 0x02: Entries member 383 return le16_to_cpu(rt->used) * le16_to_cpu(rt->size) + in bytes_per_rt() 719 u16 ne = le16_to_cpu(rt->used); in check_rstbl() 791 static inline struct RESTART_TABLE *init_rsttbl(u16 esize, u16 used) in init_rsttbl() argument 795 u32 bytes = esize * used + sizeof(struct RESTART_TABLE); in init_rsttbl() 796 u32 lf = sizeof(struct RESTART_TABLE) + (used - 1) * esize; in init_rsttbl() 803 t->used = cpu_to_le16(used); in init_rsttbl() 823 u32 used = le16_to_cpu(tbl->used); in extend_rsttbl() local 826 rt = init_rsttbl(esize, used + add); in extend_rsttbl() 830 memcpy(rt + 1, tbl + 1, esize * used); in extend_rsttbl() [all …]
|
D | ntfs.h | 281 __le32 used; // 0x18: The size of used part. member 696 __le32 used; // 0x04: The size of this structure plus all member 712 u32 used = le32_to_cpu(hdr->used); in hdr_first_de() local 716 if (de_off >= used || de_off >= le32_to_cpu(hdr->total)) in hdr_first_de() 720 if (esize < sizeof(struct NTFS_DE) || de_off + esize > used) in hdr_first_de() 730 u32 used = le32_to_cpu(hdr->used); in hdr_next_de() local 733 if (off >= used) in hdr_next_de() 739 off + esize + sizeof(struct NTFS_DE) > used) in hdr_next_de()
|
D | run.c | 319 size_t used, index; in run_add_entry() local 363 used = run->count * sizeof(struct ntfs_run); in run_add_entry() 370 if (run->allocated < used + sizeof(struct ntfs_run)) { in run_add_entry() 375 if (!used) { in run_add_entry() 377 } else if (used <= 16 * PAGE_SIZE) { in run_add_entry() 382 << (2 + blksize_bits(used)); in run_add_entry() 1006 if (lcn != SPARSE_LCN64 && lcn + len > sbi->used.bitmap.nbits) { in run_unpack() 1064 if (!sbi->used.bitmap.sb || !run || run == RUN_DEALLOCATE) in run_unpack_ex() 1071 wnd = &sbi->used.bitmap; in run_unpack_ex()
|
D | attrib.c | 245 u32 used, asize, rsize, aoff, align; in attr_make_nonresident() local 259 used = le32_to_cpu(rec->used); in attr_make_nonresident() 318 used -= asize; in attr_make_nonresident() 319 memmove(attr, Add2Ptr(attr, asize), used - aoff); in attr_make_nonresident() 320 rec->used = cpu_to_le32(used); in attr_make_nonresident() 345 memmove(next, attr, used - aoff); in attr_make_nonresident() 347 rec->used = cpu_to_le32(used + asize); in attr_make_nonresident() 369 u32 used = le32_to_cpu(rec->used); in attr_set_size_res() local 373 u32 tail = used - aoff - asize; in attr_set_size_res() 380 if (used + dsize > sbi->max_bytes_per_attr) in attr_set_size_res() [all …]
|
D | bitmap.c | 69 u32 used = find_next_zero_bit(buf, wend, wpos); in wnd_scan() local 71 if (used >= wend) { in wnd_scan() 81 if (used > wpos) { in wnd_scan() 82 wpos = used; in wnd_scan() 506 u32 used, frb; in wnd_rescan() local 563 used = bitmap_weight(buf, wbits); in wnd_rescan() 564 if (used < wbits) { in wnd_rescan() 565 frb = wbits - used; in wnd_rescan() 577 used = find_next_zero_bit(buf, wbits, wpos); in wnd_rescan() 579 if (used > wpos && prev_tail) { in wnd_rescan() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_ag_resv.c | 183 xfs_extlen_t used) in __xfs_ag_resv_init() argument 190 if (used > ask) in __xfs_ag_resv_init() 191 ask = used; in __xfs_ag_resv_init() 209 hidden_space = ask - used; in __xfs_ag_resv_init() 241 resv->ar_reserved = ask - used; in __xfs_ag_resv_init() 255 xfs_extlen_t used; in xfs_ag_resv_init() local 261 ask = used = 0; in xfs_ag_resv_init() 263 error = xfs_refcountbt_calc_reserves(mp, tp, pag, &ask, &used); in xfs_ag_resv_init() 267 error = xfs_finobt_calc_reserves(mp, tp, pag, &ask, &used); in xfs_ag_resv_init() 272 ask, used); in xfs_ag_resv_init() [all …]
|
/fs/ubifs/ |
D | tnc_commit.c | 432 int lnum, offs, len, next_len, buf_len, buf_offs, used, avail; in layout_in_empty_space() local 444 used = 0; in layout_in_empty_space() 465 used = 0; in layout_in_empty_space() 469 offs = buf_offs + used; in layout_in_empty_space() 510 wlen = used + len; in layout_in_empty_space() 511 used += ALIGN(len, 8); in layout_in_empty_space() 515 buf_offs + used + next_len <= c->leb_size && in layout_in_empty_space() 520 buf_offs + used + next_len <= c->leb_size) in layout_in_empty_space() 530 c->leb_size - buf_offs, blen - used, in layout_in_empty_space() 536 used -= blen; in layout_in_empty_space() [all …]
|
D | io.c | 564 if (!wbuf->used || wbuf->lnum == -1) in ubifs_wbuf_sync_nolock() 569 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock() 586 sync_len = ALIGN(wbuf->used, c->min_io_size); in ubifs_wbuf_sync_nolock() 587 dirt = sync_len - wbuf->used; in ubifs_wbuf_sync_nolock() 589 ubifs_pad(c, wbuf->buf + wbuf->used, dirt); in ubifs_wbuf_sync_nolock() 613 wbuf->used = 0; in ubifs_wbuf_sync_nolock() 642 ubifs_assert(c, wbuf->used == 0); in ubifs_wbuf_seek_nolock() 654 wbuf->used = 0; in ubifs_wbuf_seek_nolock() 747 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); in ubifs_wbuf_write_nolock() 761 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { in ubifs_wbuf_write_nolock() [all …]
|
D | gc.c | 72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head() 73 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head() 306 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node() 358 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes() 380 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes() 498 ubifs_assert(c, c->gc_lnum != -1 || wbuf->offs + wbuf->used == 0 || in ubifs_garbage_collect_leb() 690 ubifs_assert(c, !wbuf->used); in ubifs_garbage_collect() 745 space_before = c->leb_size - wbuf->offs - wbuf->used; in ubifs_garbage_collect() 796 space_after = c->leb_size - wbuf->offs - wbuf->used; in ubifs_garbage_collect()
|
D | replay.c | 385 unsigned long long sqnum, int deletion, int *used, in insert_node() argument 400 *used += ALIGN(len, 8); in insert_node() 435 int deletion, int *used) in insert_dent() argument 455 *used += ALIGN(len, 8); in insert_dent() 669 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start; in replay_bud() local 747 &used, 0, new_size); in replay_bud() 759 &used, 0, new_size); in replay_bud() 774 !le64_to_cpu(dent->inum), &used); in replay_bud() 798 &key, snod->sqnum, 1, &used, in replay_bud() 819 ubifs_assert(c, sleb->endpt - offs >= used); in replay_bud() [all …]
|
/fs/btrfs/ |
D | space-info.c | 311 found->bytes_used += block_group->used; in btrfs_add_bg_to_space_info() 312 found->disk_used += block_group->used * factor; in btrfs_add_bg_to_space_info() 400 u64 used; in btrfs_can_overcommit() local 406 used = btrfs_space_info_used(space_info, true); in btrfs_can_overcommit() 409 if (used + bytes < writable_total_bytes(fs_info, space_info) + avail) in btrfs_can_overcommit() 440 u64 used = btrfs_space_info_used(space_info, true); in btrfs_try_granting_tickets() local 445 if ((used + ticket->bytes <= writable_total_bytes(fs_info, space_info)) || in btrfs_try_granting_tickets() 540 cache->start, cache->length, cache->used, cache->pinned, in btrfs_dump_space_info() 823 u64 used; in btrfs_calc_reclaim_metadata_size() local 832 used = btrfs_space_info_used(space_info, true); in btrfs_calc_reclaim_metadata_size() [all …]
|
/fs/ |
D | coredump.c | 66 int used, size; member 91 free = cn->size - cn->used; in cn_vprintf() 94 need = vsnprintf(cn->corename + cn->used, free, fmt, arg_copy); in cn_vprintf() 98 cn->used += need; in cn_vprintf() 123 int cur = cn->used; in cn_esc_printf() 136 if ((cn->used - cur == 1 && cn->corename[cur] == '.') || in cn_esc_printf() 137 (cn->used - cur == 2 && cn->corename[cur] == '.' in cn_esc_printf() 147 if (cn->used == cur) in cn_esc_printf() 151 for (; cur < cn->used; ++cur) { in cn_esc_printf() 208 cn->used = 0; in format_corename() [all …]
|
/fs/jffs2/ |
D | debug.c | 163 uint32_t free = 0, dirty = 0, used = 0, wasted = 0, in __jffs2_dbg_superblock_counts() local 172 used += c->gcblock->used_size; in __jffs2_dbg_superblock_counts() 180 used += c->nextblock->used_size; in __jffs2_dbg_superblock_counts() 188 used += jeb->used_size; in __jffs2_dbg_superblock_counts() 196 used += jeb->used_size; in __jffs2_dbg_superblock_counts() 204 used += jeb->used_size; in __jffs2_dbg_superblock_counts() 212 used += jeb->used_size; in __jffs2_dbg_superblock_counts() 220 used += jeb->used_size; in __jffs2_dbg_superblock_counts() 228 used += jeb->used_size; in __jffs2_dbg_superblock_counts() 236 used += jeb->used_size; in __jffs2_dbg_superblock_counts() [all …]
|
D | README.Locking | 13 The alloc_sem is a per-filesystem mutex, used primarily to ensure 33 the alloc_sem is also used to protect the wbuf-related members of the 48 The reason that the i_sem itself isn't used for this purpose is to 74 This is used to serialise access to the eraseblock lists, to the 93 The erase_completion_lock is also used to protect the c->gc_task 109 if we need to deal with wrapping after 4 milliard inode numbers are used. 124 This mutex is only used by the erase code which frees obsolete node 142 write-behind buffer ('wbuf') used for flash chips where we must write
|
/fs/affs/ |
D | Kconfig | 6 The Fast File System (FFS) is the common file system used on hard 11 controller used in an Amiga and the standard floppy controller in 15 With this driver you can also mount disk files used by Bernd
|
/fs/jfs/ |
D | jfs_types.h | 151 #define setDASDUSED(dasdp, used)\ argument 153 (dasdp)->used_hi = ((u64)used) >> 32;\ 154 (dasdp)->used_lo = __cpu_to_le32(used);\
|
/fs/squashfs/ |
D | Kconfig | 17 archival use (i.e. in cases where a .tar.gz file may be used), and in 70 Traditionally Squashfs has used single-threaded decompression. 117 ZLIB compression is the standard compression used by Squashfs 134 LZ4 is not the standard compression used in Squashfs and so most 149 LZO is not the standard compression used in Squashfs and so most 164 XZ is not the standard compression used in Squashfs and so most 178 ZSTD is not the standard compression used in Squashfs and so most
|
/fs/verity/ |
D | Kconfig | 11 # algorithm that may be used instead. In this case, CRYPTO_SHA256 may 12 # be omitted even if SHA-256 is being used. 47 used to provide an authenticity guarantee for verity files, as
|
/fs/nls/ |
D | Kconfig | 25 The default NLS used when mounting file system. Note, that this is 26 the NLS used by your console, not the NLS used by a specific file 49 say Y here if you want to include the DOS codepage that is used in 61 say Y here if you want to include the DOS codepage that is used for 73 say Y here if you want to include the DOS codepage that is used 86 say Y here if you want to include the DOS codepage that is used for 102 say Y here if you want to include the Latin 2 codepage used by DOS 433 Latin 1 (ISO 8859-1) that removes a handful of rarely used 465 say Y here if you want to include the Mac codepage that is used for 480 say Y here if you want to include the Mac codepage that is used for [all …]
|
/fs/exfat/ |
D | Kconfig | 8 exFAT is typically used on SD-Cards or USB sticks. 19 converting between the encoding that is used for user visible
|
/fs/ceph/ |
D | quota.c | 489 u64 total = 0, used, free; in ceph_quota_update_statfs() local 507 used = ci->i_rbytes >> CEPH_BLOCK_SHIFT; in ceph_quota_update_statfs() 511 used = ci->i_rbytes >> CEPH_4K_BLOCK_SHIFT; in ceph_quota_update_statfs() 517 free = total > used ? total - used : 0; in ceph_quota_update_statfs()
|
/fs/notify/fanotify/ |
D | Kconfig | 22 decisions concerning filesystem events. This is used by some fanotify 24 use those files. This is used by some anti-malware vendors and by some
|
/fs/sysfs/ |
D | Kconfig | 13 which driver each is bound to. sysfs can also be used to tune devices 20 sysfs is currently used by the block subsystem to mount the root
|