Re: [PATCH] virtio-fs: Query rootmode during mount

From: Miklos Szeredi
Date: Fri Nov 15 2024 - 10:25:12 EST


On Fri, 15 Nov 2024 at 15:51, Hanna Czenczek <hreitz@xxxxxxxxxx> wrote:

> Now that I look at it once again (because I was wondering why to check fm, and not fm->fc), do we even need to check fm or fm->fc? fuse_mount_destroy() assumes both are non-NULL, so I assume sb->s_root || fm->fc->initialized should be OK, too…

You're right, fm can't be NULL. Not sure why I thought it can.

Thanks,
Miklos