diff options
-rw-r--r-- | fs/ocfs2/aops.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index c20360002f29..f959a1532767 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -1898,10 +1898,14 @@ out_commit: | |||
1898 | out: | 1898 | out: |
1899 | ocfs2_free_write_ctxt(wc); | 1899 | ocfs2_free_write_ctxt(wc); |
1900 | 1900 | ||
1901 | if (data_ac) | 1901 | if (data_ac) { |
1902 | ocfs2_free_alloc_context(data_ac); | 1902 | ocfs2_free_alloc_context(data_ac); |
1903 | if (meta_ac) | 1903 | data_ac = NULL; |
1904 | } | ||
1905 | if (meta_ac) { | ||
1904 | ocfs2_free_alloc_context(meta_ac); | 1906 | ocfs2_free_alloc_context(meta_ac); |
1907 | meta_ac = NULL; | ||
1908 | } | ||
1905 | 1909 | ||
1906 | if (ret == -ENOSPC && try_free) { | 1910 | if (ret == -ENOSPC && try_free) { |
1907 | /* | 1911 | /* |