* [PATCH] Btrfs: cleanup unused cached_state in __extent_writepage_io
@ 2017-01-26 1:15 Liu Bo
2017-01-26 17:34 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Liu Bo @ 2017-01-26 1:15 UTC (permalink / raw)
To: linux-btrfs; +Cc: David Sterba
@cached_state is no more required in __extent_writepage_io, also remove the
goto label.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
fs/btrfs/extent_io.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 4ac383a..d5f3edb 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3330,7 +3330,6 @@ static noinline_for_stack int __extent_writepage_io(struct inode *inode,
u64 block_start;
u64 iosize;
sector_t sector;
- struct extent_state *cached_state = NULL;
struct extent_map *em;
struct block_device *bdev;
size_t pg_offset = 0;
@@ -3351,8 +3350,7 @@ static noinline_for_stack int __extent_writepage_io(struct inode *inode,
update_nr_written(page, wbc, nr_written);
unlock_page(page);
- ret = 1;
- goto done_unlocked;
+ return 1;
}
}
@@ -3454,11 +3452,6 @@ static noinline_for_stack int __extent_writepage_io(struct inode *inode,
}
done:
*nr_ret = nr;
-
-done_unlocked:
-
- /* drop our reference on any cached states */
- free_extent_state(cached_state);
return ret;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Btrfs: cleanup unused cached_state in __extent_writepage_io
2017-01-26 1:15 [PATCH] Btrfs: cleanup unused cached_state in __extent_writepage_io Liu Bo
@ 2017-01-26 17:34 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2017-01-26 17:34 UTC (permalink / raw)
To: Liu Bo; +Cc: linux-btrfs, David Sterba
On Wed, Jan 25, 2017 at 05:15:54PM -0800, Liu Bo wrote:
> @cached_state is no more required in __extent_writepage_io, also remove the
> goto label.
>
> Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-26 17:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-26 1:15 [PATCH] Btrfs: cleanup unused cached_state in __extent_writepage_io Liu Bo
2017-01-26 17:34 ` David Sterba
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.