OSDN Git Service

btrfs: get rid of sector_t and use u64 offset in submit_extent_page
authorDavid Sterba <dsterba@suse.com>
Wed, 4 Oct 2017 15:30:11 +0000 (17:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:28:00 +0000 (12:28 +0100)
commit6273b7f8ed78d1acc3db6774b9ab07f04115f520
treea57911d77aab1c9c675ca0fe9916b0ae477b8bf2
parent6c5a4e2c12597ba7cc0c6c644e7c9d04a627001c
btrfs: get rid of sector_t and use u64 offset in submit_extent_page

The use of sector_t in the callchain of submit_extent_page is not
necessary.  Switch to u64 and rename the variable and use byte units
instead of 512b, ie.  dropping the >> 9 shifts and avoiding the
con(tro)versions of sector_t.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c