]> err.no Git - linux-2.6/blobdiff - fs/gfs2/ops_address.c
[GFS2] Set drop_count to 0 (off) by default
[linux-2.6] / fs / gfs2 / ops_address.c
index b3b7e8475359d0feae533b9f80f2229e1ae6993e..90c287932d58328dafcc1a0aaf11bc7636fee66d 100644 (file)
@@ -507,7 +507,9 @@ static int gfs2_commit_write(struct file *file, struct page *page,
                gfs2_quota_unlock(ip);
                gfs2_alloc_put(ip);
        }
+       unlock_page(page);
        gfs2_glock_dq_m(1, &ip->i_gh);
+       lock_page(page);
        gfs2_holder_uninit(&ip->i_gh);
        return 0;
 
@@ -520,7 +522,9 @@ fail_endtrans:
                gfs2_quota_unlock(ip);
                gfs2_alloc_put(ip);
        }
+       unlock_page(page);
        gfs2_glock_dq_m(1, &ip->i_gh);
+       lock_page(page);
        gfs2_holder_uninit(&ip->i_gh);
 fail_nounlock:
        ClearPageUptodate(page);