Btrfs: cleanup unnecessary parameter and variant of prepare_pages()
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 10 Dec 2013 11:25:03 +0000 (19:25 +0800)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:41 +0000 (13:19 -0800)
commitb37392ea86761e97d46b567667ff158e8bb67b72
tree0c57373c4c9dea9cf799d762cf13724982e0ecc1
parentcc37bb04201217b7acb11213e16cb5530c30da8f
Btrfs: cleanup unnecessary parameter and variant of prepare_pages()

- the caller has gotten the inode object, needn't pass the file object.
  And if so, we needn't define a inode pointer variant.
- the position should be aligned by the page size not sector size, so
  we also needn't pass the root object into prepare_pages().

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/file.c