diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2016-01-21 13:25:56 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-01 21:24:29 +0300 |
commit | 9703fefe0b137bb4475187b5d82ec5823445616b (patch) | |
tree | a5c16ac426d6495af1811eb87f3e5e07fbaaacc1 /fs/btrfs/ctree.h | |
parent | 2dabb3248453be9b81906dd028ec6979708de7be (diff) | |
download | linux-9703fefe0b137bb4475187b5d82ec5823445616b.tar.xz |
Btrfs: fallocate: Work with sectorsized blocks
While at it, this commit changes btrfs_truncate_page() to truncate sectorsized
blocks instead of pages. Hence the function has been renamed to
btrfs_truncate_block().
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index ffb3617fad98..42ab58250d9e 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -4030,7 +4030,7 @@ int btrfs_unlink_subvol(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, u64 objectid, const char *name, int name_len); -int btrfs_truncate_page(struct inode *inode, loff_t from, loff_t len, +int btrfs_truncate_block(struct inode *inode, loff_t from, loff_t len, int front); int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, |