Home
last modified time | relevance | path

Searched refs:dirty (Results 1 – 25 of 74) sorted by relevance

123

/fs/ubifs/
Dlprops.c32 return lprops->free + lprops->dirty; in get_heap_comp_val()
34 return lprops->dirty; in get_heap_comp_val()
407 if (lprops->free + lprops->dirty == c->leb_size) { in ubifs_categorize_lprops()
415 if (lprops->dirty + lprops->free >= c->min_idx_node_sz) in ubifs_categorize_lprops()
418 if (lprops->dirty >= c->dead_wm && in ubifs_categorize_lprops()
419 lprops->dirty > lprops->free) in ubifs_categorize_lprops()
522 int free, int dirty, int flags, in ubifs_change_lp() argument
532 lprops->lnum, free, dirty, flags); in ubifs_change_lp()
545 ubifs_assert(c, dirty == LPROPS_NC || dirty >= 0); in ubifs_change_lp()
554 ubifs_assert(c, !(lprops->free & 7) && !(lprops->dirty & 7)); in ubifs_change_lp()
[all …]
Dfind.c54 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable()
96 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb()
102 if (lprops->free + lprops->dirty == c->leb_size) { in scan_for_dirty_cb()
106 } else if (lprops->dirty < c->dead_wm) in scan_for_dirty_cb()
137 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty()
139 if (lprops->dirty < c->dead_wm) in scan_for_dirty()
153 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty()
157 if (lprops->dirty < c->dead_wm) in scan_for_dirty()
180 ubifs_assert(c, lprops->free + lprops->dirty >= min_space); in scan_for_dirty()
181 ubifs_assert(c, lprops->dirty >= c->dead_wm || in scan_for_dirty()
[all …]
Dlpt.c353 pack_bits(c, &addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode()
415 pack_bits(c, &addr, &pos, ltab[i].dirty, c->lpt_spc_bits); in ubifs_pack_ltab()
452 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_lpt_dirt() argument
454 if (!dirty || !lnum) in ubifs_add_lpt_dirt()
457 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty); in ubifs_add_lpt_dirt()
459 c->ltab[lnum - c->lpt_first].dirty += dirty; in ubifs_add_lpt_dirt()
469 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in set_ltab() argument
473 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in set_ltab()
476 c->ltab[lnum - c->lpt_first].dirty = dirty; in set_ltab()
644 ltab[i].dirty = 0; in ubifs_create_dflt_lpt()
[all …]
Dreplay.c76 int dirty; member
91 int err = 0, dirty; in set_bud_lprops() local
101 dirty = lp->dirty; in set_bud_lprops()
102 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
123 lp->free, lp->dirty); in set_bud_lprops()
125 lp->free, lp->dirty); in set_bud_lprops()
126 dirty -= c->leb_size - lp->free; in set_bud_lprops()
134 if (dirty != 0) in set_bud_lprops()
136 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
137 b->dirty); in set_bud_lprops()
[all …]
Dlpt_commit.c129 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument
133 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab()
136 c->ltab[lnum - c->lpt_first].dirty += dirty; in upd_ltab()
691 else if (c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in need_write_all()
715 if (c->ltab[i].dirty > 0 && in lpt_tgc_start()
716 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) { in lpt_tgc_start()
719 c->ltab[i].dirty = 0; in lpt_tgc_start()
1152 int i, lnum = -1, dirty = 0; in lpt_gc() local
1158 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in lpt_gc()
1160 if (c->ltab[i].dirty > dirty) { in lpt_gc()
[all …]
Dmisc.h161 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_dirt() argument
163 return ubifs_update_one_lp(c, lnum, LPROPS_NC, dirty, 0, 0); in ubifs_add_dirt()
Dfile.c300 if (ui->dirty) in write_begin_slow()
339 if (ui->dirty) in allocate_budget()
376 if (!ui->dirty) in allocate_budget()
524 if (!ui->dirty) in cancel_budget()
1248 release = ui->dirty; in do_setattr()
1402 release = ui->dirty; in ubifs_update_time()
1435 release = ui->dirty; in update_mctime()
1587 release = ui->dirty; in ubifs_vm_page_mkwrite()
Dgc.c503 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb()
549 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
585 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
739 lp.lnum, lp.free, lp.dirty, lp.free + lp.dirty, in ubifs_garbage_collect()
Dubifs.h408 unsigned int dirty:1; member
480 int dirty; member
498 int dirty; member
1958 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty);
1976 int free, int dirty, int flags,
1986 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
1988 int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
/fs/jffs2/
Ddebug.c163 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 …]
Dnodemgmt.c101 uint32_t dirty, avail; in jffs2_reserve_space() local
115dirty = c->dirty_size + c->erasing_size - c->nr_erasing_blocks * c->sector_size + c->unchecked_siz… in jffs2_reserve_space()
116 if (dirty < c->nospc_dirty_size) { in jffs2_reserve_space()
123 dirty, c->unchecked_size, in jffs2_reserve_space()
840 uint32_t dirty; in jffs2_thread_should_wake() local
862 dirty = c->dirty_size + c->erasing_size - c->nr_erasing_blocks * c->sector_size; in jffs2_thread_should_wake()
865 (dirty > c->nospc_dirty_size)) in jffs2_thread_should_wake()
/fs/ntfs3/
Drecord.c58 mi->dirty = true; in mi_new_attt_id()
140 mi->dirty = true; in mi_read()
167 mi->dirty = true; in mi_read()
336 if (!mi->dirty) in mi_write()
349 mi->dirty = false; in mi_write()
388 mi->dirty = true; in mi_format_new()
418 mi->dirty = false; in mi_mark_free()
424 mi->dirty = true; in mi_mark_free()
490 mi->dirty = true; in mi_insert_attr()
513 ni->mi.dirty = true; in mi_remove_attr()
[all …]
Dattrlist.c35 ni->attr_list.dirty = false; in al_destroy()
348 al->dirty = true; in al_add_le()
355 al->dirty = false; in al_add_le()
380 al->dirty = true; in al_remove_le()
434 al->dirty = true; in al_delete_le()
445 if (!al->dirty || !al->size) in al_update()
468 ni->mi.dirty = true; in al_update()
469 al->dirty = false; in al_update()
Dattrib.c321 mi->dirty = true; in attr_make_nonresident()
348 mi->dirty = true; in attr_make_nonresident()
395 mi->dirty = true; in attr_set_size_res()
467 mi_b->dirty = true; in attr_set_size()
510 mi_b->dirty = true; in attr_set_size()
592 mi_b->dirty = true; in attr_set_size()
669 mi_b->dirty = true; in attr_set_size()
710 mi->dirty = true; in attr_set_size()
735 mi_b->dirty = true; in attr_set_size()
775 mi_b->dirty = true; in attr_set_size()
[all …]
Dfrecord.c501 ni->attr_list.dirty = true; in ni_ins_new_attr()
611 mi->dirty = true; in ni_repack()
612 ni->attr_list.dirty = true; in ni_repack()
660 if (!ni->attr_list.dirty) in ni_try_remove_attr_list()
755 ni->attr_list.dirty = false; in ni_try_remove_attr_list()
896 ni->attr_list.dirty = false; in ni_create_attr_list()
1492 ni->mi.dirty = true; in ni_insert_resident()
1575 mi->dirty = true; in ni_delete_all()
1586 ni->mi.dirty = true; in ni_delete_all()
1741 mi->dirty = true; in ni_new_attr_flags()
[all …]
/fs/pstore/
Dzone.c86 atomic_t dirty; member
219 goto dirty; in psz_zone_write()
223 goto dirty; in psz_zone_write()
228 goto dirty; in psz_zone_write()
234 goto dirty; in psz_zone_write()
240 goto dirty; in psz_zone_write()
246 goto dirty; in psz_zone_write()
251 dirty: in psz_zone_write()
255 atomic_set(&zone->dirty, true); in psz_zone_write()
272 if (!atomic_xchg(&zone->dirty, false)) in psz_flush_dirty_zone()
[all …]
/fs/ceph/
Dsnap.c483 int used, dirty; in ceph_queue_cap_snap() local
496 dirty = __ceph_caps_dirty(ci); in ceph_queue_cap_snap()
507 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap()
518 !(dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR))) { in ceph_queue_cap_snap()
534 if (dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR)) in ceph_queue_cap_snap()
546 inode, capsnap, old_snapc, ceph_cap_string(dirty), in ceph_queue_cap_snap()
555 capsnap->dirty = dirty; in ceph_queue_cap_snap()
561 if (dirty & CEPH_CAP_XATTR_EXCL) { in ceph_queue_cap_snap()
638 ceph_cap_string(capsnap->dirty), capsnap->size, in __ceph_finish_cap_snap()
648 ceph_cap_string(capsnap->dirty), capsnap->size); in __ceph_finish_cap_snap()
[all …]
Dcaps.c1209 int op, caps, wanted, dirty; member
1236 ceph_cap_string(arg->dirty), arg->seq, arg->issue_seq, in encode_cap_msg()
1254 fc->dirty = cpu_to_le32(arg->dirty); in encode_cap_msg()
1408 arg->dirty = flushing; in __prep_cap()
1448 ceph_vinop(inode), ceph_cap_string(arg->dirty), in __send_cap()
1498 arg.dirty = capsnap->dirty; in __send_flush_snap()
1607 inode, capsnap, cf->tid, ceph_cap_string(capsnap->dirty)); in __ceph_flush_snaps()
1694 int dirty = 0; in __ceph_mark_dirty_caps() local
1728 dirty |= I_DIRTY_SYNC; in __ceph_mark_dirty_caps()
1736 dirty |= I_DIRTY_DATASYNC; in __ceph_mark_dirty_caps()
[all …]
Dfile.c1039 int dirty; in ceph_aio_complete() local
1049 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_aio_complete()
1052 if (dirty) in ceph_aio_complete()
1053 __mark_inode_dirty(inode, dirty); in ceph_aio_complete()
1847 int dirty; in ceph_write_iter() local
1851 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_write_iter()
1854 if (dirty) in ceph_write_iter()
1855 __mark_inode_dirty(inode, dirty); in ceph_write_iter()
2082 int dirty; in ceph_fallocate() local
2141 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_fallocate()
[all …]
Dxattr.c622 xattr->dirty = update_xattr; in __set_xattr()
826 ci->i_xattrs.dirty = false; in __build_xattrs()
875 if (ci->i_xattrs.dirty) { in __ceph_build_xattrs_blob()
905 ci->i_xattrs.dirty = false; in __ceph_build_xattrs_blob()
1130 int dirty = 0; in __ceph_setxattr() local
1219 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, in __ceph_setxattr()
1221 ci->i_xattrs.dirty = true; in __ceph_setxattr()
1229 if (dirty) in __ceph_setxattr()
1230 __mark_inode_dirty(inode, dirty); in __ceph_setxattr()
/fs/omfs/
Ddir.c159 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/proc/
Dtask_mmu.c416 bool dirty, bool locked, bool private) in smaps_page_accumulate() argument
430 if (dirty || PageDirty(page)) { in smaps_page_accumulate()
444 bool compound, bool young, bool dirty, bool locked, in smaps_account() argument
456 if (!PageSwapBacked(page) && !dirty && !PageDirty(page)) in smaps_account()
481 smaps_page_accumulate(mss, page, size, size << PSS_SHIFT, dirty, in smaps_account()
490 smaps_page_accumulate(mss, page, PAGE_SIZE, pss, dirty, locked, in smaps_account()
517 bool migration = false, young = false, dirty = false; in smaps_pte_entry() local
522 dirty = pte_dirty(*pte); in smaps_pte_entry()
556 smaps_account(mss, page, false, young, dirty, locked, migration); in smaps_pte_entry()
1736 unsigned long dirty; member
[all …]
/fs/xfs/
Dxfs_buf_item.c606 bool dirty; in xfs_buf_item_put() local
620 dirty = bip->bli_flags & XFS_BLI_DIRTY; in xfs_buf_item_put()
621 if (dirty && !aborted) in xfs_buf_item_put()
666 bool dirty = bip->bli_flags & XFS_BLI_DIRTY; in xfs_buf_item_release() local
677 ASSERT((!ordered && dirty == xfs_buf_item_dirty_format(bip)) || in xfs_buf_item_release()
678 (ordered && dirty && !xfs_buf_item_dirty_format(bip))); in xfs_buf_item_release()
/fs/ocfs2/dlm/
Ddlmthread.c87 if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY) in __dlm_lockres_unused()
520 if (list_empty(&res->dirty)) { in __dlm_dirty_lockres()
523 list_add_tail(&res->dirty, &dlm->dirty_list); in __dlm_dirty_lockres()
708 struct dlm_lock_resource, dirty); in dlm_thread()
717 list_del_init(&res->dirty); in dlm_thread()
/fs/hpfs/
Dsuper.c29 sb->dirty = 1; in mark_dirty()
48 sb->dirty = hpfs_sb(s)->sb_chkdsk > 1 - hpfs_sb(s)->sb_was_error; in unmark_dirty()
655 if (spareblock->dirty && !spareblock->old_wrote) { in hpfs_fill_super()
664 spareblock->dirty = 1; in hpfs_fill_super()

123