search for: btrfs_lookup_xattr

Displaying 3 results from an estimated 3 matches for "btrfs_lookup_xattr".

2011 May 27
0
[PATCH] Btrfs: try to only do one btrfs_search_slot in do_setxattr
...diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index 72ab029..4857a87 100644 --- a/fs/btrfs/xattr.c +++ b/fs/btrfs/xattr.c @@ -102,43 +102,41 @@ static int do_setxattr(struct btrfs_trans_handle *trans, if (!path) return -ENOMEM; - /* first lets see if we already have this xattr */ - di = btrfs_lookup_xattr(trans, root, path, inode->i_ino, name, - strlen(name), -1); - if (IS_ERR(di)) { - ret = PTR_ERR(di); - goto out; - } - - /* ok we already have this xattr, lets remove it */ - if (di) { - /* if we want create only exit */ - if (flags & XATTR_CREATE) { - ret = -EEXIST; + if (flags &am...
2011 Jul 14
0
btrfs panic
...k+0x36/0x69 [ 1998.478275] [<ffffffffa025dbe1>] ? btrfs_try_spin_lock+0x2a/0x89 [btrfs] [ 1998.478275] [<ffffffffa025dbe1>] btrfs_try_spin_lock+0x2a/0x89 [btrfs] [ 1998.478275] [<ffffffffa021d025>] btrfs_search_slot+0x39c/0x4c0 [btrfs] [ 1998.478275] [<ffffffffa022a7c9>] btrfs_lookup_xattr+0x76/0xd7 [btrfs] [ 1998.478275] [<ffffffffa0219290>] ? btrfs_alloc_path+0x1a/0x1c [btrfs] [ 1998.478275] [<ffffffff81114a76>] ? kmem_cache_alloc+0x57/0xfc [ 1998.478275] [<ffffffffa0240d00>] ? btrfs_file_aio_write+0x45/0x49a [btrfs] [ 1998.478275] [<ffffffffa024c066>] _...
2012 Jun 21
0
[RFC PATCH V2] Btrfs: introduce extent buffer cache for each i-node
..._insert_xattr_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, - struct btrfs_path *path, u64 objectid, + struct inode *inode, + struct btrfs_path *path, const char *name, u16 name_len, const void *data, u16 data_len); struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, @@ -2876,9 +2902,9 @@ int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 index); int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, - struct btrfs_root *r...