cramfs: only unlock new inodes
Commit 77b8a75f5b
introduced a warning at fs/inode.c:692 unlock_new_inode(),
caused by unlock_new_inode() being called on existing inodes as well.
This patch changes setup_inode() to only call unlock_new_inode() for I_NEW
inodes.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f4ae2faa40
commit
b845ff8f3e
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ static struct inode *get_cramfs_inode(struct super_block *sb,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
inode = iget_locked(sb, CRAMINO(cramfs_inode));
|
inode = iget_locked(sb, CRAMINO(cramfs_inode));
|
||||||
if (inode) {
|
if (inode && (inode->i_state & I_NEW)) {
|
||||||
setup_inode(inode, cramfs_inode);
|
setup_inode(inode, cramfs_inode);
|
||||||
unlock_new_inode(inode);
|
unlock_new_inode(inode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue