X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fexportfs%2Fexpfs.c;h=93e77c3d24906af5156254b29ee1cd3e39ba1ac3;hb=6a3d039078b337856bd3cfa436be3b1b223440a5;hp=b06b54f1bbbbda611e39252d2df5a86b6afaa3c8;hpb=0a0fc0ddbe732779366ab6b1b879f62195e65967;p=powerpc.git diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index b06b54f1bb..93e77c3d24 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c @@ -102,7 +102,7 @@ find_exported_dentry(struct super_block *sb, void *obj, void *parent, if (acceptable(context, result)) return result; if (S_ISDIR(result->d_inode->i_mode)) { - /* there is no other dentry, so fail */ + err = -EACCES; goto err_result; } @@ -315,7 +315,7 @@ struct getdents_callback { * the name matching the specified inode number. */ static int filldir_one(void * __buf, const char * name, int len, - loff_t pos, ino_t ino, unsigned int d_type) + loff_t pos, u64 ino, unsigned int d_type) { struct getdents_callback *buf = __buf; int result = 0;