diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-12-11 12:10:06 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-20 18:50:02 -0500 |
commit | 1ac12b4b6d707937f9de6d09622823b2fd0c93ef (patch) | |
tree | 7ac3f66abfcce206615abe9effd9e55f26c117a9 /drivers | |
parent | 7955119e02d9fdf78a39fba8073f19ca6152613e (diff) |
vfs: turn is_dir argument to kern_path_create into a lookup_flags arg
Where we can pass in LOOKUP_DIRECTORY or LOOKUP_REVAL. Any other flags
passed in here are currently ignored.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/devtmpfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index 147d1a4dd269..17cf7cad601e 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c | |||
@@ -148,7 +148,7 @@ static int dev_mkdir(const char *name, umode_t mode) | |||
148 | struct path path; | 148 | struct path path; |
149 | int err; | 149 | int err; |
150 | 150 | ||
151 | dentry = kern_path_create(AT_FDCWD, name, &path, 1); | 151 | dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); |
152 | if (IS_ERR(dentry)) | 152 | if (IS_ERR(dentry)) |
153 | return PTR_ERR(dentry); | 153 | return PTR_ERR(dentry); |
154 | 154 | ||