aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-07-31 11:19:40 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2009-08-17 06:05:31 -0400
commit6050b9c74f24513191fc6b5e4b3583e38d146bf5 (patch)
treeff77010d008e55f6091df69519182e9f88a78215 /fs/gfs2/inode.c
parent440d6da207e9eef2b576331cfedd5ecae9068663 (diff)
GFS2: Improve error handling in inode allocation
A little while back, block allocation was given some improved error handling which meant that -EIO was returned in the case of there being a problem in the resource group data. In addition a message is printed explaning what went wrong and how to fix it. This extends that error handling so that it also covers inode allocation too. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 2f94bd723698..f9b4fe886540 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -731,7 +731,7 @@ static int alloc_dinode(struct gfs2_inode *dip, u64 *no_addr, u64 *generation)
731 if (error) 731 if (error)
732 goto out_ipreserv; 732 goto out_ipreserv;
733 733
734 *no_addr = gfs2_alloc_di(dip, generation); 734 error = gfs2_alloc_di(dip, no_addr, generation);
735 735
736 gfs2_trans_end(sdp); 736 gfs2_trans_end(sdp);
737 737