* [PATCH 1/2] btrfs: Cleanup some redundant codes in btrfs_lookup_csums_range()
@ 2013-03-18 9:18 zwu.kernel
2013-03-18 9:18 ` [PATCH 2/2] btrfs: Cleanup some redundant codes in btrfs_log_inode() zwu.kernel
0 siblings, 1 reply; 2+ messages in thread
From: zwu.kernel @ 2013-03-18 9:18 UTC (permalink / raw)
To: linux-btrfs; +Cc: linux-kernel, Zhi Yong Wu
From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
fs/btrfs/file-item.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c
index ec16020..1ba85b4 100644
--- a/fs/btrfs/file-item.c
+++ b/fs/btrfs/file-item.c
@@ -356,11 +356,8 @@ int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID ||
- key.type != BTRFS_EXTENT_CSUM_KEY)
- break;
-
- btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
- if (key.offset > end)
+ key.type != BTRFS_EXTENT_CSUM_KEY ||
+ key.offset > end)
break;
if (key.offset > start)
--
1.7.11.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] btrfs: Cleanup some redundant codes in btrfs_log_inode()
2013-03-18 9:18 [PATCH 1/2] btrfs: Cleanup some redundant codes in btrfs_lookup_csums_range() zwu.kernel
@ 2013-03-18 9:18 ` zwu.kernel
0 siblings, 0 replies; 2+ messages in thread
From: zwu.kernel @ 2013-03-18 9:18 UTC (permalink / raw)
To: linux-btrfs; +Cc: linux-kernel, Zhi Yong Wu
From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
fs/btrfs/tree-log.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 451fad9..83d4e1d 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -3614,8 +3614,6 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
bool fast_search = false;
u64 ino = btrfs_ino(inode);
- log = root->log_root;
-
path = btrfs_alloc_path();
if (!path)
return -ENOMEM;
--
1.7.11.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-18 9:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18 9:18 [PATCH 1/2] btrfs: Cleanup some redundant codes in btrfs_lookup_csums_range() zwu.kernel
2013-03-18 9:18 ` [PATCH 2/2] btrfs: Cleanup some redundant codes in btrfs_log_inode() zwu.kernel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.