Skip to content

Commit

Permalink
btrfs: trivial endianness annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 30, 2012
1 parent 1db5df9 commit 528c032
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)
{
u64 *val;
__le64 *val;

io_ctl_map_page(io_ctl, 1);

Expand All @@ -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)
{
u64 *gen;
__le64 *gen;

/*
* Skip the crc area. If we don't check crcs then we just have a 64bit
Expand Down
4 changes: 2 additions & 2 deletions fs/btrfs/ulist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions fs/btrfs/ulist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 528c032

Please sign in to comment.