Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
btrfsprogs
0053-btrfs-progs-Do-not-free-dirty-extent-buffe...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0053-btrfs-progs-Do-not-free-dirty-extent-buffer.patch of Package btrfsprogs
From 15cda713b2351aa8dafb94ff1ab94559bf1254fd Mon Sep 17 00:00:00 2001 From: Naohiro Aota <naota@elisp.net> Date: Mon, 25 Aug 2014 14:09:07 +0900 Subject: [PATCH] btrfs-progs: Do not free dirty extent buffer free_some_buffer() should not free dirty extent buffers. They are left to be committed. Signed-off-by: Naohiro Aota <naota@elisp.net> Signed-off-by: David Sterba <dsterba@suse.cz> --- extent_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extent_io.c b/extent_io.c index a127e54302e8..1df377d8c504 100644 --- a/extent_io.c +++ b/extent_io.c @@ -552,7 +552,7 @@ static int free_some_buffers(struct extent_io_tree *tree) list_for_each_safe(node, next, &tree->lru) { eb = list_entry(node, struct extent_buffer, lru); - if (eb->refs == 1) { + if (eb->refs == 1 && !(eb->flags & EXTENT_DIRTY)) { free_extent_buffer(eb); if (tree->cache_size < cache_hard_max) break; -- 2.1.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor