]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/nfs/write.c
Merge branch 'nfs-for-2.6.33'
[karo-tx-linux.git] / fs / nfs / write.c
index 6d40a538e3dbdf7ae6e4bd2556a158539ef613fe..d171696017f4befe44f85ffd79b138f88db7c214 100644 (file)
@@ -178,7 +178,7 @@ static int wb_priority(struct writeback_control *wbc)
 {
        if (wbc->for_reclaim)
                return FLUSH_HIGHPRI | FLUSH_STABLE;
-       if (wbc->for_kupdate)
+       if (wbc->for_kupdate || wbc->for_background)
                return FLUSH_LOWPRI;
        return 0;
 }
@@ -774,7 +774,7 @@ int nfs_updatepage(struct file *file, struct page *page,
         */
        if (nfs_write_pageuptodate(page, inode) &&
                        inode->i_flock == NULL &&
-                       !(file->f_flags & O_SYNC)) {
+                       !(file->f_flags & O_DSYNC)) {
                count = max(count + offset, nfs_page_length(page));
                offset = 0;
        }