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

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