]> Gentwo Git Trees - linux/.git/commit
btrfs: define the AUTO_KFREE/AUTO_KVFREE helper macros
authorMiquel Sabaté Solà <mssola@mssola.com>
Fri, 24 Oct 2025 10:21:41 +0000 (12:21 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:34:51 +0000 (22:34 +0100)
commitd00cbce0a7d5de5fc31bf60abd59b44d36806b6e
tree7683a7044e4ffa0e5889c38e6f2e23db06cff836
parent285c3ab28eed282af70aba02d7708dea245bfc4b
btrfs: define the AUTO_KFREE/AUTO_KVFREE helper macros

These are two simple macros which ensure that a pointer is initialized
to NULL and with the proper cleanup attribute for it.

Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/misc.h