File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -914,22 +914,20 @@ static int erofs_statfs(struct dentry *dentry, struct kstatfs *buf)
914
914
{
915
915
struct super_block * sb = dentry -> d_sb ;
916
916
struct erofs_sb_info * sbi = EROFS_SB (sb );
917
- u64 id = 0 ;
918
-
919
- if (!erofs_is_fscache_mode (sb ))
920
- id = huge_encode_dev (sb -> s_bdev -> bd_dev );
921
917
922
918
buf -> f_type = sb -> s_magic ;
923
919
buf -> f_bsize = sb -> s_blocksize ;
924
920
buf -> f_blocks = sbi -> total_blocks ;
925
921
buf -> f_bfree = buf -> f_bavail = 0 ;
926
-
927
922
buf -> f_files = ULLONG_MAX ;
928
923
buf -> f_ffree = ULLONG_MAX - sbi -> inos ;
929
-
930
924
buf -> f_namelen = EROFS_NAME_LEN ;
931
925
932
- buf -> f_fsid = u64_to_fsid (id );
926
+ if (uuid_is_null (& sb -> s_uuid ))
927
+ buf -> f_fsid = u64_to_fsid (erofs_is_fscache_mode (sb ) ? 0 :
928
+ huge_encode_dev (sb -> s_bdev -> bd_dev ));
929
+ else
930
+ buf -> f_fsid = uuid_to_fsid (sb -> s_uuid .b );
933
931
return 0 ;
934
932
}
935
933
You can’t perform that action at this time.
0 commit comments