diff options
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 (patch) | |
tree | b35159c21b17c48fdec6b5349a7b69682b882076 /fs/exfat | |
parent | aabf59432c51be174994ecfe280f75ac139b5550 (diff) |
[PATCH] reduce boilerplate in fsid handling
Get rid of boilerplate in most of ->statfs()
instances...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exfat')
-rw-r--r-- | fs/exfat/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/exfat/super.c b/fs/exfat/super.c index 3b6a1659892f..ea17e8ed5067 100644 --- a/fs/exfat/super.c +++ b/fs/exfat/super.c @@ -89,8 +89,7 @@ static int exfat_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_blocks = sbi->num_clusters - 2; /* clu 0 & 1 */ buf->f_bfree = buf->f_blocks - sbi->used_clusters; buf->f_bavail = buf->f_bfree; - buf->f_fsid.val[0] = (unsigned int)id; - buf->f_fsid.val[1] = (unsigned int)(id >> 32); + buf->f_fsid = u64_to_fsid(id); /* Unicode utf16 255 characters */ buf->f_namelen = EXFAT_MAX_FILE_LEN * NLS_MAX_CHARSET_SIZE; return 0; |