fs/9p: fix create-unlink-getattr idiom
[linux-block.git] / fs / 9p / vfs_inode.c
index ae0c38ad1fcbeea4cc1fcb86fff5b27c40295847..31c2fddabb82abcb2b693016a935aa8b49aec7ed 100644 (file)
@@ -570,6 +570,10 @@ static int v9fs_remove(struct inode *dir, struct dentry *dentry, int flags)
 
                v9fs_invalidate_inode_attr(inode);
                v9fs_invalidate_inode_attr(dir);
+
+               /* invalidate all fids associated with dentry */
+               /* NOTE: This will not include open fids */
+               dentry->d_op->d_release(dentry);
        }
        return retval;
 }