• J
    Btrfs: fix more ESTALE problems with NFS · 76195853
    Josef Bacik 提交于
    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: NJosef Bacik <josef@redhat.com>
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    76195853
inode.c 194.2 KB