projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
452c75c
)
Btrfs: remove unnecessary key copy when logging inode
author
Filipe David Borba Manana
<
[email protected]
>
Mon, 7 Oct 2013 20:20:44 +0000
(21:20 +0100)
committer
Chris Mason
<
[email protected]
>
Tue, 12 Nov 2013 02:59:30 +0000
(21:59 -0500)
The btrfs_insert_empty_item() function doesn't modify its
key argument.
Signed-off-by: Filipe David Borba Manana <
[email protected]
>
Reviewed-by: Zach Brown <
[email protected]
>
Signed-off-by: Josef Bacik <
[email protected]
>
Signed-off-by: Chris Mason <
[email protected]
>
fs/btrfs/tree-log.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/tree-log.c
b/fs/btrfs/tree-log.c
index 1134aa40b6d1f83bb658bdf7d2b7bad61151a8c5..f2e0531dc719bb02253e502c6ab8fdff9b9f1081 100644
(file)
--- a/
fs/btrfs/tree-log.c
+++ b/
fs/btrfs/tree-log.c
@@
-3170,11
+3170,10
@@
static int log_inode_item(struct btrfs_trans_handle *trans,
struct inode *inode)
{
struct btrfs_inode_item *inode_item;
- struct btrfs_key key;
int ret;
- memcpy(&key, &BTRFS_I(inode)->location, sizeof(key));
-
ret = btrfs_insert_empty_item(trans, log, path, &key
,
+ ret = btrfs_insert_empty_item(trans, log, path,
+
&BTRFS_I(inode)->location
,
sizeof(*inode_item));
if (ret && ret != -EEXIST)
return ret;