git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
linux
/
reiserfs_xattr.h
diff --git
a/include/linux/reiserfs_xattr.h
b/include/linux/reiserfs_xattr.h
index
5353afb
..
966c358
100644
(file)
--- a/
include/linux/reiserfs_xattr.h
+++ b/
include/linux/reiserfs_xattr.h
@@
-2,8
+2,6
@@
File: linux/reiserfs_xattr.h
*/
File: linux/reiserfs_xattr.h
*/
-#include <linux/config.h>
-#include <linux/init.h>
#include <linux/xattr.h>
/* Magic value in header */
#include <linux/xattr.h>
/* Magic value in header */
@@
-15,6
+13,7
@@
struct reiserfs_xattr_header {
};
#ifdef __KERNEL__
};
#ifdef __KERNEL__
+#include <linux/init.h>
struct reiserfs_xattr_handler {
char *prefix;
struct reiserfs_xattr_handler {
char *prefix;
@@
-98,6
+97,11
@@
static inline void reiserfs_mark_inode_private(struct inode *inode)
inode->i_flags |= S_PRIVATE;
}
inode->i_flags |= S_PRIVATE;
}
+static inline void reiserfs_init_xattr_rwsem(struct inode *inode)
+{
+ init_rwsem(&REISERFS_I(inode)->xattr_sem);
+}
+
#else
#define is_reiserfs_priv_object(inode) 0
#else
#define is_reiserfs_priv_object(inode) 0
@@
-130,6
+134,9
@@
static inline int reiserfs_xattr_init(struct super_block *sb, int mount_flags)
sb->s_flags = (sb->s_flags & ~MS_POSIXACL); /* to be sure */
return 0;
};
sb->s_flags = (sb->s_flags & ~MS_POSIXACL); /* to be sure */
return 0;
};
+static inline void reiserfs_init_xattr_rwsem(struct inode *inode)
+{
+}
#endif
#endif /* __KERNEL__ */
#endif
#endif /* __KERNEL__ */