David Sterba
355a052647
btrfs-progs: start framework for transaction abort
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-09-08 16:15:05 +02:00
David Sterba
0ee0b57f0b
btrfs-progs: store pointer to fs_info in transaction handle
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-09-08 16:15:05 +02:00
David Sterba
f2b0cbe8e8
btrfs-progs: move transaction code out of disk-io
...
Temporarily export the low-level helpers.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-09-08 16:15:05 +02:00
David Sterba
37c271b216
btrfs-progs: move transaction implementation out of header
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-09-08 16:15:05 +02:00
David Sterba
599f46ade3
btrfs-progs: use kzalloc to allocate transaction handle
...
Use the kernel-style allocation helpers and remove redundant zeroing.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-09-08 16:15:05 +02:00
David Sterba
6db6afd993
btrfs-progs: return errors from btrfs_start_transaction
...
Now that all callers will catch errors, we can return them from the
function.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-09-08 16:15:05 +02:00
David Sterba
497f974294
btrfs-progs: opencode trivial helper btrfs_free_transaction
...
It also does not exist in kernel code.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
250a58f34d
btrfs-progs: add missing includes to header files
...
Add includes that let the header files compile or add explicit include
of kerncompat if the uXX types are used.
Signed-off-by: David Sterba <dsterba@suse.cz>
2015-06-10 02:52:21 +02:00
David Sterba
07ce7005fc
btrfs-progs: unify header file inclusion protections
...
There are missing ifdefs or defines with very generic names.
Signed-off-by: David Sterba <dsterba@suse.cz>
2015-01-21 17:49:26 +01:00
Wang Sheng-Hui
0db197d8b2
btrfs-progs: add malloc check in transaction.h/btrfs_start_transaction
...
For malloc may fail, we should check it before assign
values to the struct btrfs_trans_handle *h.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
2013-01-18 18:27:21 +01:00
Yan
7777e63b42
Update btrfs-progs to match kernel sources
2008-01-04 10:38:22 -05:00
Yan
07a4f1b81d
Update btrfs-progs to better match the kernel
2007-12-05 10:41:38 -05:00
Chris Mason
d9f1317c7d
add GPLv2
2007-06-12 09:07:11 -04:00
Chris Mason
f247156e4f
transaction handles everywhere
2007-03-16 16:20:31 -04:00