diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2017-02-21 23:19:10 +0100 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2017-04-03 09:14:41 -0400 |
commit | 0a52aba7c2168636fc71635cf3ccb92a79a96c38 (patch) | |
tree | a6d611d27d4c2a91e894165e71f31488e442ccd8 /fs/gfs2/inode.c | |
parent | c369898759e0e143a513d022121290370f001d01 (diff) | |
download | linux-0a52aba7c2168636fc71635cf3ccb92a79a96c38.tar.bz2 |
gfs2: Switch to rhashtable_lookup_get_insert_fast
Switch from rhashtable_lookup_insert_fast + rhashtable_lookup_fast to
rhashtable_lookup_get_insert_fast, which is cleaner and avoids an extra
rhashtable lookup.
At the same time, turn the retry loop in gfs2_glock_get into an infinite
loop. The lookup or insert will eventually succeed, usually very fast,
but there is no reason to give up trying at a fixed number of
iterations.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
0 files changed, 0 insertions, 0 deletions