• Chris Mason's avatar
    Btrfs: Dir fsync optimizations · 49eb7e46
    Chris Mason authored
    Drop i_mutex during the commit
    Don't bother doing the fsync at all unless the dir is marked as dirtied
    and needing fsync in this transaction.  For directories, this means
    that someone has unlinked a file from the dir without fsyncing the
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>