Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96154
b: refs/heads/master
c: 9afadc4
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara authored and Jan Kara committed May 7, 2008
1 parent a68501d commit ca10e06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 221e583a735fc5d879d83c2a76b8ee5afcbdf146
refs/heads/master: 9afadc4b1fd25337003832c9a4668f9bd42cdda9
5 changes: 3 additions & 2 deletions trunk/fs/udf/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir,
uint16_t liu;
int block;
kernel_lb_addr eloc;
uint32_t elen;
uint32_t elen = 0;
sector_t offset;
struct extent_position epos = {};
struct udf_inode_info *dinfo;
Expand Down Expand Up @@ -406,7 +406,8 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir,
}

add:
if (dinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB) {
/* Is there any extent whose size we need to round up? */
if (dinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB && elen) {
elen = (elen + sb->s_blocksize - 1) & ~(sb->s_blocksize - 1);
if (dinfo->i_alloc_type == ICBTAG_FLAG_AD_SHORT)
epos.offset -= sizeof(short_ad);
Expand Down

0 comments on commit ca10e06

Please sign in to comment.