4 * Copyright (C) 2002 Cluster File Systems, Inc.
6 * This code is issued under the GNU General Public License.
7 * See the file COPYING in this distribution
9 * by Peter Braam <braam@clusterfs.com>
10 * and Andreas Dilger <adilger@clusterfs.com>
15 #include <linux/version.h>
17 #include <asm/unistd.h>
19 #define DEBUG_SUBSYSTEM S_FILTER
21 #include <linux/lustre_mds.h>
22 #include <linux/lustre_lib.h>
23 #include <linux/lustre_net.h>
25 /* utility to make a directory */
26 int simple_mkdir(struct dentry *dir, char *name, int mode)
28 struct dentry *dchild;
32 dchild = lookup_one_len(name, dir, strlen(name));
34 RETURN(PTR_ERR(dchild));
37 GOTO(out, err = -EEXIST);
39 err = vfs_mkdir(dir->d_inode, dchild, mode);