diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-10 10:46:03 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-10 11:13:13 -0500 |
commit | 0b2c4e39c014219ef73f05ab580c284bf8e6af0a (patch) | |
tree | 4447c0dbab25dc209f267c17123845b1d3bb8273 /fs/coda/coda_fs_i.h | |
parent | 3e25eb9c4bb649acdddb333d10774b640190f727 (diff) | |
download | blackbird-op-linux-0b2c4e39c014219ef73f05ab580c284bf8e6af0a.tar.gz blackbird-op-linux-0b2c4e39c014219ef73f05ab580c284bf8e6af0a.zip |
coda: deal correctly with allocation failure from coda_cnode_makectl()
lookup should fail with ENOMEM, not silently make dentry negative.
Switched to saner calling conventions, while we are at it.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/coda/coda_fs_i.h')
-rw-r--r-- | fs/coda/coda_fs_i.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/coda_fs_i.h b/fs/coda/coda_fs_i.h index e35071b1de0e..1c17446f1afe 100644 --- a/fs/coda/coda_fs_i.h +++ b/fs/coda/coda_fs_i.h @@ -51,7 +51,7 @@ struct coda_file_info { int coda_cnode_make(struct inode **, struct CodaFid *, struct super_block *); struct inode *coda_iget(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr); -int coda_cnode_makectl(struct inode **inode, struct super_block *sb); +struct inode *coda_cnode_makectl(struct super_block *sb); struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb); void coda_replace_fid(struct inode *, struct CodaFid *, struct CodaFid *); |