summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/dir.c
diff options
context:
space:
mode:
authorSteven Whitehouse2006-04-12 23:39:45 +0200
committerSteven Whitehouse2006-04-12 23:39:45 +0200
commit4d8012b60e0f0e0217e65f67da7d97276d1824e9 (patch)
tree2918488b073b5cfd9b3d8ddc8020f82e5530dfbc /fs/gfs2/dir.c
parent[GFS2] Update journal accounting code. (diff)
downloadkernel-qcow2-linux-4d8012b60e0f0e0217e65f67da7d97276d1824e9.tar.gz
kernel-qcow2-linux-4d8012b60e0f0e0217e65f67da7d97276d1824e9.tar.xz
kernel-qcow2-linux-4d8012b60e0f0e0217e65f67da7d97276d1824e9.zip
[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>
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r--fs/gfs2/dir.c5
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)
brelse(obh);
return -ENOSPC;
}
- oleaf->lf_next = cpu_to_be64(bn);
+ oleaf->lf_next = cpu_to_be64(bh->b_blocknr);
brelse(bh);
brelse(obh);
@@ -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;