diff options
author | Tejun Heo <tj@kernel.org> | 2008-09-28 00:48:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 18:24:51 +0200 |
commit | 45c076c5d71e6e644e2eae64f80922d162c900ac (patch) | |
tree | 68e188af66201219f41681d57975a1bdf7ec9347 /drivers/base | |
parent | PNP: create device attributes via default device attributes (diff) | |
download | linux-45c076c5d71e6e644e2eae64f80922d162c900ac.tar.xz linux-45c076c5d71e6e644e2eae64f80922d162c900ac.zip |
sysfs: use ilookup5() instead of ilookup5_nowait()
As inode creation is protected by sysfs_mutex, ilookup5_nowait()
always either fails to find at all or finds one which is fully
initialized, so using ilookup5_nowait() or ilookup5() doesn't make any
difference. Switch to ilookup5() as it's planned to be removed. This
change also makes lookup return value handling a bit simpler.
This change was suggested by Al Viro.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Al Viro <viro@hera.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions