vfs: remove duplicate code in get_fs_type()