projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b0cbe
)
btrfs-progs: store pointer to fs_info in transaction handle
author
David Sterba
<dsterba@suse.com>
Mon, 28 Aug 2017 15:43:10 +0000
(17:43 +0200)
committer
David Sterba
<dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000
(16:15 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
transaction.c
patch
|
blob
|
history
transaction.h
patch
|
blob
|
history
diff --git
a/transaction.c
b/transaction.c
index
80aa7bc
..
6677a22
100644
(file)
--- a/
transaction.c
+++ b/
transaction.c
@@
-38,6
+38,7
@@
struct btrfs_trans_handle* btrfs_start_transaction(struct btrfs_root *root,
kfree(h);
return ERR_PTR(-EINVAL);
}
+ h->fs_info = fs_info;
fs_info->running_transaction = h;
fs_info->generation++;
h->transid = fs_info->generation;
diff --git
a/transaction.h
b/transaction.h
index
fe6704e
..
ccbecce
100644
(file)
--- a/
transaction.h
+++ b/
transaction.h
@@
-23,6
+23,7
@@
#include "ctree.h"
struct btrfs_trans_handle {
+ struct btrfs_fs_info *fs_info;
u64 transid;
u64 alloc_exclude_start;
u64 alloc_exclude_nr;