summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorSteven Whitehouse2006-04-24 16:07:13 +0200
committerSteven Whitehouse2006-04-24 16:07:13 +0200
commit61e085a88cb59232eb8ff5b446d70491c7bf2c68 (patch)
treea1e0bb72b6a79ee8700fefc8190e48a6c78d33cd /fs/gfs2/bmap.c
parent[GFS2] Move BUG() back into the header file (diff)
downloadkernel-qcow2-linux-61e085a88cb59232eb8ff5b446d70491c7bf2c68.tar.gz
kernel-qcow2-linux-61e085a88cb59232eb8ff5b446d70491c7bf2c68.tar.xz
kernel-qcow2-linux-61e085a88cb59232eb8ff5b446d70491c7bf2c68.zip
[GFS2] Tidy up dir code as per Christoph Hellwig's comments
1. Comment whitespace fix 2. Removed unused header files from dir.c 3. Split the gfs2_dir_get_buffer() function into two functions Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index c7723119acb6..68bc3be09c98 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -111,7 +111,7 @@ int gfs2_unstuff_dinode(struct gfs2_inode *ip, gfs2_unstuffer_t unstuffer,
if (isdir) {
block = gfs2_alloc_meta(ip);
- error = gfs2_dir_get_buffer(ip, block, 1, &bh);
+ error = gfs2_dir_get_new_buffer(ip, block, &bh);
if (error)
goto out_brelse;
gfs2_buffer_copy_tail(bh,