]> git.hungrycats.org Git - linux/commitdiff
zygo: fs/btrfs: make noise for EIO: the inline function
authorZygo Blaxell <zblaxell@serenity.furryterror.org>
Sat, 15 Aug 2015 15:44:11 +0000 (11:44 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sat, 15 Aug 2015 15:44:11 +0000 (11:44 -0400)
fs/btrfs/ctree.h

index 6f364e1d8d3d1e9c08e246dbc1df443be49c33fd..26af6d9c36bc64bdf359ca27d681534887ea4b3f 100644 (file)
@@ -4244,4 +4244,12 @@ static inline int btrfs_test_is_dummy_root(struct btrfs_root *root)
        return 0;
 }
 
+static inline int eieio(const char *func, const char *file, int line)
+{
+       printk(KERN_INFO "EIO at %s %s:%d\n", func, file, line);
+       return EIO;
+}
+
+#define EIEIO (eieio(__FUNCTION__, __FILE__, __LINE__))
+
 #endif