mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 12:57:12 -05:00
Misc cleanup
This commit is contained in:
parent
e310d24615
commit
23824eaeb4
16 changed files with 24 additions and 83 deletions
|
|
@ -12,7 +12,7 @@ endif
|
|||
ifeq ($(NDEBUG),1)
|
||||
OPT_FLAGS := -O2 -DNDEBUG
|
||||
else
|
||||
OPT_FLAGS := -O0 -DDEBUG -g -fsanitize=undefined
|
||||
OPT_FLAGS := -O0 -DDEBUG -g
|
||||
endif
|
||||
|
||||
ifeq ($(LTO),1)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@
|
|||
#include <pthread.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef PTHREAD_MUTEX_ADAPTIVE_NP
|
||||
# define PTHREAD_MUTEX_ADAPTIVE_NP PTHREAD_MUTEX_NORMAL
|
||||
#endif
|
||||
|
||||
#define mutex_init(M) _mutex_init(M,__FILE__,__func__,__LINE__)
|
||||
#define mutex_destroy(M) _mutex_destroy(M,__FILE__,__func__,__LINE__)
|
||||
#define mutex_lock(M) _mutex_lock(M,__FILE__,__func__,__LINE__)
|
||||
|
|
@ -97,7 +101,7 @@ _mutex_lock(pthread_mutex_t *mutex_,
|
|||
case 0:
|
||||
return;
|
||||
case ETIMEDOUT:
|
||||
cnt++;
|
||||
cnt++;
|
||||
fmt::println(stderr,
|
||||
"NOTICE: pthread_mutex_timedlock expired - count={}; ({}:{}:{})",
|
||||
cnt,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
#include <pthread.h>
|
||||
|
||||
#ifndef PTHREAD_MUTEX_ADAPTIVE_NP
|
||||
# define PTHREAD_MUTEX_ADAPTIVE_NP PTHREAD_MUTEX_NORMAL
|
||||
#endif
|
||||
|
||||
|
||||
static
|
||||
inline
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "fuse_kernel.h"
|
||||
|
||||
void debug_fuse_open_out(const uint64_t unique,
|
||||
|
|
@ -51,5 +53,6 @@ void debug_fuse_bmap_out(const uint64_t unique,
|
|||
void debug_fuse_in_header(const struct fuse_in_header *hdr);
|
||||
|
||||
std::string fuse_debug_init_flag_name(const uint64_t);
|
||||
|
||||
void fuse_syslog_fuse_init_in(const struct fuse_init_in *arg);
|
||||
void fuse_syslog_fuse_init_out(const struct fuse_init_out *arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue