Home
last modified time | relevance | path

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

/linux/fs/jffs2/
H A DREADME.Locking10 alloc_sem
13 The alloc_sem is a per-filesystem mutex, used primarily to ensure
22 When writing new nodes, the alloc_sem must be held until the new nodes
25 nodes to an inode may obsolete old ones, and by holding the alloc_sem
33 the alloc_sem is also used to protect the wbuf-related members of the
64 1. Never attempt to allocate space or lock alloc_sem with
148 Lock wbuf_sem last, after the alloc_sem or and f->sem.
169 Lock xattr_sem last, after the alloc_sem.
H A Dgc.c134 if (mutex_lock_interruptible(&c->alloc_sem)) in jffs2_garbage_collect_pass()
182 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
221 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
243 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
251 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
257 mutex_lock(&c->alloc_sem); in jffs2_garbage_collect_pass()
271 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
276 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
286 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
304 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
[all …]
H A Dnodemgmt.c87 mutex_lock(&c->alloc_sem); in jffs2_reserve_space()
131 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
155 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
159 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
197 mutex_lock(&c->alloc_sem); in jffs2_reserve_space()
212 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
569 mutex_unlock(&c->alloc_sem); in jffs2_complete_reservation()
H A Dwbuf.c591 if (!mutex_is_locked(&c->alloc_sem)) { in __jffs2_flush_wbuf()
713 mutex_lock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
716 mutex_unlock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
737 mutex_unlock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
744 mutex_lock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
754 mutex_lock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
759 mutex_unlock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
H A Djffs2_fs_sb.h61 struct mutex alloc_sem; /* Used to protect all the following member
H A Dfile.c206 mutex_lock(&c->alloc_sem); in jffs2_write_begin()
233 mutex_unlock(&c->alloc_sem); in jffs2_write_begin()
H A Dfs.c409 mutex_lock(&c->alloc_sem); in jffs2_do_remount_fs()
411 mutex_unlock(&c->alloc_sem); in jffs2_do_remount_fs()
H A Dwrite.c606 mutex_lock(&c->alloc_sem); in jffs2_do_unlink()
/linux/fs/ext4/
H A Dialloc.c1189 down_read(&grp->alloc_sem); /* in __ext4_new_inode()
1210 up_read(&grp->alloc_sem); in __ext4_new_inode()
1538 down_write(&grp->alloc_sem); in ext4_init_inode_table()
1614 up_write(&grp->alloc_sem); in ext4_init_inode_table()
H A Dext4.h3436 struct rw_semaphore alloc_sem; member
H A Dmballoc.c3378 init_rwsem(&meta_group_info[i]->alloc_sem); in ext4_mb_add_groupinfo()