ext4: Optimize ext4 DIO overwrites
[linux/fpc-iii.git] / fs / squashfs / xattr.h
blob184129afd456654776e0dbf29b167b12648aa162
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Squashfs - a compressed read only filesystem for Linux
5 * Copyright (c) 2010
6 * Phillip Lougher <phillip@squashfs.org.uk>
8 * xattr.h
9 */
11 #ifdef CONFIG_SQUASHFS_XATTR
12 extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,
13 u64 *, int *);
14 extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,
15 unsigned int *, unsigned long long *);
16 #else
17 static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,
18 u64 start, u64 *xattr_table_start, int *xattr_ids)
20 ERROR("Xattrs in filesystem, these will be ignored\n");
21 *xattr_table_start = start;
22 return ERR_PTR(-ENOTSUPP);
25 static inline int squashfs_xattr_lookup(struct super_block *sb,
26 unsigned int index, int *count, unsigned int *size,
27 unsigned long long *xattr)
29 return 0;
31 #define squashfs_listxattr NULL
32 #define squashfs_xattr_handlers NULL
33 #endif