Btrfs: create a helper to create em for IO
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 31 Jan 2017 15:50:22 +0000 (07:50 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:48 +0000 (12:03 +0100)
commit6f9994dbabe5756df1922d84a568cbff74ae1323
tree3b5d8e583bb73d757fd5c994ed9461a6ac1c3d8f
parent4136135b080f5680fb31eda9348d1f636e4dbfb9
Btrfs: create a helper to create em for IO

We have similar codes to create and insert extent mapping around IO path,
this merges them into a single helper.

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