hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/fs/reiserfs/stree.c
....@@ -620,7 +620,6 @@
620620 struct buffer_head *bh;
621621 struct path_element *last_element;
622622 int node_level, retval;
623
- int right_neighbor_of_leaf_node;
624623 int fs_gen;
625624 struct buffer_head *reada_bh[SEARCH_BY_KEY_READA];
626625 b_blocknr_t reada_blocks[SEARCH_BY_KEY_READA];
....@@ -640,8 +639,6 @@
640639 */
641640
642641 pathrelse(search_path);
643
-
644
- right_neighbor_of_leaf_node = 0;
645642
646643 /*
647644 * With each iteration of this loop we search through the items in the
....@@ -728,7 +725,6 @@
728725 */
729726 block_number = SB_ROOT_BLOCK(sb);
730727 expected_level = -1;
731
- right_neighbor_of_leaf_node = 0;
732728
733729 /* repeat search from the root */
734730 continue;
....@@ -948,12 +944,6 @@
948944 ih = tp_item_head(path);
949945 return memcmp(stored_ih, ih, IH_SIZE);
950946 }
951
-
952
-/* unformatted nodes are not logged anymore, ever. This is safe now */
953
-#define held_by_others(bh) (atomic_read(&(bh)->b_count) > 1)
954
-
955
-/* block can not be forgotten as it is in I/O or held by someone */
956
-#define block_in_use(bh) (buffer_locked(bh) || (held_by_others(bh)))
957947
958948 /* prepare for delete or cut of direct item */
959949 static inline int prepare_for_direct_item(struct treepath *path,