As we said just last Term, “it conclusively appears from the historic context in which § 2265 was enacted that the legislation was intended simply to provide in the sentencing court a remedy exactly commensurate with that which had previously been available by habeas corpus in the court of the district where the prisoner was confined.” Hill v. United States, 368 U. S. 424, 427.
• Plainly, were the prisoner invoking § 2255 faced with the bar of res judicata, he would not enjoy the “same rights” as the habeas corpus 'applicant,, or “a remedy exactly commensurate with” habeas. Indeed, if he were subject to any substantial procedural hurdles which made his remedy under § 2255 less swift and imperative than féderal habeas corpus, the gravest constitutional doubts would, be engendered, as the Court in Hayman implicitly recognized. And cf. pp. 11-12, supra. We therefore hold that the “similar relief” provision of § 2255. is to be deemed the material équívalent of § 2244. See Smith v. United States, 106 U. S. App. D. C. 169, 173, 270 F. 2d 921, 925 (1959); Longsdorf, The Federal Habeas Corpus Acts Original and Amended, 13 F. R. D. 407, 424 (1953). We are helped to this conclusion by two further considerations.
. First, there is no indication in the legislative history to the 1948 revision of the Judicial Code that Congress intended to treat the problem of successive applications differently under habeas corpus- than under the new motion procedure; and it is difficult to see what logical or practical basis there could be for such' a distinction.
Second,’even assuming the constitutionality of incorporating res judicata in § 2255, such a provision wofild •probably prove to be completely ineffectual, in light of the further provision in the section that habeas corpus remains available to a federal prisoner if the remedy by motion is “inadequate or ineffective.”. A prisoner barred by res judicata would seem as a consequence to have an