Blame SOURCES/0062-PATCH-reduce-boilerplate-in-fsid-handling.patch

Kmods SIG 50e2b3
From 6d1349c769ea28543bdde20a658cbc93c3bc936d Mon Sep 17 00:00:00 2001
Kmods SIG 50e2b3
From: Al Viro <viro@zeniv.linux.org.uk>
Kmods SIG 50e2b3
Date: Fri, 18 Sep 2020 16:45:50 -0400
Kmods SIG 50e2b3
Subject: [Backport 6d1349c769ea] [PATCH] reduce boilerplate in fsid handling
Kmods SIG 50e2b3
Kmods SIG 50e2b3
Get rid of boilerplate in most of ->statfs()
Kmods SIG 50e2b3
instances...
Kmods SIG 50e2b3
Kmods SIG 50e2b3
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Kmods SIG 50e2b3
---
Kmods SIG 50e2b3
 src/super.c | 3 +--
Kmods SIG 50e2b3
 1 file changed, 1 insertion(+), 2 deletions(-)
Kmods SIG 50e2b3
Kmods SIG 50e2b3
diff --git a/src/super.c b/src/super.c
Kmods SIG 50e2b3
index 3b6a1659892ffd6ee3a94f6aa0f8bfca65fba9ae..ea17e8ed50674dc3d659fd4475649001d105c279 100644
Kmods SIG 50e2b3
--- a/src/super.c
Kmods SIG 50e2b3
+++ b/src/super.c
Kmods SIG 50e2b3
@@ -89,8 +89,7 @@ static int exfat_statfs(struct dentry *dentry, struct kstatfs *buf)
Kmods SIG 50e2b3
 	buf->f_blocks = sbi->num_clusters - 2; /* clu 0 & 1 */
Kmods SIG 50e2b3
 	buf->f_bfree = buf->f_blocks - sbi->used_clusters;
Kmods SIG 50e2b3
 	buf->f_bavail = buf->f_bfree;
Kmods SIG 50e2b3
-	buf->f_fsid.val[0] = (unsigned int)id;
Kmods SIG 50e2b3
-	buf->f_fsid.val[1] = (unsigned int)(id >> 32);
Kmods SIG 50e2b3
+	buf->f_fsid = u64_to_fsid(id);
Kmods SIG 50e2b3
 	/* Unicode utf16 255 characters */
Kmods SIG 50e2b3
 	buf->f_namelen = EXFAT_MAX_FILE_LEN * NLS_MAX_CHARSET_SIZE;
Kmods SIG 50e2b3
 	return 0;
Kmods SIG 50e2b3
-- 
Kmods SIG 50e2b3
2.31.1
Kmods SIG 50e2b3