mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]>
This commit is contained in:
parent
809ab9371c
commit
fd9dc93e36
5 changed files with 9 additions and 9 deletions
|
|
@ -189,7 +189,7 @@ retry:
|
|||
*/
|
||||
if (!err)
|
||||
return 0;
|
||||
else if (err != -EEXIST)
|
||||
else if (err != -EBUSY)
|
||||
goto failed_unlock;
|
||||
|
||||
err = invalidate_inode_pages2_range(btnc, newkey, newkey);
|
||||
|
|
|
|||
Loading…
Reference in a new issue