Skip to content

Commit 38d6fd2

Browse files
Al ViroLinus Torvalds
authored andcommitted
[PATCH] dlm gfp_t annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 5c09d96 commit 38d6fd2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/dlm/lowcomms.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr)
174174
return 0;
175175
}
176176

177-
static struct nodeinfo *nodeid2nodeinfo(int nodeid, int alloc)
177+
static struct nodeinfo *nodeid2nodeinfo(int nodeid, gfp_t alloc)
178178
{
179179
struct nodeinfo *ni;
180180
int r;
@@ -726,7 +726,7 @@ static int init_sock(void)
726726
}
727727

728728

729-
static struct writequeue_entry *new_writequeue_entry(int allocation)
729+
static struct writequeue_entry *new_writequeue_entry(gfp_t allocation)
730730
{
731731
struct writequeue_entry *entry;
732732

@@ -748,7 +748,7 @@ static struct writequeue_entry *new_writequeue_entry(int allocation)
748748
return entry;
749749
}
750750

751-
void *dlm_lowcomms_get_buffer(int nodeid, int len, int allocation, char **ppc)
751+
void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
752752
{
753753
struct writequeue_entry *e;
754754
int offset = 0;

‎fs/dlm/lowcomms.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void dlm_lowcomms_exit(void);
1919
int dlm_lowcomms_start(void);
2020
void dlm_lowcomms_stop(void);
2121
int dlm_lowcomms_close(int nodeid);
22-
void *dlm_lowcomms_get_buffer(int nodeid, int len, int allocation, char **ppc);
22+
void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc);
2323
void dlm_lowcomms_commit_buffer(void *mh);
2424

2525
#endif /* __LOWCOMMS_DOT_H__ */

0 commit comments

Comments
 (0)