@@ -41,16 +41,16 @@ struct loop_device {
char lo_encrypt_key[LO_KEY_SIZE];
int lo_encrypt_key_size;
struct loop_func_table *lo_encryption;
- __u32 lo_init[2];
+ __u32 lo_init[2];
kuid_t lo_key_owner; /* Who set the key */
- int (*ioctl)(struct loop_device *, int cmd,
+ int (*ioctl)(struct loop_device *bdev, int cmd,
unsigned long arg);
- struct file * lo_backing_file;
- struct block_device *lo_device;
- void *key_data;
+ struct file *lo_backing_file;
+ struct block_device *lo_device;
+ void *key_data;
- gfp_t old_gfp_mask;
+ gfp_t old_gfp_mask;
spinlock_t lo_lock;
int lo_state;
@@ -66,13 +66,13 @@ struct loop_device {
};
struct loop_cmd {
- struct kthread_work work;
- bool use_aio; /* use AIO interface to handle I/O */
- atomic_t ref; /* only for aio */
- long ret;
- struct kiocb iocb;
- struct bio_vec *bvec;
- struct cgroup_subsys_state *css;
+ struct kthread_work work;
+ bool use_aio; /* use asynchronous I/O */
+ atomic_t ref; /* only for aio */
+ long ret;
+ struct kiocb iocb;
+ struct bio_vec *bvec;
+ struct cgroup_subsys_state *css;
};
/* Support for loadable transfer modules */
Use uniform alignment and tab spaceing for the struct members. Also, add bdev identifire name for function pointer to turnoff checkpatch warning. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> --- drivers/block/loop.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)