]> git.hungrycats.org Git - linux/commit
[sysfs] Don't add ->d_fsdata until dentrys are created.
authorPatrick Mochel <mochel@osdl.org>
Wed, 13 Aug 2003 08:10:21 +0000 (01:10 -0700)
committerPatrick Mochel <mochel@osdl.org>
Wed, 13 Aug 2003 08:10:21 +0000 (01:10 -0700)
commitbe017ae7cd54dc32ab5f5ccbf9f36e60b12a01fe
tree230d1bab305a1321723692c4ee3fb121fffb0715
parent848dc01080c46e2cf75b2a6d5a7181950141ab93
[sysfs] Don't add ->d_fsdata until dentrys are created.

- For both files and directories, we were leaving ->d_fsdata set even when
  file and directory creation failed. This patch sets the field only after
  we've successfully created the dentry.
fs/sysfs/dir.c
fs/sysfs/file.c