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
eb20978f
Commit
eb20978f
authored
Feb 21, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Use KM_USERN instead of KM_IRQ during data summing
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
55d47414
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fs/btrfs/file-item.c
fs/btrfs/file-item.c
+5
-5
No files found.
fs/btrfs/file-item.c
View file @
eb20978f
...
@@ -278,11 +278,11 @@ found:
...
@@ -278,11 +278,11 @@ found:
btrfs_item_size_nr
(
leaf
,
path
->
slots
[
0
]));
btrfs_item_size_nr
(
leaf
,
path
->
slots
[
0
]));
eb_token
=
NULL
;
eb_token
=
NULL
;
next_bvec:
next_bvec:
data
=
kmap_atomic
(
bvec
->
bv_page
,
KM_
IRQ
0
);
data
=
kmap_atomic
(
bvec
->
bv_page
,
KM_
USER
0
);
csum_result
=
~
(
u32
)
0
;
csum_result
=
~
(
u32
)
0
;
csum_result
=
btrfs_csum_data
(
root
,
data
+
bvec
->
bv_offset
,
csum_result
=
btrfs_csum_data
(
root
,
data
+
bvec
->
bv_offset
,
csum_result
,
bvec
->
bv_len
);
csum_result
,
bvec
->
bv_len
);
kunmap_atomic
(
data
,
KM_
IRQ
0
);
kunmap_atomic
(
data
,
KM_
USER
0
);
btrfs_csum_final
(
csum_result
,
(
char
*
)
&
csum_result
);
btrfs_csum_final
(
csum_result
,
(
char
*
)
&
csum_result
);
if
(
csum_result
==
0
)
{
if
(
csum_result
==
0
)
{
printk
(
"csum result is 0 for inode %lu offset %Lu
\n
"
,
inode
->
i_ino
,
offset
);
printk
(
"csum result is 0 for inode %lu offset %Lu
\n
"
,
inode
->
i_ino
,
offset
);
...
@@ -293,12 +293,12 @@ next_bvec:
...
@@ -293,12 +293,12 @@ next_bvec:
int
err
;
int
err
;
if
(
eb_token
)
if
(
eb_token
)
unmap_extent_buffer
(
leaf
,
eb_token
,
KM_
IRQ
1
);
unmap_extent_buffer
(
leaf
,
eb_token
,
KM_
USER
1
);
eb_token
=
NULL
;
eb_token
=
NULL
;
err
=
map_private_extent_buffer
(
leaf
,
(
unsigned
long
)
item
,
err
=
map_private_extent_buffer
(
leaf
,
(
unsigned
long
)
item
,
BTRFS_CRC32_SIZE
,
BTRFS_CRC32_SIZE
,
&
eb_token
,
&
eb_map
,
&
eb_token
,
&
eb_map
,
&
map_start
,
&
map_len
,
KM_
IRQ
1
);
&
map_start
,
&
map_len
,
KM_
USER
1
);
if
(
err
)
if
(
err
)
eb_token
=
NULL
;
eb_token
=
NULL
;
}
}
...
@@ -321,7 +321,7 @@ next_bvec:
...
@@ -321,7 +321,7 @@ next_bvec:
}
}
}
}
if
(
eb_token
)
{
if
(
eb_token
)
{
unmap_extent_buffer
(
leaf
,
eb_token
,
KM_
IRQ
1
);
unmap_extent_buffer
(
leaf
,
eb_token
,
KM_
USER
1
);
eb_token
=
NULL
;
eb_token
=
NULL
;
}
}
btrfs_mark_buffer_dirty
(
path
->
nodes
[
0
]);
btrfs_mark_buffer_dirty
(
path
->
nodes
[
0
]);
...
...
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