[PATCH 5.8 020/232] btrfs: only commit delayed items at fsync if we are logging a directory