X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Faffs%2Fnamei.c;h=a42143ca01698e1ba64769d5d9eb1bc0aa095320;hb=refs%2Fheads%2Fvserver;hp=f2cbba3b7578c6ea5462ecce0d5683a33b594429;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/affs/namei.c b/fs/affs/namei.c index f2cbba3b7..a42143ca0 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c @@ -8,23 +8,10 @@ * (C) 1991 Linus Torvalds - minix filesystem */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include +#include "affs.h" typedef int (*toupper_t)(int); -extern struct inode_operations affs_symlink_inode_operations; - static int affs_toupper(int ch); static int affs_hash_dentry(struct dentry *, struct qstr *); static int affs_compare_dentry(struct dentry *, struct qstr *, struct qstr *); @@ -37,7 +24,7 @@ struct dentry_operations affs_dentry_operations = { .d_compare = affs_compare_dentry, }; -struct dentry_operations affs_intl_dentry_operations = { +static struct dentry_operations affs_intl_dentry_operations = { .d_hash = affs_intl_hash_dentry, .d_compare = affs_intl_compare_dentry, }; @@ -429,10 +416,9 @@ affs_rename(struct inode *old_dir, struct dentry *old_dentry, return retval; } - retval = -EIO; bh = affs_bread(sb, old_dentry->d_inode->i_ino); if (!bh) - goto done; + return -EIO; /* Remove header from its parent directory. */ affs_lock_dir(old_dir);