proc: Fix unbalanced hard link numbers
proc_create_mount_point() forgot to increase the parent's nlink, and it resulted in unbalanced hard link numbers, e.g. /proc/fs shows one less than expected. Fixes: eb6d38d5 ("proc: Allow creating permanently empty directories...") Cc: stable@vger.kernel.org Reported-by: NTristan Ye <tristan.ye@suse.com> Signed-off-by: NTakashi Iwai <tiwai@suse.de> Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
Showing
想要评论请 注册 或 登录