btrfs: Use iocb to derive pos instead of passing a separate parameter
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Sun, 17 Jun 2018 17:39:47 +0000 (12:39 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:40 +0000 (13:12 +0200)
commite4af400a9c5081e7d2b703e4c479cb9831cc1117
treeb06ae81e10e648141271577c9fd277ce1f3687c6
parent893bf4b115c713738df05bb557f8fba14f07c077
btrfs: Use iocb to derive pos instead of passing a separate parameter

struct kiocb carries the ki_pos, so there is no need to pass it as
a separate function parameter.

generic_file_direct_write() increments ki_pos, so we now assign pos
after the function.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
[ rename to btrfs_buffered_write ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c