Searched refs:alloc_sem (Results 1 – 12 of 12) sorted by relevance
84 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()
14 alloc_sem17 The alloc_sem is a per-filesystem mutex, used primarily to ensure26 When writing new nodes, the alloc_sem must be held until the new nodes29 nodes to an inode may obsolete old ones, and by holding the alloc_sem37 the alloc_sem is also used to protect the wbuf-related members of the68 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.
130 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 …]
50 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()
581 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()
48 struct mutex alloc_sem; /* Used to protect all the following member
395 mutex_lock(&c->alloc_sem); in jffs2_remount_fs()397 mutex_unlock(&c->alloc_sem); in jffs2_remount_fs()
592 mutex_lock(&c->alloc_sem); in jffs2_do_unlink()
730 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()
440 down_write(&grp->alloc_sem); in ext4_add_groupblocks()470 up_write(&grp->alloc_sem); in ext4_add_groupblocks()
1001 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()
1967 struct rw_semaphore alloc_sem; member