]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 3.10 compat: Do not rely on struct proc_dir_entry definition
authorRichard Yao <ryao@gentoo.org>
Wed, 3 Jul 2013 20:34:52 +0000 (16:34 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Jul 2013 22:25:18 +0000 (15:25 -0700)
commitf2a745c41df44c32149abb27b80e92cede772551
tree59b7c99f5e1685c82aabf93e01b55ab76183b477
parent79a7ab25812d2701230aaff62904570ef7dbecef
Linux 3.10 compat: Do not rely on struct proc_dir_entry definition

Linux kernel commit torvalds/linux#59d8053f moved the definition of
struct proc_dir_entry from include/linux/proc_fs.h to the private
header fs/proc/internal.h. The SPL relied on that to map Solaris'
kstat to entries in /proc/spl/kstat.

Since the proc_dir_entry structure is now private the only safe
thing to do is wrap the opaque proc handle with our own structure.
This actually ends up simplify the code and is good because it
moves us away from depending on implementation details of /proc.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #257
include/linux/proc_compat.h
include/sys/kstat.h
module/spl/spl-kstat.c
module/spl/spl-proc.c