]> git.neil.brown.name Git - history.git/commit
device symlinks: just pass name, not struct driver_file_entry to driverfs_create_symlink
authorPatrick Mochel <mochel@osdl.org>
Tue, 30 Jul 2002 12:43:45 +0000 (05:43 -0700)
committerPatrick Mochel <mochel@osdl.org>
Tue, 30 Jul 2002 12:43:45 +0000 (05:43 -0700)
commita9ae3e34951d8f719190ce50c991b3ec815c7d0d
tree782d3ffbc9f99a746e7dad5612571b8df417403f
parent6e0b96cecb3c4c7cb05407258e721c6c8d17c659
device symlinks: just pass name, not struct driver_file_entry to driverfs_create_symlink
symlinks now only use the name field of the struct driver_file_entry, so instead of allocating
a new one each time we want to create one, this changes the API to only accept the name (since
the driverfs core will never use the other fields either)

This also guarantees that we won't leak the memory for the entry when the device goes away:
Since the other entries aren't dynamically allocated, and driverfs doesn't free them, we would
have to free them ourselves. It's not really necessary, so this is another win for us.
drivers/base/fs.c
fs/driverfs/inode.c
include/linux/driverfs_fs.h