]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix more ESTALE problems with NFS
authorJosef Bacik <josef@redhat.com>
Fri, 19 Nov 2010 02:18:02 +0000 (02:18 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 22 Nov 2010 03:26:08 +0000 (22:26 -0500)
commit981f9d689c840ebd73de23bfad4c08d02257c338
treed3c7af7f141566a1ca2acfdf1efccd374b5e349f
parent95651311b4564b6e8694e2e38d39b615ca93ffcf
Btrfs: fix more ESTALE problems with NFS

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: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c