Whamcloud - gitweb
LU-12137 osd-ldiskfs: shared common code for osd lookup 81/35581/4
authorJames Simmons <jsimmons@infradead.org>
Sat, 3 Aug 2019 19:25:33 +0000 (15:25 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Aug 2019 07:54:53 +0000 (07:54 +0000)
commit49bced40ab3628590b720bcf74dbe38f8abada38
tree8c7953f622b5b1bb50b8bd1295ce68a8e4186bb2
parent752dec2f36cef0e4893f9c68d7cc2b9505488471
LU-12137 osd-ldiskfs: shared common code for osd lookup

For osd_lookup_one_len_unlocked() the only time we don't return
the found dentry is if is_bad_inode() is true. The test for
is_bad_inode() can only be run when d_inode is not NULL so
we can move the d_inode test. The other change is the drop of
the debug message which will just fill the logs with too much
chatter so remove it.

Change-Id: I82cf73ca842a45d906ffc21c9c5397a61c2679d8
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/35581
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_compat.c