projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf6045
)
ext4_journal: two changes below.
author
ngkaho1234
<ngkaho1234@gmail.com>
Thu, 21 Jan 2016 07:59:35 +0000
(07:59 +0000)
committer
ngkaho1234
<ngkaho1234@gmail.com>
Thu, 21 Jan 2016 13:02:17 +0000
(13:02 +0000)
- reset end_write(_arg) to NULL when buffer is invalidated.
- set lb_id to @lba when a direct call to ext4_bcache_find_get succeeds.
lwext4/ext4_bcache.c
patch
|
blob
|
history
diff --git
a/lwext4/ext4_bcache.c
b/lwext4/ext4_bcache.c
index 4a8d44adf13654130870724772c78ca65e65021c..1a1766ac4ab978339e5e9e95a9d3c14d4bc64e17 100644
(file)
--- a/
lwext4/ext4_bcache.c
+++ b/
lwext4/ext4_bcache.c
@@
-191,6
+191,8
@@
void ext4_bcache_invalidate_lba(struct ext4_bcache *bc,
if (ext4_bcache_test_flag(buf, BC_DIRTY))
ext4_bcache_remove_dirty_node(bc, buf);
+ buf->end_write = NULL;
+ buf->end_write_arg = NULL;
ext4_bcache_clear_dirty(buf);
}
}
@@
-214,6
+216,7
@@
ext4_bcache_find_get(struct ext4_bcache *bc, struct ext4_block *b,
ext4_bcache_inc_ref(buf);
+ b->lb_id = lba;
b->buf = buf;
b->data = buf->data;
}