[PATCH 06/10] kernfs: implement kernfs_ops->atomic_write_len

2014-02-03 Thread Tejun Heo
A write to a kernfs_node is buffered through a kernel buffer. Writes <= PAGE_SIZE are performed atomically, while larger ones are executed in PAGE_SIZE chunks. While this is enough for sysfs, cgroup which is scheduled to be converted to use kernfs needs a bit more control over it. This patch

[PATCH 06/10] kernfs: implement kernfs_ops-atomic_write_len

2014-02-03 Thread Tejun Heo
A write to a kernfs_node is buffered through a kernel buffer. Writes = PAGE_SIZE are performed atomically, while larger ones are executed in PAGE_SIZE chunks. While this is enough for sysfs, cgroup which is scheduled to be converted to use kernfs needs a bit more control over it. This patch