]> 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)
commit885ef2a455efdfcf8a2139e34cbe7bd1160c5e81
treee7358cb2dd597c8be7001be4573fa0e53361ebb5
parent73acf7da0a5697d74d4a8202a29db93173ea7e0a
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