Home
last modified time | relevance | path

Searched refs:dirty_sectors (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dalloc_background.h45 dst->dirty_sectors = src.dirty_sectors; in alloc_to_bucket()
55 dst->dirty_sectors = src.dirty_sectors; in __bucket_m_to_alloc()
95 return a.stripe_sectors + a.dirty_sectors + a.cached_sectors; in bch2_bucket_sectors_total()
100 return a.stripe_sectors + a.dirty_sectors; in bch2_bucket_sectors_dirty()
120 int d = a.stripe_sectors + a.dirty_sectors; in bch2_gc_bucket_sectors_fragmented()
127 return a.data_type == BCH_DATA_stripe ? a.dirty_sectors : 0; in bch2_bucket_sectors_unstriped()
Dalloc_background_format.h16 x(dirty_sectors, 16) \
40 x(dirty_sectors, 32) \
67 __u32 dirty_sectors; member
Dfs-io-pagecache.c495 int i, sectors = folio_sectors(folio), dirty_sectors = 0; in bch2_clear_folio_bits() local
507 dirty_sectors -= s->s[i].state == SECTOR_dirty; in bch2_clear_folio_bits()
513 bch2_i_sectors_acct(c, inode, NULL, dirty_sectors); in bch2_clear_folio_bits()
525 unsigned i, dirty_sectors = 0; in bch2_set_folio_dirty() local
549 dirty_sectors += s->s[i].state == SECTOR_unallocated; in bch2_set_folio_dirty()
556 bch2_i_sectors_acct(c, inode, &res->quota, dirty_sectors); in bch2_set_folio_dirty()
Dbuckets_types.h17 u32 dirty_sectors; member
Dbtree_gc.c781 l.dirty_sectors != r.dirty_sectors || in bch2_alloc_v4_cmp()
814 gc.dirty_sectors = old->dirty_sectors; in bch2_alloc_write_key()
824 gc.dirty_sectors != old_gc.dirty_sectors) { in bch2_alloc_write_key()
837 gc_m->dirty_sectors = gc.dirty_sectors; in bch2_alloc_write_key()
863 copy_bucket_field(alloc_key_dirty_sectors_wrong, dirty_sectors); in bch2_alloc_write_key()
Dbuckets.c170 g->dirty_sectors = 0; in bch2_check_fix_ptr()
216 g->dirty_sectors = 0; in bch2_check_fix_ptr()
549 !p->ptr.cached ? &a->dirty_sectors : in __mark_pointer()
976 a->v.dirty_sectors != sectors) { in __bch2_trans_mark_metadata_bucket()
978 a->v.dirty_sectors = sectors; in __bch2_trans_mark_metadata_bucket()
1009 if (bch2_fs_inconsistent_on((u64) g->dirty_sectors + sectors > ca->mi.bucket_size, c, in bch2_mark_metadata_bucket()
1013 g->dirty_sectors, sectors)) in bch2_mark_metadata_bucket()
1017 g->dirty_sectors += sectors; in bch2_mark_metadata_bucket()
Dalloc_background.c281 a.dirty_sectors || in bch2_alloc_v4_validate()
287 a.dirty_sectors, in bch2_alloc_v4_validate()
296 bkey_fsck_err_on(!a.dirty_sectors && in bch2_alloc_v4_validate()
304 a.dirty_sectors || in bch2_alloc_v4_validate()
329 a->dirty_sectors = swab32(a->dirty_sectors); in bch2_alloc_v4_swab()
360 prt_printf(out, "dirty_sectors %u\n", a->dirty_sectors); in bch2_alloc_to_text()
401 .dirty_sectors = u.dirty_sectors, in __bch2_alloc_to_v4()
1940 BUG_ON(a->v.dirty_sectors); in bch2_clear_bucket_needs_discard()
2050 BUG_ON(a->v.dirty_sectors); in invalidate_one_bucket()
2060 a->v.dirty_sectors = 0; in invalidate_one_bucket()
Dfs-io-buffered.c572 unsigned sectors = 0, dirty_sectors = 0, reserved_sectors = 0; in __bch2_writepage() local
585 dirty_sectors += w->tmp[offset + sectors].state == SECTOR_dirty; in __bch2_writepage()
618 w->io->op.i_sectors_delta -= dirty_sectors; in __bch2_writepage()
Dmove.c664 unsigned dirty_sectors, bucket_size; in bch2_evacuate_bucket() local
693 dirty_sectors = bch2_bucket_sectors_dirty(*a); in bch2_evacuate_bucket()
804 trace_evacuate_bucket(c, &bucket, dirty_sectors, bucket_size, fragmentation, ret); in bch2_evacuate_bucket()
Dec.c208 a->dirty_sectors, in __mark_stripe_bucket()
219 a->dirty_sectors, in __mark_stripe_bucket()
247 (a->dirty_sectors != -sectors || in __mark_stripe_bucket()
251 a->dirty_sectors, in __mark_stripe_bucket()
261 a->gen, a->data_type, &a->dirty_sectors); in __mark_stripe_bucket()
/linux-6.12.1/fs/btrfs/
Dfile.c1247 size_t dirty_sectors; in btrfs_buffered_write() local
1350 dirty_sectors = round_up(copied + sector_offset, in btrfs_buffered_write()
1352 dirty_sectors = BTRFS_BYTES_TO_BLKS(fs_info, dirty_sectors); in btrfs_buffered_write()
1363 dirty_sectors = 0; in btrfs_buffered_write()
1371 if (num_sectors > dirty_sectors) { in btrfs_buffered_write()
1373 release_bytes -= dirty_sectors << fs_info->sectorsize_bits; in btrfs_buffered_write()