From: Eric W. Biederman Date: Sat, 9 May 2015 20:54:49 +0000 (-0500) Subject: fs: Add helper functions for permanently empty directories. X-Git-Tag: omap-for-v4.2/fixes-rc1^2~19^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbabfd0f4ee2e8847bf56edf481249ad1bb8c44d;p=pandora-kernel.git fs: Add helper functions for permanently empty directories. To ensure it is safe to mount proc and sysfs I need to check if filesystems that are mounted on top of them are mounted on truly empty directories. Given that some directories can gain entries over time, knowing that a directory is empty right now is insufficient. Therefore add supporting infrastructure for permantently empty directories that proc and sysfs can use when they create mount points for filesystems and fs_fully_visible can use to test for permanently empty directories to ensure that nothing will be gained by mounting a fresh copy of proc or sysfs. Cc: stable@vger.kernel.org Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed