Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
14a3357b
Commit
14a3357b
authored
Feb 14, 2017
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: constify buffers used by compression helpers
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
9ed57367
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
fs/btrfs/compression.c
fs/btrfs/compression.c
+1
-1
fs/btrfs/compression.h
fs/btrfs/compression.h
+1
-1
fs/btrfs/lzo.c
fs/btrfs/lzo.c
+1
-1
No files found.
fs/btrfs/compression.c
View file @
14a3357b
...
...
@@ -1015,7 +1015,7 @@ void btrfs_exit_compress(void)
*
* total_out is the last byte of the buffer
*/
int
btrfs_decompress_buf2page
(
char
*
buf
,
unsigned
long
buf_start
,
int
btrfs_decompress_buf2page
(
c
onst
c
har
*
buf
,
unsigned
long
buf_start
,
unsigned
long
total_out
,
u64
disk_start
,
struct
bio
*
bio
)
{
...
...
fs/btrfs/compression.h
View file @
14a3357b
...
...
@@ -32,7 +32,7 @@ int btrfs_compress_pages(int type, struct address_space *mapping,
unsigned
long
max_out
);
int
btrfs_decompress
(
int
type
,
unsigned
char
*
data_in
,
struct
page
*
dest_page
,
unsigned
long
start_byte
,
size_t
srclen
,
size_t
destlen
);
int
btrfs_decompress_buf2page
(
char
*
buf
,
unsigned
long
buf_start
,
int
btrfs_decompress_buf2page
(
c
onst
c
har
*
buf
,
unsigned
long
buf_start
,
unsigned
long
total_out
,
u64
disk_start
,
struct
bio
*
bio
);
...
...
fs/btrfs/lzo.c
View file @
14a3357b
...
...
@@ -76,7 +76,7 @@ static inline void write_compress_length(char *buf, size_t len)
memcpy
(
buf
,
&
dlen
,
LZO_LEN
);
}
static
inline
size_t
read_compress_length
(
char
*
buf
)
static
inline
size_t
read_compress_length
(
c
onst
c
har
*
buf
)
{
__le32
dlen
;
...
...
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