]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Btrfs: call d_instantiate after all ops are setup
authorAl Viro <viro@ZenIV.linux.org.uk>
Fri, 23 Dec 2011 12:58:13 +0000 (07:58 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 23 Dec 2011 13:02:26 +0000 (08:02 -0500)
commit08c422c27f855d27b0b3d9fa30ebd938d4ae6f1f
treef618c94aa612781c911e18440df7eb16aed8697b
parent8d532b2afb2eacc84588db709ec280a3d1219be3
Btrfs: call d_instantiate after all ops are setup

This closes races where btrfs is calling d_instantiate too soon during
inode creation.  All of the callers of btrfs_add_nondir are updated to
instantiate after the inode is fully setup in memory.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c