forked from Mirrors/btrfs-progs
btrfs-progs: store pointer to fs_info in transaction handle
Signed-off-by: David Sterba <dsterba@suse.com>master
parent
f2b0cbe8e8
commit
0ee0b57f0b
|
@ -38,6 +38,7 @@ struct btrfs_trans_handle* btrfs_start_transaction(struct btrfs_root *root,
|
||||||
kfree(h);
|
kfree(h);
|
||||||
return ERR_PTR(-EINVAL);
|
return ERR_PTR(-EINVAL);
|
||||||
}
|
}
|
||||||
|
h->fs_info = fs_info;
|
||||||
fs_info->running_transaction = h;
|
fs_info->running_transaction = h;
|
||||||
fs_info->generation++;
|
fs_info->generation++;
|
||||||
h->transid = fs_info->generation;
|
h->transid = fs_info->generation;
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "ctree.h"
|
#include "ctree.h"
|
||||||
|
|
||||||
struct btrfs_trans_handle {
|
struct btrfs_trans_handle {
|
||||||
|
struct btrfs_fs_info *fs_info;
|
||||||
u64 transid;
|
u64 transid;
|
||||||
u64 alloc_exclude_start;
|
u64 alloc_exclude_start;
|
||||||
u64 alloc_exclude_nr;
|
u64 alloc_exclude_nr;
|
||||||
|
|
Loading…
Reference in New Issue