xfs: remove useless definitions in xfs_linux.h
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.
Signed-off-by Yafang Shao <[email protected]>
--- fs/xfs/xfs_linux.h | 4 ---- 1 file changed, 4 deletions(-)
fs/xfs/xfs_linux.h +0 -4
@@ -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
Quoted 4 lines · Yafang Shao
Remove
current_pid(),current_test_flags()andcurrent_clear_flags_nested(), because they are useless.Signed-off-by Yafang Shao <[email protected]>
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>
Quoted 4 lines · Yafang Shao
Remove
current_pid(),current_test_flags()andcurrent_clear_flags_nested(), because they are useless.Signed-off-by Yafang Shao <[email protected]>
Looks ok, will put in tree...
Reviewed-by Darrick J. Wong <[email protected]>
--D
Quoted 24 lines
--- fs/xfs/xfs_linux.h | 4 ---- 1 file changed, 4 deletions(-)fs/xfs/xfs_linux.h +0
-4@@ -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