Commit b4e3ca1a authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] gfp_t: remaining bits of drivers/*

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9e24974d
...@@ -881,7 +881,7 @@ loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer, ...@@ -881,7 +881,7 @@ loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
static int loop_clr_fd(struct loop_device *lo, struct block_device *bdev) static int loop_clr_fd(struct loop_device *lo, struct block_device *bdev)
{ {
struct file *filp = lo->lo_backing_file; struct file *filp = lo->lo_backing_file;
int gfp = lo->old_gfp_mask; gfp_t gfp = lo->old_gfp_mask;
if (lo->lo_state != Lo_bound) if (lo->lo_state != Lo_bound)
return -ENXIO; return -ENXIO;
......
...@@ -348,7 +348,7 @@ static int rd_open(struct inode *inode, struct file *filp) ...@@ -348,7 +348,7 @@ static int rd_open(struct inode *inode, struct file *filp)
struct block_device *bdev = inode->i_bdev; struct block_device *bdev = inode->i_bdev;
struct address_space *mapping; struct address_space *mapping;
unsigned bsize; unsigned bsize;
int gfp_mask; gfp_t gfp_mask;
inode = igrab(bdev->bd_inode); inode = igrab(bdev->bd_inode);
rd_bdev[unit] = bdev; rd_bdev[unit] = bdev;
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
static inline unsigned char *alloc_buf(void) static inline unsigned char *alloc_buf(void)
{ {
unsigned int prio = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; gfp_t prio = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
if (PAGE_SIZE != N_TTY_BUF_SIZE) if (PAGE_SIZE != N_TTY_BUF_SIZE)
return kmalloc(N_TTY_BUF_SIZE, prio); return kmalloc(N_TTY_BUF_SIZE, prio);
......
...@@ -1630,7 +1630,7 @@ static void ether1394_complete_cb(void *__ptask) ...@@ -1630,7 +1630,7 @@ static void ether1394_complete_cb(void *__ptask)
/* Transmit a packet (called by kernel) */ /* Transmit a packet (called by kernel) */
static int ether1394_tx (struct sk_buff *skb, struct net_device *dev) static int ether1394_tx (struct sk_buff *skb, struct net_device *dev)
{ {
int kmflags = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; gfp_t kmflags = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
struct eth1394hdr *eth; struct eth1394hdr *eth;
struct eth1394_priv *priv = netdev_priv(dev); struct eth1394_priv *priv = netdev_priv(dev);
int proto; int proto;
......
...@@ -91,7 +91,7 @@ int bitmap_active(struct bitmap *bitmap) ...@@ -91,7 +91,7 @@ int bitmap_active(struct bitmap *bitmap)
#define WRITE_POOL_SIZE 256 #define WRITE_POOL_SIZE 256
/* mempool for queueing pending writes on the bitmap file */ /* mempool for queueing pending writes on the bitmap file */
static void *write_pool_alloc(unsigned int gfp_flags, void *data) static void *write_pool_alloc(gfp_t gfp_flags, void *data)
{ {
return kmalloc(sizeof(struct page_list), gfp_flags); return kmalloc(sizeof(struct page_list), gfp_flags);
} }
......
...@@ -331,7 +331,7 @@ crypt_alloc_buffer(struct crypt_config *cc, unsigned int size, ...@@ -331,7 +331,7 @@ crypt_alloc_buffer(struct crypt_config *cc, unsigned int size,
{ {
struct bio *bio; struct bio *bio;
unsigned int nr_iovecs = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; unsigned int nr_iovecs = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
int gfp_mask = GFP_NOIO | __GFP_HIGHMEM; gfp_t gfp_mask = GFP_NOIO | __GFP_HIGHMEM;
unsigned int i; unsigned int i;
/* /*
......
...@@ -16,7 +16,7 @@ MODULE_LICENSE("GPL"); ...@@ -16,7 +16,7 @@ MODULE_LICENSE("GPL");
fsm_instance * fsm_instance *
init_fsm(char *name, const char **state_names, const char **event_names, int nr_states, init_fsm(char *name, const char **state_names, const char **event_names, int nr_states,
int nr_events, const fsm_node *tmpl, int tmpl_len, int order) int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order)
{ {
int i; int i;
fsm_instance *this; fsm_instance *this;
......
...@@ -110,7 +110,7 @@ extern fsm_instance * ...@@ -110,7 +110,7 @@ extern fsm_instance *
init_fsm(char *name, const char **state_names, init_fsm(char *name, const char **state_names,
const char **event_names, const char **event_names,
int nr_states, int nr_events, const fsm_node *tmpl, int nr_states, int nr_events, const fsm_node *tmpl,
int tmpl_len, int order); int tmpl_len, gfp_t order);
/** /**
* Releases an FSM * Releases an FSM
......
...@@ -492,7 +492,7 @@ static inline int i2o_dma_map_sg(struct i2o_controller *c, ...@@ -492,7 +492,7 @@ static inline int i2o_dma_map_sg(struct i2o_controller *c,
* Returns 0 on success or -ENOMEM on failure. * Returns 0 on success or -ENOMEM on failure.
*/ */
static inline int i2o_dma_alloc(struct device *dev, struct i2o_dma *addr, static inline int i2o_dma_alloc(struct device *dev, struct i2o_dma *addr,
size_t len, unsigned int gfp_mask) size_t len, gfp_t gfp_mask)
{ {
struct pci_dev *pdev = to_pci_dev(dev); struct pci_dev *pdev = to_pci_dev(dev);
int dma_64 = 0; int dma_64 = 0;
...@@ -551,7 +551,7 @@ static inline void i2o_dma_free(struct device *dev, struct i2o_dma *addr) ...@@ -551,7 +551,7 @@ static inline void i2o_dma_free(struct device *dev, struct i2o_dma *addr)
* Returns the 0 on success or negative error code on failure. * Returns the 0 on success or negative error code on failure.
*/ */
static inline int i2o_dma_realloc(struct device *dev, struct i2o_dma *addr, static inline int i2o_dma_realloc(struct device *dev, struct i2o_dma *addr,
size_t len, unsigned int gfp_mask) size_t len, gfp_t gfp_mask)
{ {
i2o_dma_free(dev, addr); i2o_dma_free(dev, addr);
......
...@@ -52,7 +52,7 @@ struct loop_device { ...@@ -52,7 +52,7 @@ struct loop_device {
unsigned lo_blocksize; unsigned lo_blocksize;
void *key_data; void *key_data;
int old_gfp_mask; gfp_t old_gfp_mask;
spinlock_t lo_lock; spinlock_t lo_lock;
struct bio *lo_bio; struct bio *lo_bio;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment