]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: return value from btrfs_mark_extent_written() in case of error
authorRitesh Harjani <riteshh@linux.ibm.com>
Sun, 30 May 2021 14:54:05 +0000 (20:24 +0530)
committerDavid Sterba <dsterba@suse.com>
Fri, 4 Jun 2021 11:11:58 +0000 (13:11 +0200)
commitc82b23cafd2d65729304d319f005224930448407
tree28931c65e53f4fa557f4aca5f8ddc426aca340a8
parent315bb8de52d1b610c45de8bfcf58df29fcfaf7bf
btrfs: return value from btrfs_mark_extent_written() in case of error

We always return 0 even in case of an error in btrfs_mark_extent_written().
Fix it to return proper error value in case of a failure. All callers
handle it.

CC: stable@vger.kernel.org # 4.4+
Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c