Skip to contentSkip to conversation

xfs: remove useless definitions in xfs_linux.h

PATCH In review Yafang Shao 3 participants 3 messages Jun 24, 2020 – Jul 2, 2020 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: remove useless definitions in xfs_linux.h

Remove current_pid(), current_test_flags() and current_clear_flags_nested(), because they are useless.

---
 fs/xfs/xfs_linux.h | 4 ----
 1 file changed, 4 deletions(-)
fs/xfs/xfs_linux.h +0 -4
index 9f70d2f..ab737fe 100644
@@ -102,12 +102,8 @@
 #define xfs_cowb_secs		xfs_params.cowb_timer.val
 
 #define current_cpu()		(raw_smp_processor_id())
-#define current_pid()		(current->pid)
-#define current_test_flags(f)	(current->flags & (f))
 #define current_set_flags_nested(sp, f)		\
 		(*(sp) = current->flags, current->flags |= (f))
-#define current_clear_flags_nested(sp, f)	\
-		(*(sp) = current->flags, current->flags &= ~(f))
 #define current_restore_flags_nested(sp, f)	\
 		(current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))
 
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Yafang Shao
Quoted 4 lines · Yafang Shao

Remove current_pid(), current_test_flags() and current_clear_flags_nested(), because they are useless.

Looks ok, will put in tree...

--D

Quoted 24 lines
---
 fs/xfs/xfs_linux.h | 4 ----
 1 file changed, 4 deletions(-)
fs/xfs/xfs_linux.h +0 -4
index 9f70d2f..ab737fe 100644
@@ -102,12 +102,8 @@
 #define xfs_cowb_secs		xfs_params.cowb_timer.val
 
 #define current_cpu()		(raw_smp_processor_id())
-#define current_pid()		(current->pid)
-#define current_test_flags(f)	(current->flags & (f))
 #define current_set_flags_nested(sp, f)		\
 		(*(sp) = current->flags, current->flags |= (f))
-#define current_clear_flags_nested(sp, f)	\
-		(*(sp) = current->flags, current->flags &= ~(f))
 #define current_restore_flags_nested(sp, f)	\
 		(current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))
 
Signature · 1 line
1.8.3.1