Leo Martins
4c74a32ad3
btrfs: DEFINE_FREE for struct btrfs_path
...
Add a DEFINE_FREE for struct btrfs_path. This defines a function that
can be called using the __free attribute. Define a macro
BTRFS_PATH_AUTO_FREE to make the declaration of an auto freeing path
very clear.
The intended use is to define the auto free of path in cases where the
path is allocated somewhere at the beginning and freed either on all
error paths or at the end of the function.
int func() {
BTRFS_PATH_AUTO_FREE(path);
if (...)
return -ERROR;
path = alloc_path();
...
if (...)
return -ERROR;
...
return 0;
}
Signed-off-by: Leo Martins <loemra.dev@gmail.com>
[ update changelog ]
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2024-09-10 16:51:22 +02:00
..
2024-09-10 16:51:14 +02:00
2024-03-04 16:24:46 +01:00
2024-07-11 15:33:28 +02:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:49 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:22 +02:00
2024-03-04 16:24:53 +01:00
2024-09-10 16:51:20 +02:00
2024-09-10 16:51:19 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:21 +02:00
2024-09-10 16:51:21 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:20 +02:00
2024-09-10 16:51:19 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:28 +02:00
2024-07-11 15:33:28 +02:00
2024-09-10 16:51:18 +02:00
2024-09-10 16:51:18 +02:00
2024-09-10 16:51:17 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:22 +02:00
2024-09-10 16:51:20 +02:00
2024-07-11 15:33:29 +02:00
2024-09-10 16:51:22 +02:00
2023-06-19 13:59:25 +02:00
2024-09-10 16:51:20 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:25 +02:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:21 +02:00
2024-09-10 16:51:12 +02:00
2024-07-11 15:33:22 +02:00
2024-09-10 16:51:20 +02:00
2024-09-10 16:51:20 +02:00
2024-09-10 16:51:21 +02:00
2024-07-11 15:33:26 +02:00
2024-08-26 16:58:13 +02:00
2024-07-11 15:33:20 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-07-11 15:33:29 +02:00
2024-08-15 20:35:56 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:26 +02:00
2024-03-04 16:24:49 +01:00
2023-02-13 17:50:35 +01:00
2024-09-10 16:51:18 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:21 +02:00
2024-09-10 16:51:21 +02:00
2024-07-11 15:33:22 +02:00
2023-10-12 16:44:05 +02:00
2024-05-07 21:31:06 +02:00
2024-07-11 15:33:22 +02:00
2023-12-15 23:00:04 +01:00
2024-07-11 15:33:22 +02:00
2024-09-10 16:51:21 +02:00
2024-07-11 15:33:29 +02:00
2024-07-11 15:33:29 +02:00
2023-12-15 20:27:02 +01:00
2024-07-11 15:33:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:14 +02:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:49 +01:00
2024-08-02 22:44:27 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:29 +02:00
2024-07-11 15:33:29 +02:00
2024-09-10 16:51:18 +02:00
2024-09-10 16:51:18 +02:00
2024-07-11 15:33:30 +02:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:17 +02:00
2024-07-11 15:33:28 +02:00
2024-03-04 16:24:49 +01:00
2024-07-02 19:14:57 +02:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:21 +02:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:17 +02:00
2024-03-04 16:24:49 +01:00
2024-05-07 21:31:06 +02:00
2024-04-02 19:18:23 +02:00
2024-09-10 16:51:19 +02:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:18 +02:00
2024-07-11 15:33:28 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-08-16 21:22:39 +02:00
2024-07-19 17:20:23 +02:00
2024-07-11 15:33:30 +02:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:18 +02:00
2024-09-03 20:29:55 +02:00
2024-08-15 20:35:52 +02:00
2024-05-02 22:11:13 +02:00
2024-09-10 16:51:22 +02:00
2024-07-11 15:33:24 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-07-11 15:33:26 +02:00
2024-07-11 15:33:26 +02:00
2024-09-10 16:51:12 +02:00
2024-09-10 16:51:12 +02:00
2024-09-10 16:51:22 +02:00
2024-03-04 16:24:49 +01:00
2024-09-10 16:51:18 +02:00
2024-09-10 16:51:17 +02:00
2024-09-10 16:51:22 +02:00
2024-07-11 15:33:22 +02:00
2024-09-10 16:51:21 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:22 +02:00
2024-09-10 16:51:21 +02:00