dout(5, "dir_lookup in dir %p dentry %p '%s'\n", dir, dentry, dentry->d_name.name);
/* open(|create) intent? */
- if (nd->flags & LOOKUP_OPEN)
- return ceph_lookup_open(dir, dentry, nd);
+ if (nd->flags & LOOKUP_OPEN) {
+ err = ceph_lookup_open(dir, dentry, nd);
+ return ERR_PTR(err);
+ }
/* regular lookup */
path = ceph_build_dentry_path(dentry, &pathlen);
extern int ceph_debug_mdsc;
extern int ceph_debug_osdc;
-# define dout(x, args...) do { if (x <= (ceph_debug ? ceph_debug : DOUT_VAR)) printk(KERN_INFO "ceph_" DOUT_PREFIX args); } while (0);
-# define derr(x, args...) do { if (x <= (ceph_debug ? ceph_debug : DOUT_VAR)) printk(KERN_ERR "ceph_" DOUT_PREFIX args); } while (0);
+# define dout(x, args...) do { if (x <= (ceph_debug ? ceph_debug : DOUT_VAR)) printk(KERN_INFO "ceph_" DOUT_PREFIX args); } while (0)
+# define derr(x, args...) do { if (x <= (ceph_debug ? ceph_debug : DOUT_VAR)) printk(KERN_ERR "ceph_" DOUT_PREFIX args); } while (0)
#define CEPH_SUPER_MAGIC 0xc364c0de /* whatev */