diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-01-25 17:15:54 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 15:50:59 +0100 |
commit | bcf934894f1f4505d0186ec7569949de6e8dd97c (patch) | |
tree | 75a4662a25952f820afe6d968d2d2509297bdde3 /fs | |
parent | 003d7c59e8afc9b2c6b0d163e8e115406c4faecc (diff) | |
download | linux-stable-bcf934894f1f4505d0186ec7569949de6e8dd97c.tar.gz linux-stable-bcf934894f1f4505d0186ec7569949de6e8dd97c.tar.bz2 linux-stable-bcf934894f1f4505d0186ec7569949de6e8dd97c.zip |
Btrfs: cleanup unused cached_state in __extent_writepage_io
@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>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent_io.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 9359c1b7ccb8..69c054000f08 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3335,7 +3335,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; @@ -3356,8 +3355,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; } } @@ -3459,11 +3457,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; } |