Home
last modified time | relevance | path

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

/linux-2.6.39/fs/jffs2/
Dsuper.c84 mutex_lock(&c->alloc_sem); in jffs2_sync_fs()
86 mutex_unlock(&c->alloc_sem); in jffs2_sync_fs()
171 mutex_init(&c->alloc_sem); in jffs2_fill_super()
205 mutex_lock(&c->alloc_sem); in jffs2_put_super()
207 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.c130 if (mutex_lock_interruptible(&c->alloc_sem)) in jffs2_garbage_collect_pass()
147 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
194 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
214 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
222 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
229 mutex_lock(&c->alloc_sem); in jffs2_garbage_collect_pass()
242 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
247 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
256 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
272 mutex_unlock(&c->alloc_sem); in jffs2_garbage_collect_pass()
[all …]
Dnodemgmt.c50 mutex_lock(&c->alloc_sem); in jffs2_reserve_space()
83 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
106 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
110 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
141 mutex_lock(&c->alloc_sem); in jffs2_reserve_space()
154 mutex_unlock(&c->alloc_sem); in jffs2_reserve_space()
487 mutex_unlock(&c->alloc_sem); in jffs2_complete_reservation()
Dwbuf.c581 if (mutex_trylock(&c->alloc_sem)) { in __jffs2_flush_wbuf()
582 mutex_unlock(&c->alloc_sem); in __jffs2_flush_wbuf()
702 mutex_lock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
705 mutex_unlock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
725 mutex_unlock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
732 mutex_lock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
742 mutex_lock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
747 mutex_unlock(&c->alloc_sem); in jffs2_flush_wbuf_gc()
Djffs2_fs_sb.h48 struct mutex alloc_sem; /* Used to protect all the following member
Dfs.c395 mutex_lock(&c->alloc_sem); in jffs2_remount_fs()
397 mutex_unlock(&c->alloc_sem); in jffs2_remount_fs()
Dwrite.c592 mutex_lock(&c->alloc_sem); in jffs2_do_unlink()
/linux-2.6.39/fs/ext4/
Dialloc.c730 down_read(&grp->alloc_sem); in ext4_claim_inode()
741 up_read(&grp->alloc_sem); in ext4_claim_inode()
790 up_read(&grp->alloc_sem); in ext4_claim_inode()
1272 down_write(&grp->alloc_sem); in ext4_init_inode_table()
1330 up_write(&grp->alloc_sem); in ext4_init_inode_table()
Dballoc.c440 down_write(&grp->alloc_sem); in ext4_add_groupblocks()
470 up_write(&grp->alloc_sem); in ext4_add_groupblocks()
Dmballoc.c1001 down_write_nested(&grp->alloc_sem, i); in ext4_mb_get_buddy_cache_lock()
1033 up_write(&grp->alloc_sem); in ext4_mb_put_buddy_cache_lock()
1167 e4b->alloc_semp = &grp->alloc_sem; in ext4_mb_load_buddy()
2318 init_rwsem(&meta_group_info[i]->alloc_sem); in ext4_mb_add_groupinfo()
Dext4.h1967 struct rw_semaphore alloc_sem; member