projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Btrfs: fix lockdep warning on deadlock against an inode's log mutex
[cascardo/linux.git]
/
fs
/
btrfs
/
tree-log.h
diff --git
a/fs/btrfs/tree-log.h
b/fs/btrfs/tree-log.h
index
a9f1b75
..
ab858e3
100644
(file)
--- a/
fs/btrfs/tree-log.h
+++ b/
fs/btrfs/tree-log.h
@@
-30,15
+30,18
@@
struct btrfs_log_ctx {
int log_transid;
int io_err;
bool log_new_dentries;
int log_transid;
int io_err;
bool log_new_dentries;
+ struct inode *inode;
struct list_head list;
};
struct list_head list;
};
-static inline void btrfs_init_log_ctx(struct btrfs_log_ctx *ctx)
+static inline void btrfs_init_log_ctx(struct btrfs_log_ctx *ctx,
+ struct inode *inode)
{
ctx->log_ret = 0;
ctx->log_transid = 0;
ctx->io_err = 0;
ctx->log_new_dentries = false;
{
ctx->log_ret = 0;
ctx->log_transid = 0;
ctx->io_err = 0;
ctx->log_new_dentries = false;
+ ctx->inode = inode;
INIT_LIST_HEAD(&ctx->list);
}
INIT_LIST_HEAD(&ctx->list);
}