]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: move folio initialization to one place in attach_eb_folio_to_filemap()
authorDaniel Vacek <neelx@suse.com>
Wed, 23 Apr 2025 08:51:22 +0000 (10:51 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:49 +0000 (14:30 +0200)
commit406698623a7dd80bac516fd762c0bd0294606383
tree95be293acedf0f24e24977fd6fdeb748b91fc791
parentc779b7980c98740341d88806e60d926403dc7597
btrfs: move folio initialization to one place in attach_eb_folio_to_filemap()

This is just a trivial change. The code looks a bit more readable this way, IMO.

Move initialization of existing_folio to the beginning of the retry loop
so it's set to NULL at one place.

Signed-off-by: Daniel Vacek <neelx@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c