reiserfscore: rename usearch_by_position to reiserfs_search_by_position
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
b94873771b
commit
a1623ca6b3
3 files changed
+13
-13
No files matched your search
+4
-4
@@ -219,7 +219,7 @@ int are_file_items_correct(struct item_head *sd_ih, void *sd, __u64 * size,
|
|||||||
path.path_length = ILLEGAL_PATH_ELEMENT_OFFSET;
|
path.path_length = ILLEGAL_PATH_ELEMENT_OFFSET;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
retval = usearch_by_position(fs, key, key_version, &path);
|
retval = reiserfs_search_by_position(fs, key, key_version, &path);
|
||||||
if (retval == POSITION_FOUND && path.pos_in_item != 0)
|
if (retval == POSITION_FOUND && path.pos_in_item != 0)
|
||||||
die("are_file_items_correct: All bytes we look for must be first items byte (position 0).");
|
die("are_file_items_correct: All bytes we look for must be first items byte (position 0).");
|
||||||
|
|
||||||
@@ -800,7 +800,7 @@ static void direct2indirect2(unsigned long unfm, struct reiserfs_path *path)
|
|||||||
// key.k_offset -= copied;
|
// key.k_offset -= copied;
|
||||||
ni = cpu_to_le32(unbh->b_blocknr);
|
ni = cpu_to_le32(unbh->b_blocknr);
|
||||||
|
|
||||||
if (usearch_by_position(fs, &key, file_format, path) == FILE_NOT_FOUND) {
|
if (reiserfs_search_by_position(fs, &key, file_format, path) == FILE_NOT_FOUND) {
|
||||||
struct item_head insih;
|
struct item_head insih;
|
||||||
|
|
||||||
copy_key(&(insih.ih_key), &key);
|
copy_key(&(insih.ih_key), &key);
|
||||||
@@ -836,7 +836,7 @@ static void direct2indirect2(unsigned long unfm, struct reiserfs_path *path)
|
|||||||
mark_buffer_uptodate(unbh, 1);
|
mark_buffer_uptodate(unbh, 1);
|
||||||
brelse(unbh);
|
brelse(unbh);
|
||||||
|
|
||||||
if (usearch_by_position(fs, &key, file_format, path) != POSITION_FOUND
|
if (reiserfs_search_by_position(fs, &key, file_format, path) != POSITION_FOUND
|
||||||
|| !is_indirect_ih(tp_item_head(path)))
|
|| !is_indirect_ih(tp_item_head(path)))
|
||||||
reiserfs_panic
|
reiserfs_panic
|
||||||
("direct2indirect: The data %k, which are supposed to be converted, are not found",
|
("direct2indirect: The data %k, which are supposed to be converted, are not found",
|
||||||
@@ -1326,7 +1326,7 @@ check_again:
|
|||||||
|
|
||||||
while (count) {
|
while (count) {
|
||||||
|
|
||||||
retval = usearch_by_position(fs, &key, key_format(&key), &path);
|
retval = reiserfs_search_by_position(fs, &key, key_format(&key), &path);
|
||||||
|
|
||||||
/* if there are items of bigger offset than we are looking for and
|
/* if there are items of bigger offset than we are looking for and
|
||||||
there is no item between wamted offset and SD, insert first item */
|
there is no item between wamted offset and SD, insert first item */
|
||||||
|
|||||||
@@ -129,8 +129,8 @@ int reiserfs_search_by_key_4(reiserfs_filsys_t *, struct reiserfs_key *key,
|
|||||||
struct reiserfs_path *path);
|
struct reiserfs_path *path);
|
||||||
int reiserfs_search_by_entry_key(reiserfs_filsys_t *, struct reiserfs_key *key,
|
int reiserfs_search_by_entry_key(reiserfs_filsys_t *, struct reiserfs_key *key,
|
||||||
struct reiserfs_path *path);
|
struct reiserfs_path *path);
|
||||||
int usearch_by_position(reiserfs_filsys_t *, struct reiserfs_key *key,
|
int reiserfs_search_by_position(reiserfs_filsys_t *, struct reiserfs_key *key,
|
||||||
int version, struct reiserfs_path *path);
|
int version, struct reiserfs_path *path);
|
||||||
struct reiserfs_key *reiserfs_next_key(struct reiserfs_path *path);
|
struct reiserfs_key *reiserfs_next_key(struct reiserfs_path *path);
|
||||||
void copy_key(void *to, const void *from);
|
void copy_key(void *to, const void *from);
|
||||||
void copy_short_key(void *to, const void *from);
|
void copy_short_key(void *to, const void *from);
|
||||||
|
|||||||
@@ -509,8 +509,8 @@ int reiserfs_search_by_key_4(reiserfs_filsys_t *fs, struct reiserfs_key *key,
|
|||||||
|
|
||||||
/* key is key of byte in the regular file. This searches in tree
|
/* key is key of byte in the regular file. This searches in tree
|
||||||
through items and in the found item as well */
|
through items and in the found item as well */
|
||||||
int usearch_by_position(reiserfs_filsys_t *s, struct reiserfs_key *key,
|
int reiserfs_search_by_position(reiserfs_filsys_t *s, struct reiserfs_key *key,
|
||||||
int version, struct reiserfs_path *path)
|
int version, struct reiserfs_path *path)
|
||||||
{
|
{
|
||||||
struct buffer_head *bh;
|
struct buffer_head *bh;
|
||||||
struct item_head *ih;
|
struct item_head *ih;
|
||||||
@@ -561,8 +561,8 @@ int usearch_by_position(reiserfs_filsys_t *s, struct reiserfs_key *key,
|
|||||||
|
|
||||||
if (is_direntry_key(next_key)) {
|
if (is_direntry_key(next_key)) {
|
||||||
reiserfs_warning(stderr,
|
reiserfs_warning(stderr,
|
||||||
"usearch_by_position: looking for %k found a directory with the same key\n",
|
"%s: looking for %k found a directory with the same key\n",
|
||||||
next_key);
|
__func__, next_key);
|
||||||
return DIRECTORY_FOUND;
|
return DIRECTORY_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1468,9 +1468,9 @@ void add_badblock_list(reiserfs_filsys_t *fs, int replace)
|
|||||||
set_offset(KEY_FORMAT_2, &badblock_ih.ih_key, offset);
|
set_offset(KEY_FORMAT_2, &badblock_ih.ih_key, offset);
|
||||||
ni = cpu_to_le32(i);
|
ni = cpu_to_le32(i);
|
||||||
|
|
||||||
retval = usearch_by_position(fs, &badblock_ih.ih_key,
|
retval = reiserfs_search_by_position(fs, &badblock_ih.ih_key,
|
||||||
key_format(&badblock_ih.ih_key),
|
key_format(&badblock_ih.ih_key),
|
||||||
&badblock_path);
|
&badblock_path);
|
||||||
|
|
||||||
switch (retval) {
|
switch (retval) {
|
||||||
case (FILE_NOT_FOUND):
|
case (FILE_NOT_FOUND):
|
||||||
|
|||||||
Reference in new issue
Block a user