Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14764
b: refs/heads/master
c: 21eeb7a
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Nov 29, 2005
1 parent edbf3a8 commit 5c123a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc4117f8767203927e78b92e9e5b3ddb71d6a84d
refs/heads/master: 21eeb7aa116b1f59fc23339521173cbb13e57f1a
2 changes: 2 additions & 0 deletions trunk/fs/jffs2/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ void jffs2_read_inode (struct inode *inode)
c = JFFS2_SB_INFO(inode->i_sb);

jffs2_init_inode_info(f);
down(&f->sem);

ret = jffs2_do_read_inode(c, f, inode->i_ino, &latest_node);

Expand Down Expand Up @@ -400,6 +401,7 @@ struct inode *jffs2_new_inode (struct inode *dir_i, int mode, struct jffs2_raw_i

f = JFFS2_INODE_INFO(inode);
jffs2_init_inode_info(f);
down(&f->sem);

memset(ri, 0, sizeof(*ri));
/* Set OS-specific defaults for new inodes */
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/jffs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static void jffs2_i_init_once(void * foo, kmem_cache_t * cachep, unsigned long f

if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) ==
SLAB_CTOR_CONSTRUCTOR) {
init_MUTEX_LOCKED(&ei->sem);
init_MUTEX(&ei->sem);
inode_init_once(&ei->vfs_inode);
}
}
Expand Down

0 comments on commit 5c123a6

Please sign in to comment.