linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove unnecessary condition check
@ 2019-08-12 17:38 Diego Calleja
  2019-08-12 18:13 ` Nikolay Borisov
  0 siblings, 1 reply; 2+ messages in thread
From: Diego Calleja @ 2019-08-12 17:38 UTC (permalink / raw)
  To: linux-btrfs

extent_io.c:__extent_writepage_io has this code:

if (!compressed)
	...
else if (compressed)


Signed-off-by: Diego Calleja <diegocg@gmail.com>
---
 fs/btrfs/extent_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 1ff438fd5bc2..a53fb7b8a262 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3498,7 +3498,7 @@ static noinline_for_stack int __extent_writepage_io(struct inode *inode,
 				btrfs_writepage_endio_finish_ordered(page, cur,
 							    cur + iosize - 1,
 							    1);
-			else if (compressed) {
+			else {
 				/* we don't want to end_page_writeback on
 				 * a compressed extent.  this happens
 				 * elsewhere
-- 
2.22.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-12 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-12 17:38 [PATCH] Remove unnecessary condition check Diego Calleja
2019-08-12 18:13 ` Nikolay Borisov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).