[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>
Showing
- drivers/usb/core/inode.c 1 addition, 12 deletionsdrivers/usb/core/inode.c
- fs/debugfs/inode.c 1 addition, 11 deletionsfs/debugfs/inode.c
- fs/sysfs/dir.c 3 additions, 2 deletionsfs/sysfs/dir.c
- fs/sysfs/file.c 3 additions, 2 deletionsfs/sysfs/file.c
- fs/sysfs/group.c 3 additions, 1 deletionfs/sysfs/group.c
- fs/sysfs/inode.c 0 additions, 10 deletionsfs/sysfs/inode.c
- fs/sysfs/sysfs.h 0 additions, 1 deletionfs/sysfs/sysfs.h
- kernel/cpuset.c 1 addition, 7 deletionskernel/cpuset.c
Loading
Please register or sign in to comment