diff options
author | Tejun Heo <tj@kernel.org> | 2014-02-07 19:32:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-08 01:08:57 +0100 |
commit | fa4cd451cceb77e97432b91fcf50a7e4a7361e29 (patch) | |
tree | 5e5740ea38ebe390cc4f054e9fd5426003dcf46c /lib/decompress_unlz4.c | |
parent | kernfs: implement kernfs_get_parent(), kernfs_name/path() and friends (diff) | |
download | linux-fa4cd451cceb77e97432b91fcf50a7e4a7361e29.tar.xz linux-fa4cd451cceb77e97432b91fcf50a7e4a7361e29.zip |
sysfs, kobject: add sysfs wrapper for kernfs_enable_ns()
Currently, kobject is invoking kernfs_enable_ns() directly. This is
fine now as sysfs and kernfs are enabled and disabled together. If
sysfs is disabled, kernfs_enable_ns() is switched to dummy
implementation too and everything is fine; however, kernfs will soon
have its own config option CONFIG_KERNFS and !SYSFS && KERNFS will be
possible, which can make kobject call into non-dummy
kernfs_enable_ns() with NULL kernfs_node pointers leading to an oops.
Introduce sysfs_enable_ns() which is a wrapper around
kernfs_enable_ns() so that it can be made a noop depending only on
CONFIG_SYSFS regardless of the planned CONFIG_KERNFS.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/decompress_unlz4.c')
0 files changed, 0 insertions, 0 deletions