Commit 659b2e3b authored by Joe Perches's avatar Joe Perches Committed by Philipp Reisner

block: Convert last uses of __FUNCTION__ to __func__

Just about all of these have been converted to __func__,
so convert the last uses.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent ccdd6a93
...@@ -1867,7 +1867,7 @@ static inline void inc_ap_pending(struct drbd_device *device) ...@@ -1867,7 +1867,7 @@ static inline void inc_ap_pending(struct drbd_device *device)
func, line, \ func, line, \
atomic_read(&device->which)) atomic_read(&device->which))
#define dec_ap_pending(device) _dec_ap_pending(device, __FUNCTION__, __LINE__) #define dec_ap_pending(device) _dec_ap_pending(device, __func__, __LINE__)
static inline void _dec_ap_pending(struct drbd_device *device, const char *func, int line) static inline void _dec_ap_pending(struct drbd_device *device, const char *func, int line)
{ {
if (atomic_dec_and_test(&device->ap_pending_cnt)) if (atomic_dec_and_test(&device->ap_pending_cnt))
...@@ -1886,7 +1886,7 @@ static inline void inc_rs_pending(struct drbd_device *device) ...@@ -1886,7 +1886,7 @@ static inline void inc_rs_pending(struct drbd_device *device)
atomic_inc(&device->rs_pending_cnt); atomic_inc(&device->rs_pending_cnt);
} }
#define dec_rs_pending(device) _dec_rs_pending(device, __FUNCTION__, __LINE__) #define dec_rs_pending(device) _dec_rs_pending(device, __func__, __LINE__)
static inline void _dec_rs_pending(struct drbd_device *device, const char *func, int line) static inline void _dec_rs_pending(struct drbd_device *device, const char *func, int line)
{ {
atomic_dec(&device->rs_pending_cnt); atomic_dec(&device->rs_pending_cnt);
...@@ -1907,14 +1907,14 @@ static inline void inc_unacked(struct drbd_device *device) ...@@ -1907,14 +1907,14 @@ static inline void inc_unacked(struct drbd_device *device)
atomic_inc(&device->unacked_cnt); atomic_inc(&device->unacked_cnt);
} }
#define dec_unacked(device) _dec_unacked(device, __FUNCTION__, __LINE__) #define dec_unacked(device) _dec_unacked(device, __func__, __LINE__)
static inline void _dec_unacked(struct drbd_device *device, const char *func, int line) static inline void _dec_unacked(struct drbd_device *device, const char *func, int line)
{ {
atomic_dec(&device->unacked_cnt); atomic_dec(&device->unacked_cnt);
ERR_IF_CNT_IS_NEGATIVE(unacked_cnt, func, line); ERR_IF_CNT_IS_NEGATIVE(unacked_cnt, func, line);
} }
#define sub_unacked(device, n) _sub_unacked(device, n, __FUNCTION__, __LINE__) #define sub_unacked(device, n) _sub_unacked(device, n, __func__, __LINE__)
static inline void _sub_unacked(struct drbd_device *device, int n, const char *func, int line) static inline void _sub_unacked(struct drbd_device *device, int n, const char *func, int line)
{ {
atomic_sub(n, &device->unacked_cnt); atomic_sub(n, &device->unacked_cnt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment