Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206357
b: refs/heads/master
c: 364ec2d
h: refs/heads/master
i:
  206355: b9c2e40
v: v3
  • Loading branch information
Ryusuke Konishi committed Jul 23, 2010
1 parent 4b9ae99 commit 44ecaf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05d0e94b66dbdf9d90371b39dc7a6b390ba74d41
refs/heads/master: 364ec2d700223b965620ff4d5031a3665d195873
6 changes: 1 addition & 5 deletions trunk/fs/nilfs2/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,17 +555,13 @@ static int nilfs_btree_lookup(const struct nilfs_bmap *btree,
__u64 key, int level, __u64 *ptrp)
{
struct nilfs_btree_path *path;
__u64 ptr;
int ret;

path = nilfs_btree_alloc_path();
if (path == NULL)
return -ENOMEM;

ret = nilfs_btree_do_lookup(btree, path, key, &ptr, level);

if (ptrp != NULL)
*ptrp = ptr;
ret = nilfs_btree_do_lookup(btree, path, key, ptrp, level);

nilfs_btree_free_path(path);

Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/nilfs2/direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ static int nilfs_direct_lookup(const struct nilfs_bmap *direct,
if (ptr == NILFS_BMAP_INVALID_PTR)
return -ENOENT;

if (ptrp != NULL)
*ptrp = ptr;
*ptrp = ptr;
return 0;
}

Expand Down

0 comments on commit 44ecaf9

Please sign in to comment.