aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-12-03 07:08:59 -0500
committerDavid Sterba <dsterba@suse.com>2015-12-07 09:06:45 -0500
commita9d93e1778f3a92852d3816cd203cbec179b8813 (patch)
tree6f4c80499fa7e6b71801166e9ae6c30af3529506
parent69ba39272c519a34a4a0169b839ca177bf0f0104 (diff)
btrfs: make extent_clear_unlock_delalloc return void
Does not return any errors, nor anything from the callgraph. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/extent_io.c5
-rw-r--r--fs/btrfs/extent_io.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index d5778e821d60..b7261ea08a87 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1820,7 +1820,7 @@ out_failed:
1820 return found; 1820 return found;
1821} 1821}
1822 1822
1823int extent_clear_unlock_delalloc(struct inode *inode, u64 start, u64 end, 1823void extent_clear_unlock_delalloc(struct inode *inode, u64 start, u64 end,
1824 struct page *locked_page, 1824 struct page *locked_page,
1825 unsigned clear_bits, 1825 unsigned clear_bits,
1826 unsigned long page_ops) 1826 unsigned long page_ops)
@@ -1835,7 +1835,7 @@ int extent_clear_unlock_delalloc(struct inode *inode, u64 start, u64 end,
1835 1835
1836 clear_extent_bit(tree, start, end, clear_bits, 1, 0, NULL, GFP_NOFS); 1836 clear_extent_bit(tree, start, end, clear_bits, 1, 0, NULL, GFP_NOFS);
1837 if (page_ops == 0) 1837 if (page_ops == 0)
1838 return 0; 1838 return;
1839 1839
1840 if ((page_ops & PAGE_SET_ERROR) && nr_pages > 0) 1840 if ((page_ops & PAGE_SET_ERROR) && nr_pages > 0)
1841 mapping_set_error(inode->i_mapping, -EIO); 1841 mapping_set_error(inode->i_mapping, -EIO);
@@ -1869,7 +1869,6 @@ int extent_clear_unlock_delalloc(struct inode *inode, u64 start, u64 end,
1869 index += ret; 1869 index += ret;
1870 cond_resched(); 1870 cond_resched();
1871 } 1871 }
1872 return 0;
1873} 1872}
1874 1873
1875/* 1874/*
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index ad1d28c1cfd4..2d57166e20d0 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -340,7 +340,7 @@ int map_private_extent_buffer(struct extent_buffer *eb, unsigned long offset,
340 unsigned long *map_len); 340 unsigned long *map_len);
341int extent_range_clear_dirty_for_io(struct inode *inode, u64 start, u64 end); 341int extent_range_clear_dirty_for_io(struct inode *inode, u64 start, u64 end);
342int extent_range_redirty_for_io(struct inode *inode, u64 start, u64 end); 342int extent_range_redirty_for_io(struct inode *inode, u64 start, u64 end);
343int extent_clear_unlock_delalloc(struct inode *inode, u64 start, u64 end, 343void extent_clear_unlock_delalloc(struct inode *inode, u64 start, u64 end,
344 struct page *locked_page, 344 struct page *locked_page,
345 unsigned bits_to_clear, 345 unsigned bits_to_clear,
346 unsigned long page_ops); 346 unsigned long page_ops);