Re: [PATCH v2 1/2] cpuacct: rename parameter in cpuusage_write for readability

2016-03-11 Thread Tejun Heo
On Fri, Mar 04, 2016 at 05:47:05PM +0800, Zhao Lei wrote: > From: Yang Dongsheng > > The name of 'reset' makes a little confusion in reading, we would > say, if we want to reset usage, return -EINVAL. That's not true. > > Actually, we want to say, we only allow user to do a reset. This > patch r

[PATCH v2 1/2] cpuacct: rename parameter in cpuusage_write for readability

2016-03-04 Thread Zhao Lei
From: Yang Dongsheng The name of 'reset' makes a little confusion in reading, we would say, if we want to reset usage, return -EINVAL. That's not true. Actually, we want to say, we only allow user to do a reset. This patch rename reset to val and add a comment here, making the code more readable