diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-12 17:39:45 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-12 17:39:45 -0400 |
commit | 4d8012b60e0f0e0217e65f67da7d97276d1824e9 (patch) | |
tree | 2918488b073b5cfd9b3d8ddc8020f82e5530dfbc | |
parent | f4154ea039bbf45c52840b30c68143a2dc28d4b4 (diff) |
[GFS2] Fix bug which was causing postmark to fail
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>
-rw-r--r-- | fs/gfs2/dir.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 01f89c727cc8..fe6c5adc5df0 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c | |||
@@ -1511,7 +1511,7 @@ static int dir_new_leaf(struct inode *inode, const struct qstr *name) | |||
1511 | brelse(obh); | 1511 | brelse(obh); |
1512 | return -ENOSPC; | 1512 | return -ENOSPC; |
1513 | } | 1513 | } |
1514 | oleaf->lf_next = cpu_to_be64(bn); | 1514 | oleaf->lf_next = cpu_to_be64(bh->b_blocknr); |
1515 | brelse(bh); | 1515 | brelse(bh); |
1516 | brelse(obh); | 1516 | brelse(obh); |
1517 | 1517 | ||
@@ -1950,8 +1950,7 @@ int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip) | |||
1950 | * Returns: 1 if alloc required, 0 if not, -ve on error | 1950 | * Returns: 1 if alloc required, 0 if not, -ve on error |
1951 | */ | 1951 | */ |
1952 | 1952 | ||
1953 | int gfs2_diradd_alloc_required(struct inode *inode, | 1953 | int gfs2_diradd_alloc_required(struct inode *inode, const struct qstr *name) |
1954 | const struct qstr *name) | ||
1955 | { | 1954 | { |
1956 | struct gfs2_dirent *dent; | 1955 | struct gfs2_dirent *dent; |
1957 | struct buffer_head *bh; | 1956 | struct buffer_head *bh; |