Skip to content

Commit dc8e190

Browse files
David WoodhouseDavid Woodhouse
authored andcommitted
EFS: Don't set f_fsid in statfs().
We don't have any suitable value to put in f_fsid. Using EFS_MAGIC really isn't a good idea, because all EFS file systems will have the same f_fsid then. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent afa153f commit dc8e190

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/efs/super.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ static int efs_statfs(struct dentry *dentry, struct kstatfs *buf) {
341341
sb->inode_blocks *
342342
(EFS_BLOCKSIZE / sizeof(struct efs_dinode));
343343
buf->f_ffree = sb->inode_free; /* free inodes */
344-
buf->f_fsid.val[0] = (sb->fs_magic >> 16) & 0xffff; /* fs ID */
345-
buf->f_fsid.val[1] = sb->fs_magic & 0xffff; /* fs ID */
346344
buf->f_namelen = EFS_MAXNAMELEN; /* max filename length */
347345

348346
return 0;

0 commit comments

Comments
 (0)