]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: use -ENOSPC to indicate no more room for snapshots
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 26 Mar 2020 18:37:12 +0000 (11:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 02:39:26 +0000 (19:39 -0700)
commitba282f466d169ff2077340e6d3cc3486de5fca7d
treefb9bc73078eff033baa35dca99c8531eb7253d3c
parente919a014012f184399efe69e49c7ae54b1500288
devlink: use -ENOSPC to indicate no more room for snapshots

The devlink_region_snapshot_create function returns -ENOMEM when the
maximum number of snapshots has been reached. This is confusing because
it is not an issue of being out of memory. Change this to use -ENOSPC
instead.

Reported-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c