Skip to contentSkip to conversation

btrfs: remove unused inode argument from uncompress_inline()

PATCH In review Byongho Lee 2 participants 2 messages May 19, 2015 – May 21, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 btrfs: remove unused inode argument from uncompress_inline()

The inode argument is never used from the beginning, so remove it.

Change since v1:
- Add missing Signed-off-by line.

---
 fs/btrfs/inode.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
fs/btrfs/inode.c +2 -3
index 0020b56..6abd9ae 100644
@@ -6565,7 +6565,7 @@ static int merge_extent_mapping(struct extent_map_tree *em_tree,
 }
 
 static noinline int uncompress_inline(struct btrfs_path *path,
-				      struct inode *inode, struct page *page,
+				      struct page *page,
 				      size_t pg_offset, u64 extent_offset,
 				      struct btrfs_file_extent_item *item)
 {
@@ -6761,8 +6761,7 @@ next:
 		if (create == 0 && !PageUptodate(page)) {
 			if (btrfs_file_extent_compression(leaf, item) !=
 			    BTRFS_COMPRESS_NONE) {
-				ret = uncompress_inline(path, inode, page,
-							pg_offset,
+				ret = uncompress_inline(path, page, pg_offset,
 							extent_offset, item);
 				if (ret) {
 					err = ret;
Signature · 1 line
2.4.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Byongho Lee

The inode argument is never used from the beginning, so remove it.

Change since v1:
- Add missing Signed-off-by line.

This ^^^ belongs ...

Quoted 2 lines
Quoted 1 line

---

... here. The text below --- will not be part of the commit changelog, and is meant to be read by other people.

Quoted 2 lines
 fs/btrfs/inode.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)