projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f60b1b4
)
Btrfs: remove repeated eb->pages check in, disk-io.c/csum_dirty_buffer
author
Wang Sheng-Hui
<shhuiw@gmail.com>
Mon, 8 Oct 2012 13:26:15 +0000
(07:26 -0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:37:30 +0000
(09:37 -0400)
In csum_dirty_buffer, we first get eb from page->private.
Then we check if the page is the first page of eb. Later
we check it again. Remove the repeated check here.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
fs/btrfs/disk-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index 83552368770796471f21f5af7218813139d3c9e2..7cda51995c1e589eaf36fe048518bbbe0bd21109 100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-433,10
+433,6
@@
static int csum_dirty_buffer(struct btrfs_root *root, struct page *page)
WARN_ON(1);
return 0;
}
- if (eb->pages[0] != page) {
- WARN_ON(1);
- return 0;
- }
if (!PageUptodate(page)) {
WARN_ON(1);
return 0;