-
- Downloads
btrfs: tie extent buffer and it's token together
Further simplifaction of the get/set helpers is possible when the token
is uniquely tied to an extent buffer. A condition and an assignment can
be avoided.
The initializations are moved closer to the first use when the extent
buffer is valid. There's one exception in __push_leaf_left where the
token is reused.
Signed-off-by:
David Sterba <dsterba@suse.com>
Showing
- fs/btrfs/ctree.c 11 additions, 16 deletionsfs/btrfs/ctree.c
- fs/btrfs/ctree.h 3 additions, 1 deletionfs/btrfs/ctree.h
- fs/btrfs/inode.c 1 addition, 1 deletionfs/btrfs/inode.c
- fs/btrfs/struct-funcs.c 2 additions, 4 deletionsfs/btrfs/struct-funcs.c
- fs/btrfs/tree-log.c 3 additions, 4 deletionsfs/btrfs/tree-log.c
Loading
Please register or sign in to comment