Re: [PATCH] btrfs: prefix sysfs attribute struct names

2017-10-10 Thread Hans van Kranenburg
On 10/09/2017 06:17 PM, David Sterba wrote: > On Sun, Oct 08, 2017 at 10:30:58PM +0200, Hans van Kranenburg wrote: >> Currently struct names for sysfs are generated only based on the >> attribute names. This means that attribute names cannot be reused in >> multiple places throughout the complete

Re: [PATCH] btrfs: prefix sysfs attribute struct names

2017-10-09 Thread David Sterba
On Sun, Oct 08, 2017 at 10:30:58PM +0200, Hans van Kranenburg wrote: > Currently struct names for sysfs are generated only based on the > attribute names. This means that attribute names cannot be reused in > multiple places throughout the complete btrfs sysfs hierarchy. > > E.g.

[PATCH] btrfs: prefix sysfs attribute struct names

2017-10-08 Thread Hans van Kranenburg
Currently struct names for sysfs are generated only based on the attribute names. This means that attribute names cannot be reused in multiple places throughout the complete btrfs sysfs hierarchy. E.g. allocation/data/total_bytes and allocation/data/single/total_bytes result in the same struct