Displaying 2 results from an estimated 2 matches for "xattr_replac".
Did you mean:
xattr_replace
2011 May 27
0
[PATCH] Btrfs: try to only do one btrfs_search_slot in do_setxattr
...cause we lookup the xattr first so we can delete
it if we''re setting a new value to an existing xattr. But in the create case we
don''t have any xattrs, so it is completely useless to have the extra lookup. So
re-arrange things so that we only lookup first if we specifically have
XATTR_REPLACE. That way in the basic case we only do 1 search, and in the more
complicated case we do the normal 2 lookups. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
---
fs/btrfs/xattr.c | 54 ++++++++++++++++++++++++++----------------------------
1 files changed, 26 insertions(+), 28 de...
2005 Jan 06
0
[2.6 patch] fs/ext3/: possible cleanups
...2 +846,11 @@
}
/*
- * ext3_xattr_set_handle()
- *
- * Create, replace or remove an extended attribute for this inode. Buffer
- * is NULL to remove an existing extended attribute, and non-NULL to
- * either replace an existing extended attribute, or create a new extended
- * attribute. The flags XATTR_REPLACE and XATTR_CREATE
- * specify that an extended attribute must exist and must not exist
- * previous to the call, respectively.
- *
- * Returns 0, or a negative error number on failure.
- */
-int
-ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
- const char *name, const...