Lines Matching defs:error
71 * Generally the error codes correspond to their respective errors, but there
79 * EROFS: If we check BTRFS_FS_STATE_ERROR and fail out with a return error, we
82 * over the error. Each subsequent error that doesn't have any context
83 * of the original error should use EROFS when handling BTRFS_FS_STATE_ERROR.
124 * invokes the appropriate error response.
136 * Special case: if the error is EROFS, and we're already
152 pr_crit("BTRFS: error (device %s) in %s:%d: errno=%d %s (%pV)\n",
156 pr_crit("BTRFS: error (device %s) in %s:%d: errno=%d %s\n",
162 * Today we only save the error info to memory. Long term we'll
167 /* Don't go through full error handling during mount */
176 /* btrfs handle error by forcing the filesystem readonly */
194 "error",
256 * This means that error recovery at the call site is limited to freeing
257 * any local memory allocations and passing the error code up without
1031 int error = 0;
1057 error = -ENOMEM;
1064 error = PTR_ERR(device);
1072 return error;
1085 int error = 0;
1111 error = -ENOMEM;
1116 error = match_u64(&args[0], &subvolid);
1117 if (error)
1133 return error;
1619 int error = 0;
1625 error = security_sb_eat_lsm_opts(data, &new_sec_opts);
1626 if (error)
1627 return ERR_PTR(error);
1640 error = -ENOMEM;
1648 error = -ENOMEM;
1653 error = btrfs_parse_device_options(data, mode, fs_type);
1654 if (error) {
1662 error = PTR_ERR(device);
1669 error = btrfs_open_devices(fs_devices, mode, fs_type);
1671 if (error)
1675 error = -EACCES;
1683 error = PTR_ERR(s);
1691 error = -EBUSY;
1695 error = btrfs_fill_super(s, fs_devices, data);
1697 if (!error)
1698 error = security_sb_set_mnt_opts(s, new_sec_opts, 0, NULL);
1700 if (error) {
1702 return ERR_PTR(error);
1713 return ERR_PTR(error);
1745 int error = 0;
1747 error = btrfs_parse_subvol_options(data, &subvol_name,
1749 if (error) {
1751 return ERR_PTR(error);
1770 error = btrfs_remount(mnt_root->mnt_sb, &flags, NULL);
1772 if (error < 0) {
1773 root = ERR_PTR(error);
1935 "Remounting read-write after error is not allowed");
2009 /* We've hit an error - don't reset SB_RDONLY */