aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorAbhi Das <adas@redhat.com>2014-03-31 10:33:17 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2014-03-31 16:41:39 +0100
commit059788039f1e6343f34f46d202f8d9f2158c2783 (patch)
treef122d85bf11e42c4b1babb1b720df747386ba95d /fs/gfs2/incore.h
parentGFS2: Fix return value in slot_get() (diff)
downloadlinux-dev-059788039f1e6343f34f46d202f8d9f2158c2783.tar.xz
linux-dev-059788039f1e6343f34f46d202f8d9f2158c2783.zip
GFS2: Fix uninitialized VFS inode in gfs2_create_inode
When gfs2_create_inode() fails due to quota violation, the VFS inode is not completely uninitialized. This can cause a list corruption error. This patch correctly uninitializes the VFS inode when a quota violation occurs in the gfs2_create_inode codepath. Resolves: rhbz#1059808 Signed-off-by: Abhi Das <adas@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index ef26ed98e778..bdf70c18610c 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -371,6 +371,7 @@ enum {
GIF_ALLOC_FAILED = 2,
GIF_SW_PAGED = 3,
GIF_ORDERED = 4,
+ GIF_FREE_VFS_INODE = 5,
};
struct gfs2_inode {