VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2020-09-18 16:45:50 -0400 committer: Al Viro <viro@zeniv.linux.org.uk> 2020-09-18 16:45:50 -0400 commit: 6d1349c769ea28543bdde20a658cbc93c3bc936d parent: aabf59432c51be174994ecfe280f75ac139b5550
Commit Summary:
[PATCH] reduce boilerplate in fsid handling
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index b76ec6b88ded..68aa38a48308 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -282,8 +282,7 @@ static int omfs_statfs(struct dentry *dentry, struct kstatfs *buf)
 	buf->f_blocks = sbi->s_num_blocks;
 	buf->f_files = sbi->s_num_blocks;
 	buf->f_namelen = OMFS_NAMELEN;
-	buf->f_fsid.val[0] = (u32)id;
-	buf->f_fsid.val[1] = (u32)(id >> 32);
+	buf->f_fsid = u64_to_fsid(id);
 
 	buf->f_bfree = buf->f_bavail = buf->f_ffree =
 		omfs_count_free(s);