summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-11-01 20:20:52 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-25 05:40:08 +0100
commit2f90a851800e88436873c8d27238cf219b9ef48e (patch)
tree70f8947025d38ad64026b1d00986655ff3c3606f /fs/sysfs/file.c
parentdriver core: Make the dev_*() family of macros in device.h complete (diff)
downloadlinux-2f90a851800e88436873c8d27238cf219b9ef48e.tar.xz
linux-2f90a851800e88436873c8d27238cf219b9ef48e.zip
sysfs: create optimal relative symlink targets
Instead of walking from the source down to the root of sysfs, and back to the target, we stop at the first directory the source and the target share. This link: /devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0/ep_81 pointed to: ../../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-0:1.0/usb_endpoint/usbdev2.1_ep81 now it just points to: usb_endpoint/usbdev1.1_ep81 Thanks to Denis Cheng for bringing this up, and sending the initial patch. CC: Denis Cheng <crquan@gmail.com> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/file.c')
0 files changed, 0 insertions, 0 deletions