Skip to content

Commit 161ab30

Browse files
adam900710kdave
authored andcommitted
btrfs: get rid of compressed_bio::compressed_folios[]
Now there is no one utilizing that member, we can safely remove it along with compressed_bio::nr_folios member. The size is reduced from 352 to 336 bytes on x86_64. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent e1bc83f commit 161ab30

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

fs/btrfs/compression.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ static void end_bbio_compressed_write(struct btrfs_bio *bbio)
300300
/* Note, our inode could be gone now. */
301301
bio_for_each_folio_all(fi, &bbio->bio)
302302
btrfs_free_compr_folio(fi.folio);
303-
kfree(cb->compressed_folios);
304303
bio_put(&cb->bbio.bio);
305304
}
306305

fs/btrfs/compression.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ static_assert((BTRFS_MAX_COMPRESSED % PAGE_SIZE) == 0);
4242
#define BTRFS_ZLIB_DEFAULT_LEVEL 3
4343

4444
struct compressed_bio {
45-
/* Number of compressed folios in the array. */
46-
unsigned int nr_folios;
47-
48-
/* The folios with the compressed data on them. */
49-
struct folio **compressed_folios;
50-
5145
/* starting offset in the inode for our pages */
5246
u64 start;
5347

0 commit comments

Comments
 (0)