• Josef Bacik's avatar
    Btrfs: fix more ESTALE problems with NFS · 76195853
    Josef Bacik authored
    When creating new inodes we don't setup inode->i_generation.  So if we generate
    an fh with a newly created inode we save the generation of 0, but if we flush
    the inode to disk and have to read it back when getting the inode on the server
    we'll have the right i_generation, so gens wont match and we get ESTALE.  This
    patch properly sets inode->i_generation when we create the new inode and now I'm
    no longer getting ESTALE.  Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    76195853
inode.c 194 KB