super.c (9ff17e6bdaa50892dd9bdb1b116cb71b73dd711a) | super.c (0718afd47f70cf46877c39c25d06b786e1a3f36c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 * https://www.huawei.com/ 5 * Copyright (C) 2021, Alibaba Cloud 6 */ 7#include <linux/module.h> 8#include <linux/statfs.h> --- 240 unchanged lines hidden (view full) --- 249 250 if (erofs_is_fscache_mode(sb)) { 251 fscache = erofs_fscache_register_cookie(sb, dif->path, 0); 252 if (IS_ERR(fscache)) 253 return PTR_ERR(fscache); 254 dif->fscache = fscache; 255 } else if (!sbi->devs->flatdev) { 256 bdev = blkdev_get_by_path(dif->path, FMODE_READ | FMODE_EXCL, | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 * https://www.huawei.com/ 5 * Copyright (C) 2021, Alibaba Cloud 6 */ 7#include <linux/module.h> 8#include <linux/statfs.h> --- 240 unchanged lines hidden (view full) --- 249 250 if (erofs_is_fscache_mode(sb)) { 251 fscache = erofs_fscache_register_cookie(sb, dif->path, 0); 252 if (IS_ERR(fscache)) 253 return PTR_ERR(fscache); 254 dif->fscache = fscache; 255 } else if (!sbi->devs->flatdev) { 256 bdev = blkdev_get_by_path(dif->path, FMODE_READ | FMODE_EXCL, |
257 sb->s_type); | 257 sb->s_type, NULL); |
258 if (IS_ERR(bdev)) 259 return PTR_ERR(bdev); 260 dif->bdev = bdev; 261 dif->dax_dev = fs_dax_get_by_bdev(bdev, &dif->dax_part_off, 262 NULL, NULL); 263 } 264 265 dif->blocks = le32_to_cpu(dis->blocks); --- 886 unchanged lines hidden --- | 258 if (IS_ERR(bdev)) 259 return PTR_ERR(bdev); 260 dif->bdev = bdev; 261 dif->dax_dev = fs_dax_get_by_bdev(bdev, &dif->dax_part_off, 262 NULL, NULL); 263 } 264 265 dif->blocks = le32_to_cpu(dis->blocks); --- 886 unchanged lines hidden --- |