aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h4
-rw-r--r--include/linux/smp.h18
2 files changed, 12 insertions, 10 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 58ce336d4a6b..98205f680476 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -284,6 +284,7 @@ extern int dir_notify_enable;
284#include <linux/pid.h> 284#include <linux/pid.h>
285#include <linux/mutex.h> 285#include <linux/mutex.h>
286#include <linux/sysctl.h> 286#include <linux/sysctl.h>
287#include <linux/capability.h>
287 288
288#include <asm/atomic.h> 289#include <asm/atomic.h>
289#include <asm/semaphore.h> 290#include <asm/semaphore.h>
@@ -990,6 +991,9 @@ enum {
990#define put_fs_excl() atomic_dec(&current->fs_excl) 991#define put_fs_excl() atomic_dec(&current->fs_excl)
991#define has_fs_excl() atomic_read(&current->fs_excl) 992#define has_fs_excl() atomic_read(&current->fs_excl)
992 993
994#define is_owner_or_cap(inode) \
995 ((current->fsuid == (inode)->i_uid) || capable(CAP_FOWNER))
996
993/* not quite ready to be deprecated, but... */ 997/* not quite ready to be deprecated, but... */
994extern void lock_super(struct super_block *); 998extern void lock_super(struct super_block *);
995extern void unlock_super(struct super_block *); 999extern void unlock_super(struct super_block *);
diff --git a/include/linux/smp.h b/include/linux/smp.h
index 8039daced688..259a13c3bd98 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -7,7 +7,6 @@
7 */ 7 */
8 8
9#include <linux/errno.h> 9#include <linux/errno.h>
10#include <asm/system.h>
11 10
12extern void cpu_idle(void); 11extern void cpu_idle(void);
13 12
@@ -100,15 +99,14 @@ static inline int up_smp_call_function(void)
100static inline void smp_send_reschedule(int cpu) { } 99static inline void smp_send_reschedule(int cpu) { }
101#define num_booting_cpus() 1 100#define num_booting_cpus() 1
102#define smp_prepare_boot_cpu() do {} while (0) 101#define smp_prepare_boot_cpu() do {} while (0)
103static inline int smp_call_function_single(int cpuid, void (*func) (void *info), 102#define smp_call_function_single(cpuid, func, info, retry, wait) \
104 void *info, int retry, int wait) 103({ \
105{ 104 WARN_ON(cpuid != 0); \
106 WARN_ON(cpuid != 0); 105 local_irq_disable(); \
107 local_irq_disable(); 106 (func)(info); \
108 func(info); 107 local_irq_enable(); \
109 local_irq_enable(); 108 0; \
110 return 0; 109})
111}
112 110
113#endif /* !SMP */ 111#endif /* !SMP */
114 112