Btrfs: deal with eexist in the log while logging files

When using mount -o inode_cache, the tree logging code may find
a file in the log from the previous generation of the file.  The
current code will error out with EEXIST and eventually BUG().

This changes things to handle the eexist and clear out the old version
of the file.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
1 file changed