[PATCH] remove duplicate get_dentry functions in various places
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jun 2005 07:09:12 +0000 (00:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:20 +0000 (09:45 -0700)
commit5f45f1a78fbac3cc859ec10c5366e97d20d40fa2
treebafacf11adbfb4eebf2d2d80d92e1fe2d9c02b18
parentac20427ef6aa63da663bdc88b71d16f7394f5e23
[PATCH] remove duplicate get_dentry functions in various places

Various filesystem drivers have grown a get_dentry() function that's a
duplicate of lookup_one_len, except that it doesn't take a maximum length
argument and doesn't check for \0 or / in the passed in filename.

Switch all these places to use lookup_one_len.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Greg KH <greg@kroah.com>
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/core/inode.c
fs/debugfs/inode.c
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/group.c
fs/sysfs/inode.c
fs/sysfs/sysfs.h
kernel/cpuset.c