From 9bc03e27280bd7661afcd738e9b604a2e29ece61 Mon Sep 17 00:00:00 2001 From: Krzysztof Mazur Date: Wed, 8 Jun 2011 06:53:33 +0200 Subject: [PATCH 42/84] lsbd: whitespace cleanup --- drivers/block/lsbd.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/block/lsbd.c b/drivers/block/lsbd.c index 55e4b59..d5346d2 100644 --- a/drivers/block/lsbd.c +++ b/drivers/block/lsbd.c @@ -986,7 +986,7 @@ static void lsbd_stop(struct lsbd *p) blkdev_put(p->bdev, BDEV_RAW); bdput(p->bdev); } - + /** * lsbd_start - start LDBD device * @p: LSBD device to start @@ -1025,7 +1025,7 @@ static int lsbd_mount(struct lsbd *p) blksize = blksize_size[MAJOR(p->dev)][MINOR(p->dev)]; if (!blksize) blksize = 1024; - + p->read_errors = 0; p->uncorrectable = 0; p->write_errors = 0; @@ -1090,7 +1090,7 @@ static int lsbd_set_dev(struct lsbd *p, int major, int minor) bdev = bdget(kdev_t_to_nr(dev)); if (!bdev) return -ENOMEM; - + ret = blkdev_get(bdev, FMODE_READ | FMODE_WRITE, 0, BDEV_RAW); if (ret) { bdput(bdev); @@ -1284,7 +1284,7 @@ static int lsbd_ioctl(struct inode *inode, struct file *file, case LSBD_SET_DEV: { unsigned int major = arg >> 20; unsigned int minor = arg & 0xfffff; - + if (p->tsk != NULL) { lsbd_stop(p); MOD_DEC_USE_COUNT; @@ -1469,7 +1469,7 @@ static int lsbd_read_zero_sector(struct buffer_head *bh) * This function reads buffer from LSBD device. */ static int lsbd_make_read(struct lsbd *p, int rw, struct buffer_head *bh) -{ +{ unsigned int partition = lsbd_minor_to_partition(MINOR(bh->b_rdev)); unsigned int lsector = LSBD_SECT_INVALID; unsigned int sector; @@ -1673,7 +1673,7 @@ void lsbd_clean_block(struct lsbd *p) if (sector_id >= p->lsectors) continue; - + lsbd_debug(p, "block %ld.%ld: logical %d, phys %d, " "lcache %d\n", block, i, sector_id, s, @@ -2143,7 +2143,7 @@ static void *lsbd_seq_start(struct seq_file *seq, loff_t *pos) } } - if (!l--) + if (!l--) return (void *)2;/* tail */ return NULL; } @@ -2153,7 +2153,7 @@ static void *lsbd_seq_next(struct seq_file *seq, void *v, loff_t *pos) struct lsbd *tmp; struct lsbd *p = v; void *next; - + ++*pos; if (v == (void *)2) return NULL; @@ -2168,7 +2168,7 @@ static void *lsbd_seq_next(struct seq_file *seq, void *v, loff_t *pos) else { next = (void *)2; *pos = 0x10000; - } + } return next; } @@ -2203,17 +2203,17 @@ static int lsbd_seq_show(struct seq_file *seq, void *v) seq_printf(seq, " status: %s ( %ld %ld %ld )\n", lsbd_status(p), p->read_errors, p->uncorrectable, p->write_errors); - + seq_printf(seq, "\n"); return 0; } static struct seq_operations lsbd_seq_ops = { - .start = lsbd_seq_start, - .next = lsbd_seq_next, - .stop = lsbd_seq_stop, - .show = lsbd_seq_show, + .start = lsbd_seq_start, + .next = lsbd_seq_next, + .stop = lsbd_seq_stop, + .show = lsbd_seq_show, }; static int lsbd_seq_open(struct inode *inode, struct file *file) @@ -2225,9 +2225,9 @@ static int lsbd_seq_open(struct inode *inode, struct file *file) } static struct file_operations lsbd_seq_fops = { - .open = lsbd_seq_open, - .read = seq_read, - .llseek = seq_lseek, + .open = lsbd_seq_open, + .read = seq_read, + .llseek = seq_lseek, .release = seq_release, }; -- 1.8.4.652.g0d6e0ce