Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2e1a992e
Commit
2e1a992e
authored
Feb 20, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Make sure bio pages are adjacent during bulk csumming
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
6885f308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fs/btrfs/file-item.c
fs/btrfs/file-item.c
+4
-2
No files found.
fs/btrfs/file-item.c
View file @
2e1a992e
...
@@ -161,7 +161,6 @@ int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans,
...
@@ -161,7 +161,6 @@ int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans,
unsigned
long
map_len
;
unsigned
long
map_len
;
unsigned
long
map_start
;
unsigned
long
map_start
;
path
=
btrfs_alloc_path
();
path
=
btrfs_alloc_path
();
BUG_ON
(
!
path
);
BUG_ON
(
!
path
);
again:
again:
...
@@ -315,8 +314,11 @@ next_bvec:
...
@@ -315,8 +314,11 @@ next_bvec:
if
(
bio_index
<
bio
->
bi_vcnt
)
{
if
(
bio_index
<
bio
->
bi_vcnt
)
{
item
=
(
struct
btrfs_csum_item
*
)((
char
*
)
item
+
item
=
(
struct
btrfs_csum_item
*
)((
char
*
)
item
+
BTRFS_CRC32_SIZE
);
BTRFS_CRC32_SIZE
);
if
(
item
<
item_end
)
if
(
item
<
item_end
&&
offset
+
PAGE_CACHE_SIZE
==
page_offset
(
bvec
->
bv_page
))
{
offset
=
page_offset
(
bvec
->
bv_page
);
goto
next_bvec
;
goto
next_bvec
;
}
}
}
if
(
eb_token
)
{
if
(
eb_token
)
{
unmap_extent_buffer
(
leaf
,
eb_token
,
KM_IRQ1
);
unmap_extent_buffer
(
leaf
,
eb_token
,
KM_IRQ1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment