diff mbox

[2/2] btrfs-progs: Remove unnecessary parameter to clear_extent_uptodate

Message ID 20160928083004.17860-2-quwenruo@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Qu Wenruo Sept. 28, 2016, 8:30 a.m. UTC
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
 disk-io.c   | 4 ++--
 extent_io.h | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

Comments

David Sterba Sept. 29, 2016, 5:37 p.m. UTC | #1
On Wed, Sep 28, 2016 at 04:30:04PM +0800, Qu Wenruo wrote:
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/disk-io.c b/disk-io.c
index 854c285..08d3f79 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -241,7 +241,7 @@  static int verify_parent_transid(struct extent_io_tree *io_tree,
 
 	ret = 1;
 out:
-	clear_extent_buffer_uptodate(io_tree, eb);
+	clear_extent_buffer_uptodate(eb);
 	return ret;
 
 }
@@ -976,7 +976,7 @@  static int setup_root_or_create_block(struct btrfs_fs_info *fs_info,
 			btrfs_find_create_tree_block(fs_info, 0, nodesize);
 		if (!info_root->node)
 			return -ENOMEM;
-		clear_extent_buffer_uptodate(NULL, info_root->node);
+		clear_extent_buffer_uptodate(info_root->node);
 	}
 
 	return 0;
diff --git a/extent_io.h b/extent_io.h
index 208c4fe..bd6cf9e 100644
--- a/extent_io.h
+++ b/extent_io.h
@@ -125,8 +125,7 @@  static inline int set_extent_buffer_uptodate(struct extent_buffer *eb)
 	return 0;
 }
 
-static inline int clear_extent_buffer_uptodate(struct extent_io_tree *tree,
-				struct extent_buffer *eb)
+static inline int clear_extent_buffer_uptodate(struct extent_buffer *eb)
 {
 	eb->flags &= ~EXTENT_UPTODATE;
 	return 0;