33** OO_Copyright_BEGIN
44**
55**
6- ** Copyright 2010, 2025 IBM Corp. All rights reserved.
6+ ** Copyright 2010, 2020 IBM Corp. All rights reserved.
77**
88** Redistribution and use in source and binary forms, with or without
99** modification, are permitted provided that the following conditions
@@ -1658,8 +1658,7 @@ int ltfs_mount(bool force_full, bool deep_recovery, bool recover_extra, bool rec
16581658 (unsigned long long )vol -> dp_coh .volume_change_ref ,
16591659 (unsigned long long )volume_change_ref );
16601660
1661- /* Index of IP could be corrupted. So set skip flag to true */
1662- ret = _ltfs_search_index_wp (recover_symlink , true, & seekpos , vol );
1661+ ret = _ltfs_search_index_wp (recover_symlink , false, & seekpos , vol );
16631662 if (ret < 0 )
16641663 goto out_unlock ;
16651664
@@ -1669,7 +1668,7 @@ int ltfs_mount(bool force_full, bool deep_recovery, bool recover_extra, bool rec
16691668 seekpos .block = vol -> dp_coh .set_id ;
16701669 }
16711670 } else {
1672- if (vol -> ip_coh . count > vol -> dp_coh . count && vollock != PWE_MAM_DP && vollock != PWE_MAM ) {
1671+ if (vollock != PWE_MAM_DP && vollock != PWE_MAM ) {
16731672 /*
16741673 * The index on IP is newer but MAM shows write perm doesn't happen in DP.
16751674 * LTFS already have written an index on DP when it is writing an index on IP,
@@ -1688,13 +1687,8 @@ int ltfs_mount(bool force_full, bool deep_recovery, bool recover_extra, bool rec
16881687 (unsigned long long )vol -> dp_coh .volume_change_ref ,
16891688 (unsigned long long )volume_change_ref );
16901689
1691- if (vollock == PWE_MAM_BOTH ) {
1692- /* Index of IP could be corrupted (because of double write perm). So set skip flag to true */
1693- ret = _ltfs_search_index_wp (recover_symlink , true, & seekpos , vol );
1694- } else {
1695- /* Index of DP could be corrupted. So set skip flag to false */
1696- ret = _ltfs_search_index_wp (recover_symlink , false, & seekpos , vol );
1697- }
1690+ /* Index of IP could be corrupted. So set skip flag */
1691+ ret = _ltfs_search_index_wp (recover_symlink , true, & seekpos , vol );
16981692 if (ret < 0 )
16991693 goto out_unlock ;
17001694
0 commit comments