Let X be a Banach space and Z a closed subspace of a Banach space Y. Denote by Ｌ(X, Y) the space of all bounded linear operators from X to Y and by Ｋ(X, Y) its subspace of compact linear operators. Using Hahn-Banach extension operators corresponding to ideal projections, we prove that if either

or

has the Radon-Nikodym property and Ｋ(X, Y) is an M-ideal (resp. an HB-subspace) in Ｌ(X, Y), then Ｋ(X, Z) is also an M-ideal (resp. HB-subspace) in Ｌ(X, Z). If Ｌ(X, Y) has property SU instead of being an M-ideal in Ｌ(X, Y) in the above, then Ｋ(X, Z) also has property SU in Ｌ(X, Z). If X is a Banach space such that

has the metric compact approximation property with adjoint operators, then M-ideal (resp. HB-subspace) property of Ｋ(X, Y) in Ｌ(X, Y) is inherited to Ｋ(X, Z) in Ｌ(X, Z).