Home
last modified time | relevance | path

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

/fs/jffs2/
Dsuper.c107 mutex_lock(&c->alloc_sem); in jffs2_sync_fs()
109 mutex_unlock(&c->alloc_sem); in jffs2_sync_fs()
295 mutex_init(&c->alloc_sem); in jffs2_fill_super()
326 mutex_lock(&c->alloc_sem); in jffs2_put_super()
328 mutex_unlock(&c->alloc_sem); in jffs2_put_super()
DREADME.Locking14 alloc_sem
17 The alloc_sem is a per-filesystem mutex, used primarily to ensure
26 When writing new nodes, the alloc_sem must be held until the new nodes
29 nodes to an inode may obsolete old ones, and by holding the alloc_sem
37 the alloc_sem is also used to protect the wbuf-related members of the
68 1. Never attempt to allocate space or lock alloc_sem with
151 Lock wbuf_sem last, after the alloc_sem or and f->sem.
172 Lock xattr_sem last, after the alloc_sem.
Dgc.c134 if (mutex_lock_interruptible(&c->alloc_sem)) in jffs2_garbage_collect_pass()
151 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
201 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
223 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
231 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
237 mutex_lock(&c->alloc_sem); in jffs2_garbage_collect_pass()
251 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
256 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
266 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
284 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
[all …]
Dnodemgmt.c83 mutex_lock(&c->alloc_sem); in jffs2_reserve_space()
127 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
151 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
155 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
192 mutex_lock(&c->alloc_sem); in jffs2_reserve_space()
207 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
556 mutex_unlock(&c->alloc_sem); in jffs2_complete_reservation()
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()
Djffs2_fs_sb.h60 struct mutex alloc_sem; /* Used to protect all the following member
Dfs.c407 mutex_lock(&c->alloc_sem); in jffs2_do_remount_fs()
409 mutex_unlock(&c->alloc_sem); in jffs2_do_remount_fs()
Dwrite.c605 mutex_lock(&c->alloc_sem); in jffs2_do_unlink()
/fs/ext4/
Dialloc.c943 down_read(&grp->alloc_sem); /* protect vs itable lazyinit */ in __ext4_new_inode()
959 up_read(&grp->alloc_sem); in __ext4_new_inode()
1284 down_write(&grp->alloc_sem); in ext4_init_inode_table()
1342 up_write(&grp->alloc_sem); in ext4_init_inode_table()
Dext4.h2679 struct rw_semaphore alloc_sem; member
Dmballoc.c2423 init_rwsem(&meta_group_info[i]->alloc_sem); in ext4_mb_add_groupinfo()