diff options
author | David Sterba <dsterba@suse.cz> | 2014-07-24 17:34:58 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-10-02 17:30:33 +0200 |
commit | 7ec20afbcb7b257aec82ea5d66e6b0b7499abaca (patch) | |
tree | 0c6cb50c4827741419d7224bbd9663822609c712 /fs/btrfs/ctree.c | |
parent | fb85fc9a675738ee2746b51c3aedde944b18ca02 (diff) | |
download | op-kernel-dev-7ec20afbcb7b257aec82ea5d66e6b0b7499abaca.zip op-kernel-dev-7ec20afbcb7b257aec82ea5d66e6b0b7499abaca.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 39021bf..533657c5 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); } } |