mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-09 04:00:10 +00:00
The inode deletion path had bit rotted. Delete the ifdefs that were stopping it from deleting all the items associated with an inode. There can be a lot of xattr and data mapping items so we have them manage their own transactions (data already did). The xattr deletion code was trying to get a lock while the caller already held it so delete that. Then we accurately account for the small number of remaining items that finally delete the inode. Signed-off-by: Zach Brown <zab@versity.com>
15 lines
509 B
C
15 lines
509 B
C
#ifndef _SCOUTFS_XATTR_H_
|
|
#define _SCOUTFS_XATTR_H_
|
|
|
|
ssize_t scoutfs_getxattr(struct dentry *dentry, const char *name, void *buffer,
|
|
size_t size);
|
|
int scoutfs_setxattr(struct dentry *dentry, const char *name,
|
|
const void *value, size_t size, int flags);
|
|
int scoutfs_removexattr(struct dentry *dentry, const char *name);
|
|
ssize_t scoutfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
|
|
|
|
int scoutfs_xattr_drop(struct super_block *sb, u64 ino,
|
|
struct scoutfs_lock *lock);
|
|
|
|
#endif
|