btrfs: scrub: return EAGAIN when fs is closing
authorDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 18:57:41 +0000 (19:57 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:17 +0000 (19:02 +0200)
commit6c3abeda773040ad2338742b3ee95d93eb5565e1
tree441b624149310c623142a84e6cd891814c9566ba
parent8de60fe94292c8cdac431537ba315e15cdcafd00
btrfs: scrub: return EAGAIN when fs is closing

The error code used here is wrong as it's not invalid to try to start
scrub when umount has begun.  Returning EAGAIN is more user friendly as
it's recoverable.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c