Skip to content
Commit eb70d222 authored by Omar Sandoval's avatar Omar Sandoval Committed by David Sterba
Browse files

btrfs: remove unnecessary pg_offset assignments in __extent_writepage()



We're initializing pg_offset to 0, setting it immediately, then
reassigning it to 0 again after. The former became unnecessary in
211c17f5 ("Fix corners in writepage and btrfs_truncate_page"). The
latter is a leftover that should've been removed in 40f76580
("Btrfs: split up __extent_writepage to lower stack usage"). Remove
both.

Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent bffe633e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment