Sync pmem cache flush from pmem.c