fuse_put_request(fc, req);
if (!err) {
if ((inode->i_mode ^ arg.attr.mode) & S_IFMT) {
-#ifndef FUSE_MAINLINE
+#ifndef KERNEL_2_6_12_PLUS
if (get_node_id(inode) != FUSE_ROOT_ID)
make_bad_inode(inode);
#else
fuse_put_request(fc, req);
if (!err) {
if ((inode->i_mode ^ outarg.attr.mode) & S_IFMT) {
-#ifndef FUSE_MAINLINE
+#ifndef KERNEL_2_6_12_PLUS
if (get_node_id(inode) != FUSE_ROOT_ID)
make_bad_inode(inode);
#else
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
# define KERNEL_2_6_10_PLUS
# endif
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
+# define KERNEL_2_6_12_PLUS
+# endif
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
# define KERNEL_2_6_13_PLUS
# endif