[PATCH -next] zonefs: obtain fs magic from superblock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux