• Chris Mason's avatar
    Btrfs: fix extent_buffer leak during tree log replay · b263c2c8
    Chris Mason authored
    
    
    During tree log replay, we read in the tree log roots,
    process them and then free them.  A recent change
    takes an extra reference on the root node of the tree
    when the root is read in, and stores that reference
    in root->commit_root.
    
    This reference was not being freed, leaving us with
    one buffer pinned in ram for each subvol with
    a tree log root after a crash.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    b263c2c8