diff options
author | Mathieu Desnoyers <compudj@krystal.dyndns.org> | 2006-11-24 13:51:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-13 15:38:45 -0800 |
commit | 29a7f3ada7fea5510504c5359c3f70d109aeb055 (patch) | |
tree | fde6accdce93eece0b513a0ad129dba870acb912 /fs/hpfs/file.c | |
parent | 65c333367b1aea57d58168ad3dc1df27b0227401 (diff) |
DebugFS : file/directory removal fix
Fix file and directory removal in debugfs. Add inotify support for file removal.
The following scenario :
create dir a
create dir a/b
cd a/b (some process goes in cwd a/b)
rmdir a/b
rmdir a
fails due to the fact that "a" appears to be non empty. It is because
the "b" dentry is not deleted from "a" and still in use. The same
problem happens if "b" is a file. d_delete is nice enough to know when
it needs to unhash and free the dentry if nothing else is using it or,
if someone is using it, to remove it from the hash queues and wait for
it to be deleted when it has no users.
The nice side-effect of this fix is that it calls the file removal
notification.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/hpfs/file.c')
0 files changed, 0 insertions, 0 deletions