[Devel] [PATCH RH9 1/5] ms/cgroup: let a symlink too be created with a cftype file

Cyrill Gorcunov kgorkunov at virtuozzo.com
Wed Oct 6 13:31:05 MSK 2021


On 10/6/21 12:58, Kirill Tkhai wrote:
>
>> --- a/include/linux/cgroup-defs.h
>> +++ b/include/linux/cgroup-defs.h
>> @@ -125,6 +125,8 @@ enum {
>>   	 */
>>   	CFTYPE_VE_WRITABLE	= (1 << 15),
>>   
>> +	CFTYPE_SYMLINKED	= (1 << 6),	/* pointed to by symlink too */
> We already have:
>
>          CFTYPE_PRESSURE         = (1 << 6),     /* only if pressure feature is enabled */
>
Yup, happened to sneak in, thanks for catching! I updated the number but this offset might clash in future in a silence

way, I guess we need to investigate if we can use some other numbers for our purposes here. Anyway

for early testing I think number lifting will be fine.



More information about the Devel mailing list