Searched refs:clean_zn_cnt (Results 1 - 6 of 6) sorted by relevance

/linux-master/fs/ubifs/
H A Dshrinker.c67 if (!c->zroot.znode || atomic_long_read(&c->clean_zn_cnt) == 0)
76 * 'c->space_lock' when _reading_ 'c->clean_zn_cnt', because it is
82 atomic_long_read(&c->clean_zn_cnt) > 0) {
94 * Note, the 'clean_zn_cnt' counters are not updated until
118 atomic_long_sub(freed, &c->clean_zn_cnt);
270 long clean_zn_cnt = atomic_long_read(&ubifs_clean_zn_cnt); local
276 return clean_zn_cnt >= 0 ? clean_zn_cnt : 1;
285 long clean_zn_cnt = atomic_long_read(&ubifs_clean_zn_cnt); local
287 if (!clean_zn_cnt) {
[all...]
H A Dtnc_misc.c267 n = atomic_long_read(&c->clean_zn_cnt);
451 atomic_long_inc(&c->clean_zn_cnt);
H A Dtnc.c281 atomic_long_dec(&c->clean_zn_cnt);
2588 atomic_long_inc(&c->clean_zn_cnt);
2636 atomic_long_inc(&c->clean_zn_cnt);
3106 atomic_long_inc(&c->clean_zn_cnt);
H A Ddebug.c645 pr_err("\tdirty_pg_cnt %ld, dirty_zn_cnt %ld, clean_zn_cnt %ld\n",
648 atomic_long_read(&c->clean_zn_cnt));
1551 if (clean_cnt != atomic_long_read(&c->clean_zn_cnt)) {
1552 ubifs_err(c, "incorrect clean_zn_cnt %ld, calculated %ld",
1553 atomic_long_read(&c->clean_zn_cnt),
H A Dtnc_commit.c943 * @c->clean_zn_cnt counter. If this znode becomes dirty again
945 * @c->clean_zn_cnt will be decremented before it gets
947 * This means that @c->clean_zn_cnt may become negative for a
950 * Q: why we cannot increment @c->clean_zn_cnt?
955 * atomic_long_inc(&c->clean_zn_cnt);
959 * Thus, we just delay the @c->clean_zn_cnt update until we
1044 atomic_long_inc(&c->clean_zn_cnt);
H A Dubifs.h1138 * @clean_zn_cnt: number of clean znodes
1395 atomic_long_t clean_zn_cnt; member in struct:ubifs_info

Completed in 298 milliseconds