projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03581f
)
Btrfs: Fix off by one error in dirty_and_release_pages
author
Yan
<yanzheng@21cn.com>
Fri, 14 Sep 2007 14:23:29 +0000
(10:23 -0400)
committer
David Woodhouse
<dwmw2@hera.kernel.org>
Fri, 14 Sep 2007 14:23:29 +0000
(10:23 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/file.c
b/fs/btrfs/file.c
index ca7e5d4474e0f7f0c498e8038d10e9a9767af092..26826a543355e73ba081c9bd7302eaa2ae5a51d7 100644
(file)
--- a/
fs/btrfs/file.c
+++ b/
fs/btrfs/file.c
@@
-236,7
+236,7
@@
static int dirty_and_release_pages(struct btrfs_trans_handle *trans,
end_pos - start_pos, p, 0);
BUG_ON(err);
em->start = start_pos;
- em->end = end_pos;
+ em->end = end_pos
- 1
;
em->block_start = EXTENT_MAP_INLINE;
em->block_end = EXTENT_MAP_INLINE;
add_extent_mapping(em_tree, em);