• F
    btrfs: factor out the copying loop of dir items from log_dir_items() · eb10d85e
    Filipe Manana 提交于
    In preparation for the next change, move the loop that processes a leaf
    and copies its directory items to the log, into a separate helper
    function. This makes the next change simpler and it also helps making
    log_dir_items() a bit shorter (specially after the next change).
    
    This patch is part of a patchset comprised of the following 5 patches:
    
      btrfs: remove root argument from btrfs_log_inode() and its callees
      btrfs: remove redundant log root assignment from log_dir_items()
      btrfs: factor out the copying loop of dir items from log_dir_items()
      btrfs: insert items in batches when logging a directory when possible
      btrfs: keep track of the last logged keys when logging a directory
    
    This is patch 3/5. The change log of the last patch (5/5) has performance
    results.
    Signed-off-by: NFilipe Manana <fdmanana@suse.com>
    Reviewed-by: NDavid Sterba <dsterba@suse.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    eb10d85e
tree-log.c 179.7 KB