diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 16c8031db645fa74ed9836bb2bf2265d2184e133..cba2ac371ce014a6a194fe64e1f9757039332bce 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1755,7 +1755,7 @@ static noinline ssize_t __btrfs_buffered_write(struct file *file, if (copied > 0) ret = btrfs_dirty_pages(inode, pages, dirty_pages, - pos, copied, NULL); + pos, copied, &cached_state); if (extents_locked) unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, &cached_state);