Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127633
b: refs/heads/master
c: f156596
h: refs/heads/master
i:
  127631: 65ee349
v: v3
  • Loading branch information
roel kluin authored and Linus Torvalds committed Jan 8, 2009
1 parent 8e9d400 commit e7b038d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 921d58c0e6992f74d3a48180604a298f115d2dee
refs/heads/master: f15659628b43b27c20447c731456c39cbec973e9
12 changes: 6 additions & 6 deletions trunk/fs/romfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static mode_t romfs_modemap[] =
static struct inode *
romfs_iget(struct super_block *sb, unsigned long ino)
{
int nextfh;
int nextfh, ret;
struct romfs_inode ri;
struct inode *i;

Expand Down Expand Up @@ -526,11 +526,11 @@ romfs_iget(struct super_block *sb, unsigned long ino)
i->i_mtime.tv_nsec = i->i_atime.tv_nsec = i->i_ctime.tv_nsec = 0;

/* Precalculate the data offset */
ino = romfs_strnlen(i, ino+ROMFH_SIZE, ROMFS_MAXFN);
if (ino >= 0)
ino = ((ROMFH_SIZE+ino+1+ROMFH_PAD)&ROMFH_MASK);
else
ino = 0;
ret = romfs_strnlen(i, ino + ROMFH_SIZE, ROMFS_MAXFN);
if (ret >= 0)
ino = (ROMFH_SIZE + ret + 1 + ROMFH_PAD) & ROMFH_MASK;
else
ino = 0;

ROMFS_I(i)->i_metasize = ino;
ROMFS_I(i)->i_dataoffset = ino+(i->i_ino&ROMFH_MASK);
Expand Down

0 comments on commit e7b038d

Please sign in to comment.