From: Ulf Magnusson <ulfalizer@gmail.com> Date: Wed, 2 Sep 2015 12:34:52 +0000 (+0200) Subject: sysfs.txt: fix pre-kernfs sysfs_dirent reference X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=390b421c42c8b749661f018818f1d34f339fc3b2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sysfs.txt: fix pre-kernfs sysfs_dirent reference sysfs_dirent went away when kernfs was extracted from sysfs. The reference to the kobject now lives in a kernfs_node (in the 'priv' member). See commit 324a56e16e44 ("kernfs: s/sysfs_dirent/kernfs_node/ and rename its friends accordingly"). Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> --- diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt index 9494afb9476a..78170ed7bfde 100644 --- a/Documentation/filesystems/sysfs.txt +++ b/Documentation/filesystems/sysfs.txt @@ -40,7 +40,7 @@ ancestors of object hierarchies; i.e. the subsystems the objects belong to. Sysfs internally stores a pointer to the kobject that implements a -directory in the sysfs_dirent object associated with the directory. In +directory in the kernfs_node object associated with the directory. In the past this kobject pointer has been used by sysfs to do reference counting directly on the kobject whenever the file is opened or closed. With the current sysfs implementation the kobject reference count is diff --git a/Documentation/zh_CN/filesystems/sysfs.txt b/Documentation/zh_CN/filesystems/sysfs.txt index e230eaa33122..7d3b05edb8ce 100644 --- a/Documentation/zh_CN/filesystems/sysfs.txt +++ b/Documentation/zh_CN/filesystems/sysfs.txt @@ -61,7 +61,7 @@ Documentation/kobject.txt æ档以è·å¾æ´å¤å ³äº kobject æ¥å£ç å æ ¸ç对象å±æ¬¡å°ç¨æ·ç©ºé´ãsysfs ä¸ç顶å±ç®å½ä»£è¡¨çå æ ¸å¯¹è±¡å±æ¬¡ç å ±åç¥å ï¼ä¾å¦ï¼æäºå¯¹è±¡å±äºæ个åç³»ç»ã -Sysfs å¨ä¸å ¶ç®å½å ³èç sysfs_dirent 对象ä¸å é¨ä¿åä¸ä¸ªæåå®ç° +Sysfs å¨ä¸å ¶ç®å½å ³èç kernfs_node 对象ä¸å é¨ä¿åä¸ä¸ªæåå®ç° ç®å½ç kobject çæéã以åï¼è¿ä¸ª kobject æé被 sysfs ç´æ¥ç¨äº kobject æ件æå¼åå ³éçå¼ç¨è®¡æ°ãèç°å¨ç sysfs å®ç°ä¸ï¼kobject å¼ç¨è®¡æ°åªè½éè¿ sysfs_schedule_callback() å½æ°ç´æ¥ä¿®æ¹ã