Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1172474

[PATCH 1/6] cgroup: make cftype->private a unsigned long

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 1/6] cgroup: make cftype->private a unsigned long
Date 2015-06-25 23:40 +0200
Message-ID <pFn2k-42w-59@gated-at.bofh.it> (permalink)
References <pFn2i-42w-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


It's pretty unusual to have an int as a private data field and it
makes it impossible to carray a pointer value through it.  Let's make
it an unsigned long.  AFAICS, this shouldn't break anything.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Li Zefan <lizefan@huawei.com>
---
 include/linux/cgroup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index e7da0aa..5571f9f 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -417,7 +417,7 @@ struct cftype {
 	 * end of cftype array.
 	 */
 	char name[MAX_CFTYPE_NAME];
-	int private;
+	unsigned long private;
 	/*
 	 * If not 0, file mode is set to this value, otherwise it will
 	 * be figured out automatically
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCHSET block/for-4.2/writeback] blkcg: blkcg stats cleanup Tejun Heo <tj@kernel.org> - 2015-06-25 23:40 +0200
  [PATCH 2/6] blkcg: add blkg_[rw]stat->aux_cnt and replace cfq_group->dead_stats with it Tejun Heo <tj@kernel.org> - 2015-06-25 23:40 +0200
  [PATCH 1/6] cgroup: make cftype->private a unsigned long Tejun Heo <tj@kernel.org> - 2015-06-25 23:40 +0200
  [PATCH 5/6] blkcg: move io_service_bytes and io_serviced stats into blkcg_gq Tejun Heo <tj@kernel.org> - 2015-06-25 23:50 +0200
  [PATCH 4/6] blkcg: make blkg_[rw]stat_recursive_sum() to be able to index into blkcg_gq Tejun Heo <tj@kernel.org> - 2015-06-25 23:50 +0200
  [PATCH 3/6] blkcg: make blkcg_[rw]stat per-cpu Tejun Heo <tj@kernel.org> - 2015-06-25 23:50 +0200

csiph-web