Hi
Yes the surname system was in use some time into the 1900's. There is no definitive time where the use of this patronymic naming was not used any more, but I think that in around 1950-1960 it was pretty much gone.
Hörling was as I can understand, used when he was in the military service, in pic 2 there is a note that he is Båtsman (boats man) no 190. In the military they re-named almost all men, and used names like;
Fröjd (delight), Hag (pasture), Hed (heath), Flykt (escape), Fjäder (feather), Björk (birch), Ask (ash tree), Gran (fir), Tall (pine) because too many had similar first and surnames. There is more history to the use of special soldiers name but I leave that for another time.
Johan Gustaf's surname is Petersson, which is Peter's son. But in picture 2 his surname is written as Pehrsson, and this is a common issue where the priest just writes down what he might think, or heard wrong or just misspelled.
The 1st pic;
on the 19 born - on the 26 baptized Johan August in Hemmingsmåla mill (Qvarn = kvarn).
Father The Miller Peter Svensson Mother Kerstin Svensdotter 36 years (of age).
Wittnes: The tanner Liljerås his Wife Eva Sophia Petersdotter from Bro, farm-worker/boy (Dräng) Magnus Niclasson in Askaremåla, farm-maid (Piga) Elliana (?) Nicklasdotter (ibidem) from same place.
2nd pic;
Hörling, Johan August Pehrsson (boatsman) båtsman no 190 - Sandsjö (probably Kronobergs Län (county)) - Sandsjö kr.län
Hustru (wife) Christina Olausdotter - Lillhöfda (Lillhövda) - Thorsås
loco = in loco (latin) for "here", from same place