aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/lzo.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-08-09 17:12:38 +0200
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:16 +0200
commitcb49511328dcce73840a54661622950d7fa6384e (patch)
treea380d0eb8fd8d8174502b0a415879765809e988b /fs/btrfs/lzo.c
parentbtrfs: Make btrfs_find_name_in_ext_backref return struct btrfs_inode_extref (diff)
downloadlinux-dev-cb49511328dcce73840a54661622950d7fa6384e.tar.xz
linux-dev-cb49511328dcce73840a54661622950d7fa6384e.zip
btrfs: define separate btrfs_set/get_XX helpers
There are helpers for all type widths defined via macro and optionally can use a token which is a cached pointer to avoid repeated mapping of the extent buffer. The token value is known at compile time, when it's valid it's always address of a local variable, otherwise it's NULL passed by the token-less helpers. This can be utilized to remove some branching as the helpers are used frequenlty. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/lzo.c')
0 files changed, 0 insertions, 0 deletions