Home
last modified time | relevance | path

Searched refs:dirty (Results 1 – 25 of 67) 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()
1246 release = ui->dirty; in do_setattr()
1403 release = ui->dirty; in ubifs_update_time()
1436 release = ui->dirty; in update_mctime()
1588 release = ui->dirty; in ubifs_vm_page_mkwrite()
Dgc.c506 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb()
552 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
588 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
742 lp.lnum, lp.free, lp.dirty, lp.free + lp.dirty, in ubifs_garbage_collect()
Dubifs.h407 unsigned int dirty:1; member
478 int dirty; member
496 int dirty; member
1950 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty);
1968 int free, int dirty, int flags,
1978 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
1980 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/ceph/
Dsnap.c469 int used, dirty; in ceph_queue_cap_snap() local
479 dirty = __ceph_caps_dirty(ci); in ceph_queue_cap_snap()
490 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap()
501 !(dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR))) { in ceph_queue_cap_snap()
517 if (dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR)) in ceph_queue_cap_snap()
529 inode, capsnap, old_snapc, ceph_cap_string(dirty), in ceph_queue_cap_snap()
538 capsnap->dirty = dirty; in ceph_queue_cap_snap()
544 if (dirty & CEPH_CAP_XATTR_EXCL) { in ceph_queue_cap_snap()
621 ceph_cap_string(capsnap->dirty), capsnap->size, in __ceph_finish_cap_snap()
629 capsnap->context->seq, ceph_cap_string(capsnap->dirty), in __ceph_finish_cap_snap()
Dcaps.c1121 int op, caps, wanted, dirty; member
1147 ceph_cap_string(arg->wanted), ceph_cap_string(arg->dirty), in send_cap_msg()
1174 fc->dirty = cpu_to_le32(arg->dirty); in send_cap_msg()
1357 arg.dirty = flushing; in __send_cap()
1427 arg.dirty = capsnap->dirty; in __send_flush_snap()
1533 inode, capsnap, cf->tid, ceph_cap_string(capsnap->dirty)); in __ceph_flush_snaps()
1621 int dirty = 0; in __ceph_mark_dirty_caps() local
1651 dirty |= I_DIRTY_SYNC; in __ceph_mark_dirty_caps()
1659 dirty |= I_DIRTY_DATASYNC; in __ceph_mark_dirty_caps()
1661 return dirty; in __ceph_mark_dirty_caps()
[all …]
Dfile.c766 int dirty; in ceph_aio_complete() local
776 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_aio_complete()
779 if (dirty) in ceph_aio_complete()
780 __mark_inode_dirty(inode, dirty); in ceph_aio_complete()
1548 int dirty; in ceph_write_iter() local
1552 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_write_iter()
1555 if (dirty) in ceph_write_iter()
1556 __mark_inode_dirty(inode, dirty); in ceph_write_iter()
1780 int dirty; in ceph_fallocate() local
1831 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_fallocate()
[all …]
Dxattr.c517 xattr->dirty = update_xattr; in __set_xattr()
721 ci->i_xattrs.dirty = false; in __build_xattrs()
770 if (ci->i_xattrs.dirty) { in __ceph_build_xattrs_blob()
800 ci->i_xattrs.dirty = false; in __ceph_build_xattrs_blob()
1020 int dirty = 0; in __ceph_setxattr() local
1108 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, in __ceph_setxattr()
1110 ci->i_xattrs.dirty = true; in __ceph_setxattr()
1118 if (dirty) in __ceph_setxattr()
1119 __mark_inode_dirty(inode, dirty); in __ceph_setxattr()
/fs/fat/
Dmisc.c325 bool dirty = false; in fat_update_time() local
332 dirty = inode_maybe_inc_iversion(inode, false); in fat_update_time()
335 dirty = true; in fat_update_time()
337 if (dirty) in fat_update_time()
/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/xfs/
Dxfs_buf_item.c545 bool dirty; in xfs_buf_item_put() local
559 dirty = bip->bli_flags & XFS_BLI_DIRTY; in xfs_buf_item_put()
560 if (dirty && !aborted) in xfs_buf_item_put()
605 bool dirty = bip->bli_flags & XFS_BLI_DIRTY; in xfs_buf_item_release() local
616 ASSERT((!ordered && dirty == xfs_buf_item_dirty_format(bip)) || in xfs_buf_item_release()
617 (ordered && dirty && !xfs_buf_item_dirty_format(bip))); in xfs_buf_item_release()
Dxfs_trans.c1035 bool dirty = (tp->t_flags & XFS_TRANS_DIRTY); in xfs_trans_cancel() local
1047 if (dirty && !XFS_FORCED_SHUTDOWN(mp)) { in xfs_trans_cancel()
1052 if (!dirty && !XFS_FORCED_SHUTDOWN(mp)) { in xfs_trans_cancel()
1070 xfs_trans_free_items(tp, dirty); in xfs_trans_cancel()
/fs/proc/
Dtask_mmu.c492 bool dirty, bool locked, bool private) in smaps_page_accumulate() argument
506 if (dirty || PageDirty(page)) { in smaps_page_accumulate()
520 bool compound, bool young, bool dirty, bool locked) in smaps_account() argument
531 if (!PageSwapBacked(page) && !dirty && !PageDirty(page)) in smaps_account()
549 smaps_page_accumulate(mss, page, size, size << PSS_SHIFT, dirty, in smaps_account()
558 smaps_page_accumulate(mss, page, PAGE_SIZE, pss, dirty, locked, in smaps_account()
1719 unsigned long dirty; member
1736 md->dirty += nr_pages; in gather_stats()
1927 if (md->dirty) in show_numa_map()
1928 seq_printf(m, " dirty=%lu", md->dirty); in show_numa_map()
[all …]
/fs/
Dfs-writeback.c960 unsigned long filepages, headroom, dirty, writeback; in cgroup_writeback_by_id() local
962 mem_cgroup_wb_stats(wb, &filepages, &headroom, &dirty, in cgroup_writeback_by_id()
964 nr = dirty * 10 / 8; in cgroup_writeback_by_id()
1445 unsigned dirty; in __writeback_single_inode() local
1474 dirty = inode->i_state & I_DIRTY; in __writeback_single_inode()
1476 if ((dirty & I_DIRTY_INODE) || in __writeback_single_inode()
1482 dirty |= I_DIRTY_TIME | I_DIRTY_TIME_EXPIRED; in __writeback_single_inode()
1487 inode->i_state &= ~dirty; in __writeback_single_inode()
1507 if (dirty & I_DIRTY_TIME) in __writeback_single_inode()
1510 if (dirty & ~I_DIRTY_PAGES) { in __writeback_single_inode()
/fs/ocfs2/dlm/
Ddlmthread.c91 if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY) in __dlm_lockres_unused()
524 if (list_empty(&res->dirty)) { in __dlm_dirty_lockres()
527 list_add_tail(&res->dirty, &dlm->dirty_list); in __dlm_dirty_lockres()
713 struct dlm_lock_resource, dirty); in dlm_thread()
722 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()
656 if (spareblock->dirty && !spareblock->old_wrote) { in hpfs_fill_super()
665 spareblock->dirty = 1; in hpfs_fill_super()
Dhpfs.h117 u8 dirty: 1; /* 0 clean, 1 "improperly stopped" */ member
133 u8 dirty: 1; /* 0 clean, 1 "improperly stopped" */ member
/fs/btrfs/
Dqgroup.c215 INIT_LIST_HEAD(&qgroup->dirty); in add_qgroup_rb()
227 list_del(&qgroup->dirty); in __del_qgroup_rb()
1121 if (list_empty(&qgroup->dirty)) in qgroup_dirty()
1122 list_add(&qgroup->dirty, &fs_info->dirty_qgroups); in qgroup_dirty()
2309 bool dirty = false; in qgroup_update_counters() local
2322 dirty = true; in qgroup_update_counters()
2327 dirty = true; in qgroup_update_counters()
2338 dirty = true; in qgroup_update_counters()
2349 dirty = true; in qgroup_update_counters()
2363 dirty = true; in qgroup_update_counters()
[all …]

123