Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# Parses DHCP options from openvpn to update resolv.conf
# To use set as 'up' and 'down' script in your openvpn *.conf:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
#
# Used snippets of resolvconf script by Thomas Hood <jdthood@yahoo.co.uk>
# and Chris Hanson
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL.
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index da41a0c371bc..1e77371035ac 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1846,6 +1846,29 @@ static ssize_t check_direct_IO(struct btrfs_fs_info *fs_info,
return 0;
}
+static size_t dio_fault_in_size(const struct iov_iter *iov, size_t prev_left)
+{