Re: [PATCH 1/2] pstore: move slash handling into common function

2024-05-08 Thread Sascha Hauer
On Wed, May 08, 2024 at 01:18:35PM +0200, Ahmad Fatoum wrote: > Both open and stat receive a file path and manually skip over the slash > before calling pstore_get_by_name. Follow-up commit adds one more user > of pstore_get_by_name, so instead of duplicating the flash skip a third > time, move it

Re: [PATCH 1/2] pstore: move slash handling into common function

2024-05-08 Thread Sascha Hauer
On Wed, 08 May 2024 13:18:35 +0200, Ahmad Fatoum wrote: > Both open and stat receive a file path and manually skip over the slash > before calling pstore_get_by_name. Follow-up commit adds one more user > of pstore_get_by_name, so instead of duplicating the flash skip a third > time, move it into

[PATCH 1/2] pstore: move slash handling into common function

2024-05-08 Thread Ahmad Fatoum
Both open and stat receive a file path and manually skip over the slash before calling pstore_get_by_name. Follow-up commit adds one more user of pstore_get_by_name, so instead of duplicating the flash skip a third time, move it into pstore_get_by_name. Signed-off-by: Ahmad Fatoum --- fs/pstore/