/fs/ubifs/ |
D | lprops.c | 44 return lprops->free + lprops->dirty; in get_heap_comp_val() 46 return lprops->dirty; in get_heap_comp_val() 421 if (lprops->free + lprops->dirty == c->leb_size) { in ubifs_categorize_lprops() 429 if (lprops->dirty + lprops->free >= c->min_idx_node_sz) in ubifs_categorize_lprops() 432 if (lprops->dirty >= c->dead_wm && in ubifs_categorize_lprops() 433 lprops->dirty > lprops->free) in ubifs_categorize_lprops() 536 int free, int dirty, int flags, in ubifs_change_lp() argument 546 lprops->lnum, free, dirty, flags); in ubifs_change_lp() 559 ubifs_assert(dirty == LPROPS_NC || dirty >= 0); in ubifs_change_lp() 568 ubifs_assert(!(lprops->free & 7) && !(lprops->dirty & 7)); in ubifs_change_lp() [all …]
|
D | find.c | 66 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable() 108 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb() 114 if (lprops->free + lprops->dirty == c->leb_size) { in scan_for_dirty_cb() 118 } else if (lprops->dirty < c->dead_wm) in scan_for_dirty_cb() 149 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty() 151 if (lprops->dirty < c->dead_wm) in scan_for_dirty() 165 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty() 169 if (lprops->dirty < c->dead_wm) in scan_for_dirty() 192 ubifs_assert(lprops->free + lprops->dirty >= min_space); in scan_for_dirty() 193 ubifs_assert(lprops->dirty >= c->dead_wm || in scan_for_dirty() [all …]
|
D | lpt.c | 363 pack_bits(&addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode() 425 pack_bits(&addr, &pos, ltab[i].dirty, c->lpt_spc_bits); in ubifs_pack_ltab() 462 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_lpt_dirt() argument 464 if (!dirty || !lnum) in ubifs_add_lpt_dirt() 467 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty); in ubifs_add_lpt_dirt() 469 c->ltab[lnum - c->lpt_first].dirty += dirty; in ubifs_add_lpt_dirt() 479 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in set_ltab() argument 483 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in set_ltab() 486 c->ltab[lnum - c->lpt_first].dirty = dirty; in set_ltab() 647 ltab[i].dirty = 0; in ubifs_create_dflt_lpt() [all …]
|
D | replay.c | 85 int dirty; member 100 int err = 0, dirty; in set_bud_lprops() local 110 dirty = lp->dirty; in set_bud_lprops() 111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 132 lp->free, lp->dirty); in set_bud_lprops() 134 lp->free, lp->dirty); in set_bud_lprops() 135 dirty -= c->leb_size - lp->free; in set_bud_lprops() 143 if (dirty != 0) in set_bud_lprops() 146 lp->free, lp->dirty, b->free, b->dirty); in set_bud_lprops() 148 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, in set_bud_lprops() [all …]
|
D | lpt_commit.c | 144 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument 148 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab() 151 c->ltab[lnum - c->lpt_first].dirty += dirty; in upd_ltab() 744 else if (c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in need_write_all() 768 if (c->ltab[i].dirty > 0 && in lpt_tgc_start() 769 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) { in lpt_tgc_start() 772 c->ltab[i].dirty = 0; in lpt_tgc_start() 1205 int i, lnum = -1, dirty = 0; in lpt_gc() local 1211 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in lpt_gc() 1213 if (c->ltab[i].dirty > dirty) { in lpt_gc() [all …]
|
D | misc.h | 176 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_dirt() argument 178 return ubifs_update_one_lp(c, lnum, LPROPS_NC, dirty, 0, 0); in ubifs_add_dirt()
|
D | ubifs.h | 401 unsigned int dirty:1; member 472 int dirty; member 490 int dirty; member 1693 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty); 1710 int free, int dirty, int flags, 1720 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty, 1722 int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
|
D | gc.c | 481 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb() 527 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 563 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 718 "(min. space %d)", lp.lnum, lp.free, lp.dirty, in ubifs_garbage_collect() 719 lp.free + lp.dirty, min_space); in ubifs_garbage_collect()
|
D | file.c | 302 if (ui->dirty) in write_begin_slow() 341 if (ui->dirty) in allocate_budget() 378 if (!ui->dirty) in allocate_budget() 526 if (!ui->dirty) in cancel_budget() 1236 release = ui->dirty; in do_setattr() 1387 release = ui->dirty; in update_mctime() 1518 release = ui->dirty; in ubifs_vm_page_mkwrite()
|
/fs/jffs2/ |
D | debug.c | 163 uint32_t free = 0, dirty = 0, used = 0, wasted = 0, in __jffs2_dbg_superblock_counts() local 171 dirty += c->gcblock->dirty_size; in __jffs2_dbg_superblock_counts() 179 dirty += c->nextblock->dirty_size; in __jffs2_dbg_superblock_counts() 187 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 195 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 203 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 211 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 219 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 227 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 235 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() [all …]
|
D | nodemgmt.c | 61 uint32_t dirty, avail; in jffs2_reserve_space() local 75 …dirty = c->dirty_size + c->erasing_size - c->nr_erasing_blocks * c->sector_size + c->unchecked_siz… in jffs2_reserve_space() 76 if (dirty < c->nospc_dirty_size) { in jffs2_reserve_space() 83 dirty, c->unchecked_size, in jffs2_reserve_space() 792 uint32_t dirty; in jffs2_thread_should_wake() local 814 dirty = c->dirty_size + c->erasing_size - c->nr_erasing_blocks * c->sector_size; in jffs2_thread_should_wake() 817 (dirty > c->nospc_dirty_size)) in jffs2_thread_should_wake()
|
/fs/ceph/ |
D | xattr.c | 214 int dirty, in __set_xattr() argument 274 xattr->dirty = dirty; in __set_xattr() 490 ci->i_xattrs.dirty = false; in __build_xattrs() 536 if (ci->i_xattrs.dirty) { in __ceph_build_xattrs_blob() 566 ci->i_xattrs.dirty = false; in __ceph_build_xattrs_blob() 775 int dirty; in ceph_setxattr() local 838 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL); in ceph_setxattr() 839 ci->i_xattrs.dirty = true; in ceph_setxattr() 843 if (dirty) in ceph_setxattr() 844 __mark_inode_dirty(inode, dirty); in ceph_setxattr() [all …]
|
D | snap.c | 441 int used, dirty; in ceph_queue_cap_snap() local 451 dirty = __ceph_caps_dirty(ci); in ceph_queue_cap_snap() 459 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap() 468 } else if (dirty & (CEPH_CAP_AUTH_EXCL|CEPH_CAP_XATTR_EXCL| in ceph_queue_cap_snap() 480 inode, capsnap, snapc, ceph_cap_string(dirty)); in ceph_queue_cap_snap() 490 capsnap->dirty = dirty; in ceph_queue_cap_snap() 496 if (dirty & CEPH_CAP_XATTR_EXCL) { in ceph_queue_cap_snap() 558 ceph_cap_string(capsnap->dirty), capsnap->size, in __ceph_finish_cap_snap() 564 capsnap->context->seq, ceph_cap_string(capsnap->dirty), in __ceph_finish_cap_snap()
|
D | caps.c | 926 int caps, int wanted, int dirty, in send_cap_msg() argument 943 ceph_cap_string(dirty), in send_cap_msg() 963 fc->dirty = cpu_to_le32(dirty); in send_cap_msg() 1241 BUG_ON(capsnap->dirty == 0); in __ceph_flush_snaps() 1295 capsnap->dirty, 0, capsnap->flush_tid, 0, mseq, in __ceph_flush_snaps() 1342 int dirty = 0; in __ceph_mark_dirty_caps() local 1364 dirty |= I_DIRTY_SYNC; in __ceph_mark_dirty_caps() 1370 dirty |= I_DIRTY_DATASYNC; in __ceph_mark_dirty_caps() 1372 return dirty; in __ceph_mark_dirty_caps() 1821 int dirty; in ceph_fsync() local [all …]
|
D | file.c | 744 int dirty; in ceph_aio_write() local 747 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR); in ceph_aio_write() 760 if (dirty) in ceph_aio_write() 761 __mark_inode_dirty(inode, dirty); in ceph_aio_write() 766 int dirty; in ceph_aio_write() local 768 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR); in ceph_aio_write() 770 if (dirty) in ceph_aio_write() 771 __mark_inode_dirty(inode, dirty); in ceph_aio_write()
|
D | super.h | 137 int issued, dirty; member 197 int dirty; member 241 bool dirty; member
|
/fs/omfs/ |
D | dir.c | 159 struct inode *dirty; in omfs_delete_entry() local 202 dirty = omfs_iget(dir->i_sb, prev); in omfs_delete_entry() 203 if (!IS_ERR(dirty)) { in omfs_delete_entry() 204 mark_inode_dirty(dirty); in omfs_delete_entry() 205 iput(dirty); in omfs_delete_entry()
|
/fs/yaffs2/ |
D | yaffs_guts.c | 1338 obj->dirty = 1; in yaffs_change_obj_name() 1373 if (cache->object == obj && cache->dirty) in yaffs_obj_cache_dirty() 1397 dev->cache[i].dirty) { in yaffs_flush_file_cache() 1413 cache->dirty = 0; in yaffs_flush_file_cache() 1441 if (dev->cache[i].object && dev->cache[i].dirty) in yaffs_flush_whole_cache() 1509 if (!cache || cache->dirty) { in yaffs_grab_chunk_cache() 1560 cache->dirty = 1; in yaffs_use_cache() 1956 INIT_LIST_HEAD(&the_obj->variant.dir_variant.dirty); in yaffs_new_obj() 2063 obj->dirty = 1; in yaffs_update_parent() 2066 struct list_head *link = &obj->variant.dir_variant.dirty; in yaffs_update_parent() [all …]
|
D | yaffs_linux.h | 34 int dirty; member
|
D | yaffs_guts.h | 135 int dirty; member 381 struct list_head dirty; /* Entry for list of dirty directories */ member 407 u8 dirty:1; /* the object needs to be written to flash */ member
|
/fs/ocfs2/dlm/ |
D | dlmthread.c | 106 if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY) in __dlm_lockres_unused() 474 if (list_empty(&res->dirty)) { in __dlm_dirty_lockres() 477 list_add_tail(&res->dirty, &dlm->dirty_list); in __dlm_dirty_lockres() 662 struct dlm_lock_resource, dirty); in dlm_thread() 671 list_del_init(&res->dirty); in dlm_thread()
|
/fs/hpfs/ |
D | super.c | 27 sb->dirty = 1; in mark_dirty() 46 sb->dirty = hpfs_sb(s)->sb_chkdsk > 1 - hpfs_sb(s)->sb_was_error; in unmark_dirty() 567 if (spareblock->dirty && !spareblock->old_wrote) { in hpfs_fill_super() 576 spareblock->dirty = 1; in hpfs_fill_super()
|
D | hpfs.h | 116 u8 dirty: 1; /* 0 clean, 1 "improperly stopped" */ member 132 u8 dirty: 1; /* 0 clean, 1 "improperly stopped" */ member
|
/fs/proc/ |
D | task_mmu.c | 1105 unsigned long dirty; member 1122 md->dirty += nr_pages; in gather_stats() 1293 if (md->dirty) in show_numa_map() 1294 seq_printf(m, " dirty=%lu", md->dirty); in show_numa_map() 1296 if (md->pages != md->anon && md->pages != md->dirty) in show_numa_map()
|
/fs/ocfs2/ |
D | journal.c | 67 int dirty, int replayed); 753 int ocfs2_journal_init(struct ocfs2_journal *journal, int *dirty) in ocfs2_journal_init() argument 820 *dirty = (le32_to_cpu(di->id1.journal1.ij_flags) & in ocfs2_journal_init() 857 int dirty, int replayed) in ocfs2_journal_toggle_dirty() argument 873 if (dirty) in ocfs2_journal_toggle_dirty() 1273 osb->dirty = 0; in ocfs2_complete_mount_recovery()
|