diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:22:25 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:57 -0400 |
commit | ff79f8190b6e955ff7a71faf804a3017d526e657 (patch) | |
tree | d3f56ae2822eb312eba760dcf4df1a058de5a699 /fs/btrfs/extent_map.c | |
parent | cf786e79e3f96f4bc037c69e1a7afb5fb85c6111 (diff) |
Btrfs: Add back file data checksumming
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 2a8bc4bd43a9..e87e476dca92 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -2031,6 +2031,7 @@ struct extent_buffer *alloc_extent_buffer(struct extent_map_tree *tree, | |||
2031 | i = 1; | 2031 | i = 1; |
2032 | index++; | 2032 | index++; |
2033 | page_cache_get(page0); | 2033 | page_cache_get(page0); |
2034 | mark_page_accessed(page0); | ||
2034 | set_page_extent_mapped(page0); | 2035 | set_page_extent_mapped(page0); |
2035 | set_page_private(page0, EXTENT_PAGE_PRIVATE_FIRST_PAGE | | 2036 | set_page_private(page0, EXTENT_PAGE_PRIVATE_FIRST_PAGE | |
2036 | len << 2); | 2037 | len << 2); |
@@ -2049,6 +2050,7 @@ struct extent_buffer *alloc_extent_buffer(struct extent_map_tree *tree, | |||
2049 | goto fail; | 2050 | goto fail; |
2050 | } | 2051 | } |
2051 | set_page_extent_mapped(p); | 2052 | set_page_extent_mapped(p); |
2053 | mark_page_accessed(p); | ||
2052 | if (i == 0) { | 2054 | if (i == 0) { |
2053 | eb->first_page = p; | 2055 | eb->first_page = p; |
2054 | set_page_private(p, EXTENT_PAGE_PRIVATE_FIRST_PAGE | | 2056 | set_page_private(p, EXTENT_PAGE_PRIVATE_FIRST_PAGE | |
@@ -2099,6 +2101,7 @@ struct extent_buffer *find_extent_buffer(struct extent_map_tree *tree, | |||
2099 | goto fail; | 2101 | goto fail; |
2100 | } | 2102 | } |
2101 | set_page_extent_mapped(p); | 2103 | set_page_extent_mapped(p); |
2104 | mark_page_accessed(p); | ||
2102 | 2105 | ||
2103 | if (i == 0) { | 2106 | if (i == 0) { |
2104 | eb->first_page = p; | 2107 | eb->first_page = p; |