db/update/Walk: rename find_inode_ancestor() to FindAncestorLoop()

This commit is contained in:
Max Kellermann 2014-02-09 10:44:19 +01:00
parent 37b6899660
commit ace3f37af4

View File

@ -153,8 +153,8 @@ update_directory_stat(Storage &storage, Directory &directory)
#endif #endif
static int static int
find_inode_ancestor(Storage &storage, Directory *parent, FindAncestorLoop(Storage &storage, Directory *parent,
unsigned inode, unsigned device) unsigned inode, unsigned device)
{ {
#ifndef WIN32 #ifndef WIN32
while (parent) { while (parent) {
@ -218,7 +218,7 @@ UpdateWalk::UpdateDirectoryChild(Directory &directory,
if (info.IsRegular()) { if (info.IsRegular()) {
UpdateRegularFile(directory, name, info); UpdateRegularFile(directory, name, info);
} else if (info.IsDirectory()) { } else if (info.IsDirectory()) {
if (find_inode_ancestor(storage, &directory, if (FindAncestorLoop(storage, &directory,
info.inode, info.device)) info.inode, info.device))
return; return;
@ -390,7 +390,7 @@ UpdateWalk::DirectoryMakeChildChecked(Directory &parent,
FileInfo info; FileInfo info;
if (!GetInfo(storage, uri_utf8, info) || if (!GetInfo(storage, uri_utf8, info) ||
find_inode_ancestor(storage, &parent, info.inode, info.device)) FindAncestorLoop(storage, &parent, info.inode, info.device))
return nullptr; return nullptr;
if (SkipSymlink(&parent, name_utf8)) if (SkipSymlink(&parent, name_utf8))