]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Make extent-io callbacks that never fail return void
authorJeff Mahoney <jeffm@suse.de>
Thu, 21 Jul 2011 16:56:09 +0000 (16:56 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:30:43 +0000 (14:30 -0400)
commit1315587d3ade17e81658a62323947b8b319f7aee
treee7358cb2dd597c8be7001be4573fa0e53361ebb5
parentbdfb8a61a8da90b6e502efbd4ad58b4d5c72adee
btrfs: Make extent-io callbacks that never fail return void

The set/clear bit and the extent split/merge hooks only ever return 0.

 Changing them to return void simplifies the error handling cases later.

 This patch changes the hook prototypes, the single implementation of each,
 and the functions that call them to return void instead.

 Since all four of these hooks execute under a spinlock, they're necessarily
 simple.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c