Skip to content

Commit

Permalink
[GFS2] Fix bug which was causing postmark to fail
Browse files Browse the repository at this point in the history
A typo in the directory code was causing postmark to fail
somewhere in the allocation code, since it was unable to
find newly allocated directory leaf blocks under certain
circumstances.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Apr 12, 2006
1 parent f4154ea commit 4d8012b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/gfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ static int dir_new_leaf(struct inode *inode, const struct qstr *name)
brelse(obh);
return -ENOSPC;
}
oleaf->lf_next = cpu_to_be64(bn);
oleaf->lf_next = cpu_to_be64(bh->b_blocknr);
brelse(bh);
brelse(obh);

Expand Down Expand Up @@ -1950,8 +1950,7 @@ int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip)
* Returns: 1 if alloc required, 0 if not, -ve on error
*/

int gfs2_diradd_alloc_required(struct inode *inode,
const struct qstr *name)
int gfs2_diradd_alloc_required(struct inode *inode, const struct qstr *name)
{
struct gfs2_dirent *dent;
struct buffer_head *bh;
Expand Down

0 comments on commit 4d8012b

Please sign in to comment.