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
528c0327
Commit
528c0327
authored
Apr 13, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: trivial endianness annotations
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1db5df98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.c
+4
-3
fs/btrfs/ulist.c
fs/btrfs/ulist.c
+2
-2
fs/btrfs/ulist.h
fs/btrfs/ulist.h
+2
-2
No files found.
fs/btrfs/free-space-cache.c
View file @
528c0327
...
...
@@ -75,7 +75,8 @@ static struct inode *__lookup_free_space_inode(struct btrfs_root *root,
return
ERR_PTR
(
-
ENOENT
);
}
inode
->
i_mapping
->
flags
&=
~
__GFP_FS
;
mapping_set_gfp_mask
(
inode
->
i_mapping
,
mapping_gfp_mask
(
inode
->
i_mapping
)
&
~
__GFP_FS
);
return
inode
;
}
...
...
@@ -365,7 +366,7 @@ static int io_ctl_prepare_pages(struct io_ctl *io_ctl, struct inode *inode,
static
void
io_ctl_set_generation
(
struct
io_ctl
*
io_ctl
,
u64
generation
)
{
u
64
*
val
;
__le
64
*
val
;
io_ctl_map_page
(
io_ctl
,
1
);
...
...
@@ -388,7 +389,7 @@ static void io_ctl_set_generation(struct io_ctl *io_ctl, u64 generation)
static
int
io_ctl_check_generation
(
struct
io_ctl
*
io_ctl
,
u64
generation
)
{
u
64
*
gen
;
__le
64
*
gen
;
/*
* Skip the crc area. If we don't check crcs then we just have a 64bit
...
...
fs/btrfs/ulist.c
View file @
528c0327
...
...
@@ -95,7 +95,7 @@ EXPORT_SYMBOL(ulist_reinit);
*
* The allocated ulist will be returned in an initialized state.
*/
struct
ulist
*
ulist_alloc
(
unsigned
long
gfp_mask
)
struct
ulist
*
ulist_alloc
(
gfp_t
gfp_mask
)
{
struct
ulist
*
ulist
=
kmalloc
(
sizeof
(
*
ulist
),
gfp_mask
);
...
...
@@ -144,7 +144,7 @@ EXPORT_SYMBOL(ulist_free);
* unaltered.
*/
int
ulist_add
(
struct
ulist
*
ulist
,
u64
val
,
unsigned
long
aux
,
unsigned
long
gfp_mask
)
gfp_t
gfp_mask
)
{
int
i
;
...
...
fs/btrfs/ulist.h
View file @
528c0327
...
...
@@ -59,10 +59,10 @@ struct ulist {
void
ulist_init
(
struct
ulist
*
ulist
);
void
ulist_fini
(
struct
ulist
*
ulist
);
void
ulist_reinit
(
struct
ulist
*
ulist
);
struct
ulist
*
ulist_alloc
(
unsigned
long
gfp_mask
);
struct
ulist
*
ulist_alloc
(
gfp_t
gfp_mask
);
void
ulist_free
(
struct
ulist
*
ulist
);
int
ulist_add
(
struct
ulist
*
ulist
,
u64
val
,
unsigned
long
aux
,
unsigned
long
gfp_mask
);
gfp_t
gfp_mask
);
struct
ulist_node
*
ulist_next
(
struct
ulist
*
ulist
,
struct
ulist_node
*
prev
);
#endif
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