vxfs_lookup.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) vxfs_lookup.c (00cd8dd3bf95f2cc8435b4cac01d9995635c6d0b)
1/*
2 * Copyright (c) 2000-2001 Christoph Hellwig.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 34 unchanged lines hidden (view full) ---

43#include "vxfs_extern.h"
44
45/*
46 * Number of VxFS blocks per page.
47 */
48#define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_CACHE_SIZE / (sbp)->s_blocksize))
49
50
1/*
2 * Copyright (c) 2000-2001 Christoph Hellwig.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 34 unchanged lines hidden (view full) ---

43#include "vxfs_extern.h"
44
45/*
46 * Number of VxFS blocks per page.
47 */
48#define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_CACHE_SIZE / (sbp)->s_blocksize))
49
50
51static struct dentry * vxfs_lookup(struct inode *, struct dentry *, struct nameidata *);
51static struct dentry * vxfs_lookup(struct inode *, struct dentry *, unsigned int);
52static int vxfs_readdir(struct file *, void *, filldir_t);
53
54const struct inode_operations vxfs_dir_inode_ops = {
55 .lookup = vxfs_lookup,
56};
57
58const struct file_operations vxfs_dir_operations = {
59 .llseek = generic_file_llseek,

--- 138 unchanged lines hidden (view full) ---

198 * vxfs_lookup tries to lookup the pathname component described
199 * by @dp in @dip.
200 *
201 * Returns:
202 * A NULL-pointer on success, else an negative error code encoded
203 * in the return pointer.
204 */
205static struct dentry *
52static int vxfs_readdir(struct file *, void *, filldir_t);
53
54const struct inode_operations vxfs_dir_inode_ops = {
55 .lookup = vxfs_lookup,
56};
57
58const struct file_operations vxfs_dir_operations = {
59 .llseek = generic_file_llseek,

--- 138 unchanged lines hidden (view full) ---

198 * vxfs_lookup tries to lookup the pathname component described
199 * by @dp in @dip.
200 *
201 * Returns:
202 * A NULL-pointer on success, else an negative error code encoded
203 * in the return pointer.
204 */
205static struct dentry *
206vxfs_lookup(struct inode *dip, struct dentry *dp, struct nameidata *nd)
206vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags)
207{
208 struct inode *ip = NULL;
209 ino_t ino;
210
211 if (dp->d_name.len > VXFS_NAMELEN)
212 return ERR_PTR(-ENAMETOOLONG);
213
214 ino = vxfs_inode_by_name(dip, dp);

--- 108 unchanged lines hidden ---
207{
208 struct inode *ip = NULL;
209 ino_t ino;
210
211 if (dp->d_name.len > VXFS_NAMELEN)
212 return ERR_PTR(-ENAMETOOLONG);
213
214 ino = vxfs_inode_by_name(dip, dp);

--- 108 unchanged lines hidden ---