The following stops the issue. I'm not sure if it is the correct fix though.
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 098bb8f..5e5df8b 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1884,7 +1884,7 @@ static int start_ordered_ops(struct inode *inode, loff_t start, loff_t end) int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) { struct dentry *dentry = file->f_path.dentry; - struct inode *inode = d_inode(dentry); + struct inode *inode = file_inode(file); struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_trans_handle *trans; struct btrfs_log_ctx ctx;
The following stops the issue. I'm not sure if it is the correct fix though.
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c ops(struct inode *inode, loff_t start, loff_t end) file(struct file *file, loff_t start, loff_t end, int datasync) path.dentry; inode)- >root;
index 098bb8f..5e5df8b 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1884,7 +1884,7 @@ static int start_ordered_
int btrfs_sync_
{
struct dentry *dentry = file->f_
- struct inode *inode = d_inode(dentry);
+ struct inode *inode = file_inode(file);
struct btrfs_root *root = BTRFS_I(
struct btrfs_trans_handle *trans;
struct btrfs_log_ctx ctx;