Unionfs: unionfs_create needs to revalidate the dentry
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 23 Mar 2007 00:01:56 +0000 (20:01 -0400)
committerErez_Zadok <ezk@cs.sunysb.edu>
Mon, 23 Jul 2007 00:50:24 +0000 (20:50 -0400)
commitbc0e87ce1a93a75fec54d77df4d5b8421b1ec3a4
tree6f10442130be66afdda6d6402e6cc60e71a45a75
parente91a70f701af9504682a57f9dab5bc97c77f4260
Unionfs: unionfs_create needs to revalidate the dentry

We have to read-lock the superblock rwsem, and we have to revalidate the
parent dentry and this one.  A branch-management operation could have taken
place, mid-way through a VFS operation that eventually reaches
unionfs_create().  So we have to ensure consistency, just as we do with the
file operations.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/inode.c