super.c (9ff17e6bdaa50892dd9bdb1b116cb71b73dd711a) super.c (0718afd47f70cf46877c39c25d06b786e1a3f36c)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * NILFS module and super block management.
4 *
5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
6 *
7 * Written by Ryusuke Konishi.
8 */

--- 1271 unchanged lines hidden (view full) ---

1280 struct super_block *s;
1281 fmode_t mode = FMODE_READ | FMODE_EXCL;
1282 struct dentry *root_dentry;
1283 int err, s_new = false;
1284
1285 if (!(flags & SB_RDONLY))
1286 mode |= FMODE_WRITE;
1287
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * NILFS module and super block management.
4 *
5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
6 *
7 * Written by Ryusuke Konishi.
8 */

--- 1271 unchanged lines hidden (view full) ---

1280 struct super_block *s;
1281 fmode_t mode = FMODE_READ | FMODE_EXCL;
1282 struct dentry *root_dentry;
1283 int err, s_new = false;
1284
1285 if (!(flags & SB_RDONLY))
1286 mode |= FMODE_WRITE;
1287
1288 sd.bdev = blkdev_get_by_path(dev_name, mode, fs_type);
1288 sd.bdev = blkdev_get_by_path(dev_name, mode, fs_type, NULL);
1289 if (IS_ERR(sd.bdev))
1290 return ERR_CAST(sd.bdev);
1291
1292 sd.cno = 0;
1293 sd.flags = flags;
1294 if (nilfs_identify((char *)data, &sd)) {
1295 err = -EINVAL;
1296 goto failed;

--- 185 unchanged lines hidden ---
1289 if (IS_ERR(sd.bdev))
1290 return ERR_CAST(sd.bdev);
1291
1292 sd.cno = 0;
1293 sd.flags = flags;
1294 if (nilfs_identify((char *)data, &sd)) {
1295 err = -EINVAL;
1296 goto failed;

--- 185 unchanged lines hidden ---