projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa236c2
)
reiserfs: Remove unneed check in reiserfs_write_full_page()
author
YueHaibing
<yuehaibing@huawei.com>
Sun, 23 May 2021 09:02:58 +0000
(17:02 +0800)
committer
Jan Kara
<jack@suse.cz>
Mon, 24 May 2021 09:00:56 +0000
(11:00 +0200)
Condition !A || A && B is equivalent to !A || B.
Generated by: scripts/coccinelle/misc/excluded_middle.cocci
Link:
https://lore.kernel.org/r/20210523090258.27696-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/reiserfs/inode.c
b/fs/reiserfs/inode.c
index 780bb90c1804b4aa5a0c799452079836dab6deb0..f49b72ccac4c0624adf70d2aa44f485d03b00e5e 100644
(file)
--- a/
fs/reiserfs/inode.c
+++ b/
fs/reiserfs/inode.c
@@
-2584,9
+2584,7
@@
static int reiserfs_write_full_page(struct page *page,
clear_buffer_dirty(bh);
set_buffer_uptodate(bh);
} else if ((checked || buffer_dirty(bh)) &&
- (!buffer_mapped(bh) || (buffer_mapped(bh)
- && bh->b_blocknr ==
- 0))) {
+ (!buffer_mapped(bh) || bh->b_blocknr == 0)) {
/*
* not mapped yet, or it points to a direct item, search
* the btree for the mapping info, and log any direct