summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba2015-12-03 13:08:59 +0100
committerDavid Sterba2015-12-07 15:06:45 +0100
commitf6311572762a9ccaa533e60bf7929d63be914bde (patch)
treebbc88173e4d0175094ab983b033584d6657f8065 /fs/btrfs/extent_io.c
parentbtrfs: make extent_range_clear_dirty_for_io return void (diff)
downloadkernel-qcow2-linux-f6311572762a9ccaa533e60bf7929d63be914bde.tar.gz
kernel-qcow2-linux-f6311572762a9ccaa533e60bf7929d63be914bde.tar.xz
kernel-qcow2-linux-f6311572762a9ccaa533e60bf7929d63be914bde.zip
btrfs: make extent_range_redirty_for_io return void
Does not return any errors, nor anything from the callgraph. There's a BUG_ON but it's a sanity check and not an error condition we could recover from. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index e55a728408bb..f06800e48f97 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1466,7 +1466,7 @@ void extent_range_clear_dirty_for_io(struct inode *inode, u64 start, u64 end)
}
}
-int extent_range_redirty_for_io(struct inode *inode, u64 start, u64 end)
+void extent_range_redirty_for_io(struct inode *inode, u64 start, u64 end)
{
unsigned long index = start >> PAGE_CACHE_SHIFT;
unsigned long end_index = end >> PAGE_CACHE_SHIFT;
@@ -1480,7 +1480,6 @@ int extent_range_redirty_for_io(struct inode *inode, u64 start, u64 end)
page_cache_release(page);
index++;
}
- return 0;
}
/*