Revert "block: don't call into the driver for BLKROSET"
[platform/kernel/linux-rpi.git] / fs / 9p / xattr.h
1 /*
2  * Copyright IBM Corporation, 2010
3  * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2.1 of the GNU Lesser General Public License
7  * as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it would be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  */
14 #ifndef FS_9P_XATTR_H
15 #define FS_9P_XATTR_H
16
17 #include <linux/xattr.h>
18 #include <net/9p/9p.h>
19 #include <net/9p/client.h>
20
21 extern const struct xattr_handler *v9fs_xattr_handlers[];
22 extern const struct xattr_handler v9fs_xattr_acl_access_handler;
23 extern const struct xattr_handler v9fs_xattr_acl_default_handler;
24
25 ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name,
26                            void *buffer, size_t buffer_size);
27 ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
28                        void *buffer, size_t buffer_size);
29 int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
30                        const void *value, size_t value_len, int flags);
31 int v9fs_xattr_set(struct dentry *dentry, const char *name,
32                    const void *value, size_t value_len, int flags);
33 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer,
34                        size_t buffer_size);
35 #endif /* FS_9P_XATTR_H */