XArray: Change xa_insert to return -EBUSY
authorMatthew Wilcox <willy@infradead.org>
Wed, 6 Feb 2019 18:07:11 +0000 (13:07 -0500)
committerMatthew Wilcox <willy@infradead.org>
Wed, 6 Feb 2019 18:12:15 +0000 (13:12 -0500)
commitfd9dc93e36231fb6d520e0edd467058fad4fd12d
treeaa7dc07e911ece5d69304e9e4bba1f9b937d8ce2
parent809ab9371ca0a96b44d9866ad82849410759a45b
XArray: Change xa_insert to return -EBUSY

Userspace translates EEXIST to "File exists" which isn't a very good
error message for the problem.  "Device or resource busy" is a better
indication of what went wrong.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Documentation/core-api/xarray.rst
fs/nilfs2/btnode.c
include/linux/xarray.h
lib/test_xarray.c
lib/xarray.c