Skip to contentSkip to conversation

Btrfs: remove no longer used function extent_read_full_page_nolock()

PATCH New [email protected] 1 participant 2 messages Jan 27, 2016 – Jan 28, 2016 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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".

---
 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
index c473c42..3346cd8 100644
@@ -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
index 0377413..880d529 100644
@@ -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
#1 lore raw

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".

---

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
index c473c42..3346cd8 100644
@@ -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
index 0377413..880d529 100644
@@ -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