Unverified Commit 8f4bbe65 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2791 [sync] PR-1122: ext4: delete redundant uptodate check for buffer

parents 50b22902 915f9310
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1067,7 +1067,6 @@ static int ext4_block_write_begin(struct page *page, loff_t pos, unsigned len,
		block_end = block_start + blocksize;
		if (block_end <= from || block_start >= to) {
			if (PageUptodate(page)) {
				if (!buffer_uptodate(bh))
				set_buffer_uptodate(bh);
			}
			continue;
@@ -1093,7 +1092,6 @@ static int ext4_block_write_begin(struct page *page, loff_t pos, unsigned len,
			}
		}
		if (PageUptodate(page)) {
			if (!buffer_uptodate(bh))
			set_buffer_uptodate(bh);
			continue;
		}