]> git.hungrycats.org Git - linux/commit
sysfs: fix up directory removal, once and for all.
authorPatrick Mochel <mochel@osdl.org>
Thu, 6 Mar 2003 14:19:40 +0000 (08:19 -0600)
committerPatrick Mochel <mochel@osdl.org>
Thu, 6 Mar 2003 14:19:40 +0000 (08:19 -0600)
commit1cdccc699de552d72a02d21dd28214d2de7ac693
treec71fd1112cfb203ebfdd00a3c417e2d962559312
parent1d4a155415cc4c19c2b8f2906cd1604faa14fe34
sysfs: fix up directory removal, once and for all.

This patch was previously integrated, but dropped erroneously by a bk
merge.

This fixes file cleanup during a sysfs directory removal by deleting files
from ->d_subdirs as they're iterated over, then checking if we can get a
reference on them.
fs/sysfs/dir.c