[PATCH 08/11] sysfs: use check_submounts_and_drop()

2013-09-05 Thread Miklos Szeredi
From: Miklos Szeredi Do have_submounts(), shrink_dcache_parent() and d_drop() atomically. check_submounts_and_drop() can deal with negative dentries and non-directories as well. Non-directories can also be mounted on. And just like directories we don't want these to disappear with

[PATCH 08/11] sysfs: use check_submounts_and_drop()

2013-09-05 Thread Miklos Szeredi
From: Miklos Szeredi mszer...@suse.cz Do have_submounts(), shrink_dcache_parent() and d_drop() atomically. check_submounts_and_drop() can deal with negative dentries and non-directories as well. Non-directories can also be mounted on. And just like directories we don't want these to disappear