Re: [PATCH RFC v2 1/4] cgroup: implement eventfd-based generic API for notifications

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> +/*
>> + * Check if a file is a control file
>> + */
>> +static inline struct cftype *__file_cft(struct file *file)
>> +{
>> +	if (file->f_dentry->d_inode->i_fop != &cgroup_file_operations)
>> +		return ERR_PTR(-EINVAL);
> 
> I don't think this check is needed.
> 

Sorry, please ignore this comment
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux