xfs: wait for direct I/O to complete in fsync and write_inode