loff_t lo_offset;
loff_t lo_sizelimit;
int lo_flags;
- int (*ioctl)(struct lloop_device *, int cmd,
- unsigned long arg);
+ int (*ioctl)(struct lloop_device *, int cmd,
+ unsigned long arg);
struct file * lo_backing_file;
struct block_device *lo_device;
oinfo.oi_md = lsm;
opc = cmd & OBD_BRW_WRITE ? CAPA_OPC_OSS_WRITE : CAPA_OPC_OSS_RW;
oinfo.oi_capa = ll_osscapa_get(inode, opc);
- ret = obd_brw(cmd, ll_i2dtexp(inode), &oinfo,
- (obd_count)(i - bio->bi_idx),
+ ret = obd_brw(cmd, ll_i2dtexp(inode), &oinfo,
+ (obd_count)(i - bio->bi_idx),
lo->lo_requests[0].lrd_pages, NULL);
capa_put(oinfo.oi_capa);
if (ret == 0)
return error;
}
-static int loop_clr_fd(struct lloop_device *lo, struct block_device *bdev,
+static int loop_clr_fd(struct lloop_device *lo, struct block_device *bdev,
int count)
{
struct file *filp = lo->lo_backing_file;
}
/* lloop device node's ioctl function. */
-static int lo_ioctl(struct inode *inode, struct file *unused,
+static int lo_ioctl(struct inode *inode, struct file *unused,
unsigned int cmd, unsigned long arg)
{
struct lloop_device *lo = inode->i_bdev->bd_disk->private_data;
if (put_user(ino, (__u64 *)arg))
err = -EFAULT;
- break;
+ break;
}
default:
.ioctl = lo_ioctl,
};
-/* dynamic iocontrol callback.
- * This callback is registered in lloop_init and will be called by
- * ll_iocontrol_call.
- * This is a llite regular file ioctl function. It takes the responsibility
- * of attaching a file, and detaching a file by a lloop's device numner.
+/* dynamic iocontrol callback.
+ * This callback is registered in lloop_init and will be called by
+ * ll_iocontrol_call.
+ * This is a llite regular file ioctl function. It takes the responsibility
+ * of attaching a file, and detaching a file by a lloop's device numner.
*/
-static enum llioc_iter lloop_ioctl(struct inode *unused, struct file *file,
+static enum llioc_iter lloop_ioctl(struct inode *unused, struct file *file,
unsigned int cmd, unsigned long arg,
void *magic, int *rcp)
{
lo_free = lo;
continue;
}
- if (lo->lo_backing_file->f_dentry->d_inode ==
+ if (lo->lo_backing_file->f_dentry->d_inode ==
file->f_dentry->d_inode)
break;
}
case LL_IOC_LLOOP_DETACH_BYDEV: {
int minor;
-
+
dev = old_decode_dev(arg);
if (MAJOR(dev) != lloop_major)
GOTO(out, err = -EINVAL);