[PATCH] fs: Do not mntput() the root device parent
Sascha Hauer
s.hauer at pengutronix.de
Fri Apr 17 01:03:31 PDT 2026
On Wed, 15 Apr 2026 15:08:54 +0200, Sascha Hauer wrote:
> The vfs rootfs ("/") parent points to itself, so do not call mntput() on
> the parent when it's the root device as the reference counter would
> become negative.
>
> This doesn't happen in normal configurations as we normally have a ramfs
> mounted at / and we leave fs_remove() early in that case. Some xload
> configurations have a FAT from SD/eMMC mounted at / though which leads
> to a "refcount for mount \"%s\" becomes negative\n" warning.
>
> [...]
Applied, thanks!
[1/1] fs: Do not mntput() the root device parent
https://git.pengutronix.de/cgit/barebox/commit/?id=e0bf33757b78 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list