dir.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | dir.c (00cd8dd3bf95f2cc8435b4cac01d9995635c6d0b) |
---|---|
1/* 2 * OMFS (as used by RIO Karma) directory operations. 3 * Copyright (C) 2005 Bob Copeland <me@bobcopeland.com> 4 * Released under GPL v2. 5 */ 6 7#include <linux/fs.h> 8#include <linux/ctype.h> --- 277 unchanged lines hidden (view full) --- 286 287static int omfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, 288 struct nameidata *nd) 289{ 290 return omfs_add_node(dir, dentry, mode | S_IFREG); 291} 292 293static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry, | 1/* 2 * OMFS (as used by RIO Karma) directory operations. 3 * Copyright (C) 2005 Bob Copeland <me@bobcopeland.com> 4 * Released under GPL v2. 5 */ 6 7#include <linux/fs.h> 8#include <linux/ctype.h> --- 277 unchanged lines hidden (view full) --- 286 287static int omfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, 288 struct nameidata *nd) 289{ 290 return omfs_add_node(dir, dentry, mode | S_IFREG); 291} 292 293static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry, |
294 struct nameidata *nd) | 294 unsigned int flags) |
295{ 296 struct buffer_head *bh; 297 struct inode *inode = NULL; 298 299 if (dentry->d_name.len > OMFS_NAMELEN) 300 return ERR_PTR(-ENAMETOOLONG); 301 302 bh = omfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len); --- 173 unchanged lines hidden --- | 295{ 296 struct buffer_head *bh; 297 struct inode *inode = NULL; 298 299 if (dentry->d_name.len > OMFS_NAMELEN) 300 return ERR_PTR(-ENAMETOOLONG); 301 302 bh = omfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len); --- 173 unchanged lines hidden --- |