While the length of bullet travel will vary with the length of the cartridge & bullet, the length of the cartridge & bullet is not a factor in determining barrel length. Barrel length is still 24"
Barrel length on any given gun is not variable....unless you should apply a hacksaw to the barrel