[PATCH 5.7 016/204] btrfs: only commit delayed items at fsync if we are logging a directory