* [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region
@ 2015-01-20 3:16 Nicholas Krause
2015-01-20 11:19 ` [dm-devel] " Alasdair G Kergon
0 siblings, 1 reply; 6+ messages in thread
From: Nicholas Krause @ 2015-01-20 3:16 UTC (permalink / raw)
To: agk; +Cc: linux-raid, dm-devel, linux-kernel, snitzer
Removes the no longer needed fix me comment questioning if we need to remove
the structure pointer,rh as defined as a structure of type dsm_region_hash
from the definition of the structure, dm_region. Furthermore this pointer is
needed in order for various functions to run and build successfully in the file,
dm-region-hash.c.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/md/dm-region-hash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm-region-hash.c b/drivers/md/dm-region-hash.c
index b929fd5..823d56f 100644
--- a/drivers/md/dm-region-hash.c
+++ b/drivers/md/dm-region-hash.c
@@ -99,7 +99,7 @@ struct dm_region_hash {
};
struct dm_region {
- struct dm_region_hash *rh; /* FIXME: can we get rid of this ? */
+ struct dm_region_hash *rh;
region_t key;
int state;
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [dm-devel] [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region
2015-01-20 3:16 [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region Nicholas Krause
@ 2015-01-20 11:19 ` Alasdair G Kergon
2015-01-20 11:36 ` nick
0 siblings, 1 reply; 6+ messages in thread
From: Alasdair G Kergon @ 2015-01-20 11:19 UTC (permalink / raw)
To: Nicholas Krause; +Cc: agk, linux-raid, dm-devel, linux-kernel, snitzer
On Mon, Jan 19, 2015 at 10:16:21PM -0500, Nicholas Krause wrote:
> Removes the no longer needed fix me comment questioning if we need to remove
> the structure pointer,rh as defined as a structure of type dsm_region_hash
> from the definition of the structure, dm_region. Furthermore this pointer is
> needed in order for various functions to run and build successfully in the file,
> dm-region-hash.c.
You've misunderstood the comment!
Is there a better alternative to having every dm_region struct store its own copy of
this pointer?
Alasdair
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region
2015-01-20 11:19 ` [dm-devel] " Alasdair G Kergon
@ 2015-01-20 11:36 ` nick
2015-01-20 11:40 ` [dm-devel] " Alasdair G Kergon
0 siblings, 1 reply; 6+ messages in thread
From: nick @ 2015-01-20 11:36 UTC (permalink / raw)
To: agk, linux-raid, dm-devel, linux-kernel, snitzer
Alasdair,
Unless we use a union or something similar there seems to be no easy
way without rewriting a lot of an already function driver file.
Cheers,
Nick
On 2015-01-20 06:19 AM, Alasdair G Kergon wrote:
> On Mon, Jan 19, 2015 at 10:16:21PM -0500, Nicholas Krause wrote:
>> Removes the no longer needed fix me comment questioning if we need to remove
>> the structure pointer,rh as defined as a structure of type dsm_region_hash
>> from the definition of the structure, dm_region. Furthermore this pointer is
>> needed in order for various functions to run and build successfully in the file,
>> dm-region-hash.c.
>
> You've misunderstood the comment!
> Is there a better alternative to having every dm_region struct store its own copy of
> this pointer?
>
> Alasdair
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-devel] [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region
2015-01-20 11:36 ` nick
@ 2015-01-20 11:40 ` Alasdair G Kergon
2015-01-20 13:17 ` Nick Krause
0 siblings, 1 reply; 6+ messages in thread
From: Alasdair G Kergon @ 2015-01-20 11:40 UTC (permalink / raw)
To: nick; +Cc: agk, linux-raid, dm-devel, linux-kernel, snitzer
On Tue, Jan 20, 2015 at 06:36:10AM -0500, nick wrote:
> Unless we use a union or something similar there seems to be no easy
> way without rewriting a lot of an already function driver file.
The comment does not restrict itself to 'easy ways'.
Alasdair
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region
2015-01-20 11:40 ` [dm-devel] " Alasdair G Kergon
@ 2015-01-20 13:17 ` Nick Krause
2015-01-26 20:09 ` Nick Krause
0 siblings, 1 reply; 6+ messages in thread
From: Nick Krause @ 2015-01-20 13:17 UTC (permalink / raw)
To: nick, agk, linux-raid, dm-devel, linux-kernel@vger.kernel.org,
snitzer
On Tue, Jan 20, 2015 at 6:40 AM, Alasdair G Kergon <agk@redhat.com> wrote:
> On Tue, Jan 20, 2015 at 06:36:10AM -0500, nick wrote:
>> Unless we use a union or something similar there seems to be no easy
>> way without rewriting a lot of an already function driver file.
>
> The comment does not restrict itself to 'easy ways'.
>
> Alasdair
>
>
Then I suggest that I look into this form. Sorry about wasting your time.
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region
2015-01-20 13:17 ` Nick Krause
@ 2015-01-26 20:09 ` Nick Krause
0 siblings, 0 replies; 6+ messages in thread
From: Nick Krause @ 2015-01-26 20:09 UTC (permalink / raw)
To: nick, agk, linux-raid, dm-devel, linux-kernel@vger.kernel.org,
snitzer
On Tue, Jan 20, 2015 at 8:17 AM, Nick Krause <xerofoify@gmail.com> wrote:
> On Tue, Jan 20, 2015 at 6:40 AM, Alasdair G Kergon <agk@redhat.com> wrote:
>> On Tue, Jan 20, 2015 at 06:36:10AM -0500, nick wrote:
>>> Unless we use a union or something similar there seems to be no easy
>>> way without rewriting a lot of an already function driver file.
>>
>> The comment does not restrict itself to 'easy ways'.
>>
>> Alasdair
>>
>>
> Then I suggest that I look into this form. Sorry about wasting your time.
> Nick
Alasdir,
After thinking about this for a while, there seems to no way unless we
rewrite this driver and most of the functions. This is due to lots of
callers on this pointer.
Further more due to this I assume either removing the FIXME or
investigating how much memory these pointers use under various
workloads.
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-01-26 20:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20 3:16 [PATCH RESEND] md:Remove no longer needed fix me comment in dm-region-hash.c for removing the structure pointer, *rh from the definiton of dm_region Nicholas Krause
2015-01-20 11:19 ` [dm-devel] " Alasdair G Kergon
2015-01-20 11:36 ` nick
2015-01-20 11:40 ` [dm-devel] " Alasdair G Kergon
2015-01-20 13:17 ` Nick Krause
2015-01-26 20:09 ` Nick Krause
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).