posix_acl: fix reference leaks in posix_acl_create
[linux-2.6-block.git] / fs / hfsplus / xattr.h
CommitLineData
127e5f5a
VD
1/*
2 * linux/fs/hfsplus/xattr.h
3 *
4 * Vyacheslav Dubeyko <slava@dubeyko.com>
5 *
6 * Logic of processing extended attributes
7 */
8
9#ifndef _LINUX_HFSPLUS_XATTR_H
10#define _LINUX_HFSPLUS_XATTR_H
11
12#include <linux/xattr.h>
13
14extern const struct xattr_handler hfsplus_xattr_osx_handler;
15extern const struct xattr_handler hfsplus_xattr_user_handler;
16extern const struct xattr_handler hfsplus_xattr_trusted_handler;
127e5f5a
VD
17extern const struct xattr_handler hfsplus_xattr_security_handler;
18
19extern const struct xattr_handler *hfsplus_xattr_handlers[];
20
21int __hfsplus_setxattr(struct inode *inode, const char *name,
22 const void *value, size_t size, int flags);
23
24static inline int hfsplus_setxattr(struct dentry *dentry, const char *name,
25 const void *value, size_t size, int flags)
26{
27 return __hfsplus_setxattr(dentry->d_inode, name, value, size, flags);
28}
29
b4c1107c 30ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
127e5f5a
VD
31 void *value, size_t size);
32
b4c1107c
VD
33static inline ssize_t hfsplus_getxattr(struct dentry *dentry,
34 const char *name,
35 void *value,
36 size_t size)
37{
38 return __hfsplus_getxattr(dentry->d_inode, name, value, size);
39}
40
127e5f5a
VD
41ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
42
127e5f5a
VD
43int hfsplus_init_security(struct inode *inode, struct inode *dir,
44 const struct qstr *qstr);
45
b4c1107c
VD
46int hfsplus_init_inode_security(struct inode *inode, struct inode *dir,
47 const struct qstr *qstr);
127e5f5a
VD
48
49#endif