Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229154
b: refs/heads/master
c: 4651c59
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara committed Jan 6, 2011
1 parent 2eaf7a7 commit 5311b4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 8754a3f718f08dc21b3c5eccd044f612d4bc1ab1
refs/heads/master: 4651c5900e7a3c84d4b70412f8bbc40c1bcb50cf
16 changes: 10 additions & 6 deletions trunk/fs/udf/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,15 +471,19 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir,
f_pos >> dir->i_sb->s_blocksize_bits, 1, err);
if (!fibh->ebh)
goto out_err;
/* Extents could have been merged, invalidate our position */
brelse(epos.bh);
epos.bh = NULL;
epos.block = dinfo->i_location;
epos.offset = udf_file_entry_alloc_offset(dir);

if (!fibh->soffset) {
if (udf_next_aext(dir, &epos, &eloc, &elen, 1) ==
(EXT_RECORDED_ALLOCATED >> 30)) {
block = eloc.logicalBlockNum + ((elen - 1) >>
/* Find the freshly allocated block */
while (udf_next_aext(dir, &epos, &eloc, &elen, 1) ==
(EXT_RECORDED_ALLOCATED >> 30))
;
block = eloc.logicalBlockNum + ((elen - 1) >>
dir->i_sb->s_blocksize_bits);
} else
block++;

brelse(fibh->sbh);
fibh->sbh = fibh->ebh;
fi = (struct fileIdentDesc *)(fibh->sbh->b_data);
Expand Down

0 comments on commit 5311b4d

Please sign in to comment.