From da2e78ae73129188f1324615c6c78ee0dddb36ed Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 31 May 2005 21:39:59 +0000 Subject: [PATCH] - minor fixes in smfs to support raw lookups --- lustre/smfs/cache.c | 4 ++++ lustre/smfs/dir.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lustre/smfs/cache.c b/lustre/smfs/cache.c index e154bb6..ff10281 100644 --- a/lustre/smfs/cache.c +++ b/lustre/smfs/cache.c @@ -103,6 +103,10 @@ static void setup_iops(struct inode *cache_inode, iops->listxattr = cache_iops->listxattr; if (cache_inode->i_op->removexattr) iops->removexattr = cache_iops->removexattr; +#if HAVE_LOOKUP_RAW + if (cache_inode->i_op->lookup_raw) + iops->lookup_raw = cache_iops->lookup_raw; +#endif } } diff --git a/lustre/smfs/dir.c b/lustre/smfs/dir.c index 3dde19f..4130858 100644 --- a/lustre/smfs/dir.c +++ b/lustre/smfs/dir.c @@ -307,6 +307,7 @@ static struct dentry *smfs_lookup(struct inode *dir, struct dentry *dentry, RETURN(rdentry); } +#if HAVE_LOOKUP_RAW static int smfs_lookup_raw(struct inode *dir, const char *name, int len, ino_t *data) { @@ -324,6 +325,7 @@ static int smfs_lookup_raw(struct inode *dir, const char *name, RETURN(rc); } +#endif static int smfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) @@ -769,7 +771,9 @@ exit: struct inode_operations smfs_dir_iops = { create: smfs_create, lookup: smfs_lookup, +#if HAVE_LOOKUP_RAW lookup_raw: smfs_lookup_raw, +#endif link: smfs_link, /* BKL held */ unlink: smfs_unlink, /* BKL held */ symlink: smfs_symlink, /* BKL held */ -- 1.8.3.1