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
nexedi
linux
Commits
72ad8131
Commit
72ad8131
authored
May 17, 2019
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: constify map parameter for nr_parity_stripes and nr_data_stripes
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
158da513
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/btrfs/raid56.h
fs/btrfs/raid56.h
+2
-2
No files found.
fs/btrfs/raid56.h
View file @
72ad8131
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#ifndef BTRFS_RAID56_H
#ifndef BTRFS_RAID56_H
#define BTRFS_RAID56_H
#define BTRFS_RAID56_H
static
inline
int
nr_parity_stripes
(
struct
map_lookup
*
map
)
static
inline
int
nr_parity_stripes
(
const
struct
map_lookup
*
map
)
{
{
if
(
map
->
type
&
BTRFS_BLOCK_GROUP_RAID5
)
if
(
map
->
type
&
BTRFS_BLOCK_GROUP_RAID5
)
return
1
;
return
1
;
...
@@ -17,7 +17,7 @@ static inline int nr_parity_stripes(struct map_lookup *map)
...
@@ -17,7 +17,7 @@ static inline int nr_parity_stripes(struct map_lookup *map)
return
0
;
return
0
;
}
}
static
inline
int
nr_data_stripes
(
struct
map_lookup
*
map
)
static
inline
int
nr_data_stripes
(
const
struct
map_lookup
*
map
)
{
{
return
map
->
num_stripes
-
nr_parity_stripes
(
map
);
return
map
->
num_stripes
-
nr_parity_stripes
(
map
);
}
}
...
...
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