namei.c (c58310bf4933986513020fa90b4190c7492995ae) namei.c (dca3c33652e437ed02c30ed3eca3cecd0cc00838)
1/*
2 * linux/fs/affs/namei.c
3 *
4 * (c) 1996 Hans-Joachim Widmaier - Rewritten
5 *
6 * (C) 1993 Ray Burr - Modified for Amiga FFS filesystem.
7 *
8 * (C) 1991 Linus Torvalds - minix filesystem

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

229 dentry->d_op = AFFS_SB(sb)->s_flags & SF_INTL ? &affs_intl_dentry_operations : &affs_dentry_operations;
230 d_add(dentry, inode);
231 return NULL;
232}
233
234int
235affs_unlink(struct inode *dir, struct dentry *dentry)
236{
1/*
2 * linux/fs/affs/namei.c
3 *
4 * (c) 1996 Hans-Joachim Widmaier - Rewritten
5 *
6 * (C) 1993 Ray Burr - Modified for Amiga FFS filesystem.
7 *
8 * (C) 1991 Linus Torvalds - minix filesystem

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

229 dentry->d_op = AFFS_SB(sb)->s_flags & SF_INTL ? &affs_intl_dentry_operations : &affs_dentry_operations;
230 d_add(dentry, inode);
231 return NULL;
232}
233
234int
235affs_unlink(struct inode *dir, struct dentry *dentry)
236{
237 pr_debug("AFFS: unlink(dir=%d, \"%.*s\")\n", (u32)dir->i_ino,
237 pr_debug("AFFS: unlink(dir=%d, %lu \"%.*s\")\n", (u32)dir->i_ino,
238 dentry->d_inode->i_ino,
238 (int)dentry->d_name.len, dentry->d_name.name);
239
240 return affs_remove_header(dentry);
241}
242
243int
244affs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd)
245{

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

297 return error;
298 }
299 return 0;
300}
301
302int
303affs_rmdir(struct inode *dir, struct dentry *dentry)
304{
239 (int)dentry->d_name.len, dentry->d_name.name);
240
241 return affs_remove_header(dentry);
242}
243
244int
245affs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd)
246{

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

298 return error;
299 }
300 return 0;
301}
302
303int
304affs_rmdir(struct inode *dir, struct dentry *dentry)
305{
305 pr_debug("AFFS: rmdir(dir=%u, \"%.*s\")\n", (u32)dir->i_ino,
306 pr_debug("AFFS: rmdir(dir=%u, %lu \"%.*s\")\n", (u32)dir->i_ino,
307 dentry->d_inode->i_ino,
306 (int)dentry->d_name.len, dentry->d_name.name);
307
308 return affs_remove_header(dentry);
309}
310
311int
312affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname)
313{

--- 127 unchanged lines hidden ---
308 (int)dentry->d_name.len, dentry->d_name.name);
309
310 return affs_remove_header(dentry);
311}
312
313int
314affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname)
315{

--- 127 unchanged lines hidden ---