]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/ocfs2/quota_global.c
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / fs / ocfs2 / quota_global.c
index 7a922190a8c727b6dba31a1575db2e29646d5246..eda83487c9ec7d05904b1a10555cf9fb4d59849e 100644 (file)
@@ -728,7 +728,7 @@ static int ocfs2_release_dquot(struct dquot *dquot)
 
        mutex_lock(&dquot->dq_lock);
        /* Check whether we are not racing with some other dqget() */
-       if (atomic_read(&dquot->dq_count) > 1)
+       if (dquot_is_busy(dquot))
                goto out;
        /* Running from downconvert thread? Postpone quota processing to wq */
        if (current == osb->dc_task) {