[Btrfs-devel] Compile fix for 2.6.23
Jan Engelhardt
jengelh at computergmbh.de
Fri Jan 18 08:32:08 PST 2008
On Jan 18 2008 17:18, Jan Engelhardt wrote:
>
>Need <sched.h> for "current".
<linux/sched.h> and even outside the #ifndef...
===Patch begins===
Need to include <linux/sched.h> because <linux/fs.h> (where
is_owner_or_cap comes from) does not.
Signed-off-by: Jan Engelhardt <jengelh at computergmbh.de>
---
btrfs/acl.c | 1 +
1 file changed, 1 insertion(+)
Index: btrfs-0.11/btrfs/acl.c
===================================================================
--- btrfs-0.11.orig/btrfs/acl.c
+++ btrfs-0.11/btrfs/acl.c
@@ -22,6 +22,7 @@
#include <linux/posix_acl_xattr.h>
#include "ctree.h"
#include "xattr.h"
+#include <linux/sched.h>
#ifndef is_owner_or_cap
#define is_owner_or_cap(inode) \
((current->fsuid == (inode)->i_uid) || capable(CAP_FOWNER))
More information about the Btrfs-devel
mailing list