The sb->s_magic holds the file system magic, we can use this to avoid use file system magic macro directly. Signed-off-by: Hongbo Li <lihongbo22@xxxxxxxxxx> --- fs/zonefs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index faf1eb87895d..1ecbf19ccc58 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -444,7 +444,7 @@ static int zonefs_statfs(struct dentry *dentry, struct kstatfs *buf) struct zonefs_sb_info *sbi = ZONEFS_SB(sb); enum zonefs_ztype t; - buf->f_type = ZONEFS_MAGIC; + buf->f_type = sb->s_magic; buf->f_bsize = sb->s_blocksize; buf->f_namelen = ZONEFS_NAME_MAX; -- 2.34.1