diff options
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r-- | fs/gfs2/dir.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 8aaeb07a07b5..259b088cfc4c 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c | |||
@@ -1854,14 +1854,9 @@ static int leaf_dealloc(struct gfs2_inode *dip, u32 index, u32 len, | |||
1854 | if (!ht) | 1854 | if (!ht) |
1855 | return -ENOMEM; | 1855 | return -ENOMEM; |
1856 | 1856 | ||
1857 | if (!gfs2_qadata_get(dip)) { | ||
1858 | error = -ENOMEM; | ||
1859 | goto out; | ||
1860 | } | ||
1861 | |||
1862 | error = gfs2_quota_hold(dip, NO_QUOTA_CHANGE, NO_QUOTA_CHANGE); | 1857 | error = gfs2_quota_hold(dip, NO_QUOTA_CHANGE, NO_QUOTA_CHANGE); |
1863 | if (error) | 1858 | if (error) |
1864 | goto out_put; | 1859 | goto out; |
1865 | 1860 | ||
1866 | /* Count the number of leaves */ | 1861 | /* Count the number of leaves */ |
1867 | bh = leaf_bh; | 1862 | bh = leaf_bh; |
@@ -1942,8 +1937,6 @@ out_rg_gunlock: | |||
1942 | out_rlist: | 1937 | out_rlist: |
1943 | gfs2_rlist_free(&rlist); | 1938 | gfs2_rlist_free(&rlist); |
1944 | gfs2_quota_unhold(dip); | 1939 | gfs2_quota_unhold(dip); |
1945 | out_put: | ||
1946 | gfs2_qadata_put(dip); | ||
1947 | out: | 1940 | out: |
1948 | kfree(ht); | 1941 | kfree(ht); |
1949 | return error; | 1942 | return error; |