media: staging: media: use relevant lock
[linux-2.6-block.git] / fs / btrfs / xattr.h
CommitLineData
9888c340 1/* SPDX-License-Identifier: GPL-2.0 */
5103e947
JB
2/*
3 * Copyright (C) 2007 Red Hat. All rights reserved.
5103e947
JB
4 */
5
9888c340
DS
6#ifndef BTRFS_XATTR_H
7#define BTRFS_XATTR_H
5103e947
JB
8
9#include <linux/xattr.h>
5103e947 10
f01cbd3f 11extern const struct xattr_handler *btrfs_xattr_handlers[];
5103e947 12
bcadd705 13int btrfs_getxattr(struct inode *inode, const char *name,
95819c05 14 void *buffer, size_t size);
ab0d0936 15int btrfs_setxattr(struct btrfs_trans_handle *trans,
f34f57a3
YZ
16 struct inode *inode, const char *name,
17 const void *value, size_t size, int flags);
738c93d4 18ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
5103e947 19
ab0d0936 20int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
2a7dba39
EP
21 struct inode *inode, struct inode *dir,
22 const struct qstr *qstr);
0279b4cd 23
9888c340 24#endif