summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-07-24 19:34:58 +0400
committerDavid Sterba <dsterba@suse.cz>2014-10-02 19:30:33 +0400
commit7ec20afbcb7b257aec82ea5d66e6b0b7499abaca (patch)
tree0c6cb50c4827741419d7224bbd9663822609c712 /fs/btrfs/ctree.c
parentfb85fc9a675738ee2746b51c3aedde944b18ca02 (diff)
downloadlinux-7ec20afbcb7b257aec82ea5d66e6b0b7499abaca.tar.xz
btrfs: new define for the inline extent data start
Use a common definition for the inline data start so we don't have to open-code it and introduce bugs like "Btrfs: fix wrong max inline data size limit" fixed. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 39021bf2df9a..533657c508e2 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -4625,8 +4625,7 @@ void btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
ptr = btrfs_item_ptr_offset(leaf, slot);
memmove_extent_buffer(leaf, ptr,
(unsigned long)fi,
- offsetof(struct btrfs_file_extent_item,
- disk_bytenr));
+ BTRFS_FILE_EXTENT_INLINE_DATA_START);
}
}