jffs2: Fix NFS race by using insert_inode_locked()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 3 Jun 2010 07:09:12 +0000 (08:09 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 3 Jun 2010 07:22:04 +0000 (08:22 +0100)
New inodes need to be locked as we're creating them, so they don't get used
by other things (like NFSd) before they're ready.

Pointed out by Al Viro.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

No differences found