commit | 74931da7a6d341c137f1564a47f36fda68ad21e6 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jul 14 17:43:25 2013 +0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sun Jul 14 17:43:25 2013 +0400 |
tree | 392892e8b292977d8e15ec49ace7eb58db40b655 | |
parent | ec193cf5af0a8dc35c3975ca0aca8e7b7f3e3464 [diff] [blame] |
make simple_lookup() usable for filesystems that set ->s_d_op Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/libfs.c b/fs/libfs.c index c3a0837..3a3a9b5 100644 --- a/fs/libfs.c +++ b/fs/libfs.c
@@ -61,7 +61,8 @@ if (dentry->d_name.len > NAME_MAX) return ERR_PTR(-ENAMETOOLONG); - d_set_d_op(dentry, &simple_dentry_operations); + if (!dentry->d_sb->s_d_op) + d_set_d_op(dentry, &simple_dentry_operations); d_add(dentry, NULL); return NULL; }