Btrfs: remove no longer used function extent_read_full_page_nolock()
PATCH 2/2 Btrfs: remove no longer used function extent_read_full_page_nolock()
From: Filipe Manana <[email protected]>
Not needed after the previous patch named
"Btrfs: fix page reading in extent_same ioctl leading to csum errors".
Signed-off-by Filipe Manana <[email protected]>
--- fs/btrfs/compression.c | 6 +----- fs/btrfs/extent_io.c | 45 +++++++++++---------------------------------- fs/btrfs/extent_io.h | 3 --- 3 files changed, 12 insertions(+), 42 deletions(-)
fs/btrfs/compression.c +1 -5
@@ -637,11 +637,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, faili = nr_pages -1 ; cb->nr_pages = nr_pages; -/* In the parent-locked case, we only locked the range we are -* interested in. In all other cases, we can opportunistically -* cache decompressed data that goes beyond the requested range. */ -if (!(bio_flags &EXTENT_BIO_PARENT_LOCKED )) -add_ra_bio_pages (inode, em_start + em_len, cb); +add_ra_bio_pages (inode, em_start + em_len, cb);/* include any pages we added in add_ra-bio_pages */ uncompressed_len = bio->bi_vcnt *PAGE_CACHE_SIZE ;
fs/btrfs/extent_io.c +11 -34
97 lines not on this page · raw message
fs/btrfs/extent_io.h +0 -3
@@ -29,7 +29,6 @@*/ #define EXTENT_BIO_COMPRESSED 1#define EXTENT_BIO_TREE_LOG 2 -#define EXTENT_BIO_PARENT_LOCKED 4#define EXTENT_BIO_FLAG_SHIFT 16/* these are bit numbers for test/set bit */
@@ -210,8 +209,6 @@ static inline int lock_extent(struct extent_io_tree *tree, u64 start, u64 end)int try_lock_extent (struct extent_io_tree *tree,u64 start,u64 end);int extent_read_full_page (struct extent_io_tree *tree,struct page *page,get_extent_t *get_extent,int mirror_num); -int extent_read_full_page_nolock (struct extent_io_tree *tree,struct page *page, -get_extent_t *get_extent,int mirror_num);int __init extent_io_init (void );void extent_io_exit (void );
Signature · 1 line
2.7.0.rc3
PATCH v2 2/2 Btrfs: remove no longer used function extent_read_full_page_nolock()
From: Filipe Manana <[email protected]>
Not needed after the previous patch named
"Btrfs: fix page reading in extent_same ioctl leading to csum errors".
Signed-off-by Filipe Manana <[email protected]>
---
V2: Fixed assignment to variable "this_bio_flags". Should be set to 0
and not "*bio_flags".
fs/btrfs/compression.c | 6 +----- fs/btrfs/extent_io.c | 45 +++++++++++---------------------------------- fs/btrfs/extent_io.h | 3 --- 3 files changed, 12 insertions(+), 42 deletions(-)
fs/btrfs/compression.c +1 -5
@@ -637,11 +637,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, faili = nr_pages -1 ; cb->nr_pages = nr_pages; -/* In the parent-locked case, we only locked the range we are -* interested in. In all other cases, we can opportunistically -* cache decompressed data that goes beyond the requested range. */ -if (!(bio_flags &EXTENT_BIO_PARENT_LOCKED )) -add_ra_bio_pages (inode, em_start + em_len, cb); +add_ra_bio_pages (inode, em_start + em_len, cb);/* include any pages we added in add_ra-bio_pages */ uncompressed_len = bio->bi_vcnt *PAGE_CACHE_SIZE ;
fs/btrfs/extent_io.c +11 -34
97 lines not on this page · raw message
fs/btrfs/extent_io.h +0 -3
@@ -29,7 +29,6 @@*/ #define EXTENT_BIO_COMPRESSED 1#define EXTENT_BIO_TREE_LOG 2 -#define EXTENT_BIO_PARENT_LOCKED 4#define EXTENT_BIO_FLAG_SHIFT 16/* these are bit numbers for test/set bit */
@@ -210,8 +209,6 @@ static inline int lock_extent(struct extent_io_tree *tree, u64 start, u64 end)int try_lock_extent (struct extent_io_tree *tree,u64 start,u64 end);int extent_read_full_page (struct extent_io_tree *tree,struct page *page,get_extent_t *get_extent,int mirror_num); -int extent_read_full_page_nolock (struct extent_io_tree *tree,struct page *page, -get_extent_t *get_extent,int mirror_num);int __init extent_io_init (void );void extent_io_exit (void );
Signature · 1 line
2.7.0.rc3