Commit e50e1b0f authored by Linus Torvalds's avatar Linus Torvalds

Merge http://jfs.bkbits.net/linux-2.5

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 5d6af116 d5e567ce
...@@ -490,11 +490,11 @@ static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, ...@@ -490,11 +490,11 @@ static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn,
} }
/* /*
* get_index() * read_index()
* *
* reads a directory table slot * reads a directory table slot
*/ */
static int get_index(struct inode *ip, u32 index, static int read_index(struct inode *ip, u32 index,
struct dir_table_slot * dirtab_slot) struct dir_table_slot * dirtab_slot)
{ {
struct metapage *mp = 0; struct metapage *mp = 0;
...@@ -2978,7 +2978,7 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir) ...@@ -2978,7 +2978,7 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
return 0; return 0;
} }
repeat: repeat:
rc = get_index(ip, dir_index, &dirtab_slot); rc = read_index(ip, dir_index, &dirtab_slot);
if (rc) { if (rc) {
filp->f_pos = DIREND; filp->f_pos = DIREND;
return rc; return rc;
......
...@@ -478,12 +478,12 @@ int readSuper(struct super_block *sb, struct buffer_head **bpp) ...@@ -478,12 +478,12 @@ int readSuper(struct super_block *sb, struct buffer_head **bpp)
{ {
/* read in primary superblock */ /* read in primary superblock */
*bpp = sb_bread(sb, SUPER1_OFF >> sb->s_blocksize_bits); *bpp = sb_bread(sb, SUPER1_OFF >> sb->s_blocksize_bits);
if (bpp) if (*bpp)
return 0; return 0;
/* read in secondary/replicated superblock */ /* read in secondary/replicated superblock */
*bpp = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits); *bpp = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits);
if (bpp) if (*bpp)
return 0; return 0;
return -EIO; return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment