aboutsummaryrefslogtreecommitdiff
path: root/fs/afs/mntpt.c
diff options
context:
space:
mode:
authorMathieu Desnoyers <compudj@krystal.dyndns.org>2006-11-24 13:50:09 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-13 15:38:45 -0800
commit65c333367b1aea57d58168ad3dc1df27b0227401 (patch)
treea90a34d43c815d99de4d40eac372fb98d4dbffd7 /fs/afs/mntpt.c
parent63223a0654c2a473ae64835819b87826cb7415ee (diff)
DebugFS : more file/directory creation error handling
Correct dentry count to handle creation errors. This patch puts a dput at the file creation instead of the file removal : lookup_one_len already returns a dentry with reference count of 1. Then, the dget() in simple_mknod increments it when the dentry is associated with a file. In a scenario where simple_create or simple_mkdir returns an error, this would lead to an unwanted increment of the reference counter, therefore making file removal impossible. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/afs/mntpt.c')
0 files changed, 0 insertions, 0 deletions