trivial patch to dm-io.c
PATCH 1/1 trivial patch to dm-io.c
Here's trivial patches to dm-io.c. Just adds static declarations, and adds dm_io_sync_bvec() to the list of EXPORT_SYMBOL functions.
drivers/md/dm-io.c +12 -11
@@ -369,7 +369,7 @@/* * Functions for getting the pages from a list. */ -void list_get_page (struct dpages *dp, +static void list_get_page (struct dpages *dp,struct page **p,unsigned long *len,unsigned *offset) {unsigned o = dp->context_u;
@@ -380,14 +380,14 @@ *offset = o; } -void list_next_page (struct dpages *dp) +static void list_next_page (struct dpages *dp) {struct page_list *pl = (struct page_list *) dp->context_ptr; dp->context_ptr = pl->next; dp->context_u =0 ; } -void list_dp_init (struct dpages *dp,struct page_list *pl,unsigned offset) +static void list_dp_init (struct dpages *dp,struct page_list *pl,unsigned offset) { dp->get_page = list_get_page; dp->next_page = list_next_page;
@@ -398,7 +398,7 @@/* * Functions for getting the pages from a bvec. */ -void bvec_get_page (struct dpages *dp, +static void bvec_get_page (struct dpages *dp,struct page **p,unsigned long *len,unsigned *offset) {struct bio_vec *bvec = (struct bio_vec *) dp->context_ptr;
@@ -407,20 +407,20 @@ *offset = bvec->bv_offset; } -void bvec_next_page (struct dpages *dp) +static void bvec_next_page (struct dpages *dp) {struct bio_vec *bvec = (struct bio_vec *) dp->context_ptr; dp->context_ptr = bvec +1 ; } -void bvec_dp_init (struct dpages *dp,struct bio_vec *bvec) +static void bvec_dp_init (struct dpages *dp,struct bio_vec *bvec) { dp->get_page = bvec_get_page; dp->next_page = bvec_next_page; dp->context_ptr = bvec; } -void vm_get_page (struct dpages *dp, +static void vm_get_page (struct dpages *dp,struct page **p,unsigned long *len,unsigned *offset) { *p =vmalloc_to_page (dp->context_ptr);
@@ -428,13 +428,13 @@ *len =PAGE_SIZE - dp->context_u; } -void vm_next_page (struct dpages *dp) +static void vm_next_page (struct dpages *dp) { dp->context_ptr +=PAGE_SIZE - dp->context_u; dp->context_u =0 ; } -void vm_dp_init (struct dpages *dp,void *data) +static void vm_dp_init (struct dpages *dp,void *data) { dp->get_page = vm_get_page; dp->next_page = vm_next_page;
@@ -516,7 +516,7 @@dec_count (io,0 ,0 ); } -int sync_io (unsigned int num_regions,struct io_region *where, +static int sync_io (unsigned int num_regions,struct io_region *where,int rw,struct dpages *dp,unsigned long *error_bits) {struct io io;
@@ -546,7 +546,7 @@return io.error ? -EIO :0 ; } -int async_io (unsigned int num_regions,struct io_region *where,int rw, +static int async_io (unsigned int num_regions,struct io_region *where,int rw,struct dpages *dp,io_notify_fn fn,void *context) {struct io *io =mempool_alloc (_io_pool,GFP_NOIO );
@@ -615,6 +615,7 @@EXPORT_SYMBOL (dm_io_put);EXPORT_SYMBOL (dm_io_sync);EXPORT_SYMBOL (dm_io_async); +EXPORT_SYMBOL (dm_io_sync_bvec);EXPORT_SYMBOL (dm_io_async_bvec);EXPORT_SYMBOL (dm_io_sync_vm);EXPORT_SYMBOL (dm_io_async_vm);
Quoted 3 lines · Dave Olien
Here's trivial patches to
dm-io.c. Just adds static declarations, and addsdm_io_sync_bvec()to the list ofEXPORT_SYMBOLfunctions.
Speaking of trivia...
Could you please avoid using content-free subjects such as "trivial patch to dm-io.c"? We know that it's a patch, and we can see what files it touches.
Something like "dm-io.c: add static decls, export dm_io_sync_bvec()" would be a more useful patch description.
It's better than "Updated CPU hotplug patches for IA64 [Patch 3/7]" though.
Probably a third of the patches I receive have useless summaries and I
have to cook up meaningful ones for them. Which is not a competely bad thing but it is, on balance, best that the originator prepare the summary.
Make my life a little easier ;) Thanks.