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
033774dc
Commit
033774dc
authored
Mar 20, 2019
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: remove unused parameter fs_info from CHECK_FE_ALIGNED
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
179d1e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fs/btrfs/tree-checker.c
fs/btrfs/tree-checker.c
+6
-6
No files found.
fs/btrfs/tree-checker.c
View file @
033774dc
...
...
@@ -94,7 +94,7 @@ static void file_extent_err(const struct extent_buffer *eb, int slot,
* Return 0 if the btrfs_file_extent_##name is aligned to @alignment
* Else return 1
*/
#define CHECK_FE_ALIGNED(
fs_info, leaf, slot, fi, name, alignment)
\
#define CHECK_FE_ALIGNED(
leaf, slot, fi, name, alignment)
\
({ \
if (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))) \
file_extent_err((leaf), (slot), \
...
...
@@ -179,11 +179,11 @@ static int check_extent_data_item(struct extent_buffer *leaf,
item_size
,
sizeof
(
*
fi
));
return
-
EUCLEAN
;
}
if
(
CHECK_FE_ALIGNED
(
fs_info
,
leaf
,
slot
,
fi
,
ram_bytes
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
fs_info
,
leaf
,
slot
,
fi
,
disk_bytenr
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
fs_info
,
leaf
,
slot
,
fi
,
disk_num_bytes
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
fs_info
,
leaf
,
slot
,
fi
,
offset
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
fs_info
,
leaf
,
slot
,
fi
,
num_bytes
,
sectorsize
))
if
(
CHECK_FE_ALIGNED
(
leaf
,
slot
,
fi
,
ram_bytes
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
leaf
,
slot
,
fi
,
disk_bytenr
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
leaf
,
slot
,
fi
,
disk_num_bytes
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
leaf
,
slot
,
fi
,
offset
,
sectorsize
)
||
CHECK_FE_ALIGNED
(
leaf
,
slot
,
fi
,
num_bytes
,
sectorsize
))
return
-
EUCLEAN
;
return
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