tm_ref
atomic_set(&file->tm_ref, 0);
if (atomic_inc_return(&file->tm_ref) > 1)
if (atomic_dec_return(&file->tm_ref) > 0)