Skip to content

Commit

Permalink
coda: use ilookup5
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jan Harkes authored and Linus Torvalds committed Jul 19, 2007
1 parent fac1f0e commit ed31a7d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/coda/cnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ static int coda_set_inode(struct inode *inode, void *data)
return 0;
}

static int coda_fail_inode(struct inode *inode, void *data)
{
return -1;
}

struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid,
struct coda_vattr * attr)
{
Expand Down Expand Up @@ -141,7 +136,7 @@ struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb)
return NULL;
}

inode = iget5_locked(sb, hash, coda_test_inode, coda_fail_inode, fid);
inode = ilookup5(sb, hash, coda_test_inode, fid);
if ( !inode )
return NULL;

Expand Down

0 comments on commit ed31a7d

Please sign in to comment.