The patch titled
     Reiser4 portion of zero_user cleanup patch
has been added to the -mm tree.  Its filename is
     reiser4-portion-of-zero_user-cleanup-patch.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Reiser4 portion of zero_user cleanup patch
From: Christoph Lameter <[EMAIL PROTECTED]>

Reiser4 only exists in mm. So split this off.

Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 fs/reiser4/plugin/file/cryptcompress.c   |    8 +++-----
 fs/reiser4/plugin/file/file.c            |    4 ++--
 fs/reiser4/plugin/item/ctail.c           |    8 ++++----
 fs/reiser4/plugin/item/extent_file_ops.c |    4 ++--
 fs/reiser4/plugin/item/tail.c            |    3 +--
 5 files changed, 12 insertions(+), 15 deletions(-)

diff -puN 
fs/reiser4/plugin/file/cryptcompress.c~reiser4-portion-of-zero_user-cleanup-patch
 fs/reiser4/plugin/file/cryptcompress.c
--- 
a/fs/reiser4/plugin/file/cryptcompress.c~reiser4-portion-of-zero_user-cleanup-patch
+++ a/fs/reiser4/plugin/file/cryptcompress.c
@@ -2056,7 +2056,7 @@ static int write_hole(struct inode *inod
 
                to_pg = min((typeof(pg_off))PAGE_CACHE_SIZE - pg_off, cl_count);
                lock_page(page);
-               zero_user_page(page, pg_off, to_pg, KM_USER0);
+               zero_user(page, pg_off, to_pg);
                SetPageUptodate(page);
                reiser4_set_page_dirty_internal(page);
                mark_page_accessed(page);
@@ -2294,8 +2294,7 @@ static int read_some_cluster_pages(struc
                        off = off_to_pgoff(win->off+win->count+win->delta);
                        if (off) {
                                lock_page(pg);
-                               zero_user_page(pg, off, PAGE_CACHE_SIZE - off,
-                                               KM_USER0);
+                               zero_user_segment(pg, off, PAGE_CACHE_SIZE);
                                unlock_page(pg);
                        }
                }
@@ -2342,8 +2341,7 @@ static int read_some_cluster_pages(struc
 
                        offset =
                            off_to_pgoff(win->off + win->count + win->delta);
-                       zero_user_page(pg, offset, PAGE_CACHE_SIZE - offset,
-                                       KM_USER0);
+                       zero_user_segment(pg, offset, PAGE_CACHE_SIZE);
                        unlock_page(pg);
                        /* still not uptodate */
                        break;
diff -puN 
fs/reiser4/plugin/file/file.c~reiser4-portion-of-zero_user-cleanup-patch 
fs/reiser4/plugin/file/file.c
--- a/fs/reiser4/plugin/file/file.c~reiser4-portion-of-zero_user-cleanup-patch
+++ a/fs/reiser4/plugin/file/file.c
@@ -532,7 +532,7 @@ static int shorten_file(struct inode *in
 
        lock_page(page);
        assert("vs-1066", PageLocked(page));
-       zero_user_page(page, padd_from, PAGE_CACHE_SIZE - padd_from, KM_USER0);
+       zero_user_segment(page, padd_from, PAGE_CACHE_SIZE);
        unlock_page(page);
        page_cache_release(page);
        /* the below does up(sbinfo->delete_mutex). Do not get confused */
@@ -1433,7 +1433,7 @@ int readpage_unix_file(struct file *file
 
        if (page->mapping->host->i_size <= page_offset(page)) {
                /* page is out of file */
-               zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
+               zero_user(page, 0, PAGE_CACHE_SIZE);
                SetPageUptodate(page);
                unlock_page(page);
                return 0;
diff -puN 
fs/reiser4/plugin/item/ctail.c~reiser4-portion-of-zero_user-cleanup-patch 
fs/reiser4/plugin/item/ctail.c
--- a/fs/reiser4/plugin/item/ctail.c~reiser4-portion-of-zero_user-cleanup-patch
+++ a/fs/reiser4/plugin/item/ctail.c
@@ -638,7 +638,7 @@ int do_readpage_ctail(struct inode * ino
                goto exit;
        to_page = pbytes(page_index(page), inode);
        if (to_page == 0) {
-               zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
+               zero_user(page, 0, PAGE_CACHE_SIZE);
                SetPageUptodate(page);
                goto exit;
        }
@@ -655,7 +655,7 @@ int do_readpage_ctail(struct inode * ino
                /* refresh bytes */
                to_page = pbytes(page_index(page), inode);
                if (to_page == 0) {
-                       zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
+                       zero_user(page, 0, PAGE_CACHE_SIZE);
                        SetPageUptodate(page);
                        goto exit;
                }
@@ -678,7 +678,7 @@ int do_readpage_ctail(struct inode * ino
                 */
        case FAKE_DISK_CLUSTER:
                /* fill the page by zeroes */
-               zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
+               zero_user(page, 0, PAGE_CACHE_SIZE);
                SetPageUptodate(page);
                break;
        case PREP_DISK_CLUSTER:
@@ -788,7 +788,7 @@ static int ctail_readpages_filler(void *
                return 0;
        }
        if (pbytes(page_index(page), inode) == 0) {
-               zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
+               zero_user(page, 0, PAGE_CACHE_SIZE);
                SetPageUptodate(page);
                unlock_page(page);
                return 0;
diff -puN 
fs/reiser4/plugin/item/extent_file_ops.c~reiser4-portion-of-zero_user-cleanup-patch
 fs/reiser4/plugin/item/extent_file_ops.c
--- 
a/fs/reiser4/plugin/item/extent_file_ops.c~reiser4-portion-of-zero_user-cleanup-patch
+++ a/fs/reiser4/plugin/item/extent_file_ops.c
@@ -1136,7 +1136,7 @@ int reiser4_do_readpage_extent(reiser4_e
                 */
                j = jfind(mapping, index);
                if (j == NULL) {
-                       zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
+                       zero_user(page, 0, PAGE_CACHE_SIZE);
                        SetPageUptodate(page);
                        unlock_page(page);
                        return 0;
@@ -1151,7 +1151,7 @@ int reiser4_do_readpage_extent(reiser4_e
                block = *jnode_get_io_block(j);
                spin_unlock_jnode(j);
                if (block == 0) {
-                       zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
+                       zero_user(page, 0, PAGE_CACHE_SIZE);
                        SetPageUptodate(page);
                        unlock_page(page);
                        jput(j);
diff -puN 
fs/reiser4/plugin/item/tail.c~reiser4-portion-of-zero_user-cleanup-patch 
fs/reiser4/plugin/item/tail.c
--- a/fs/reiser4/plugin/item/tail.c~reiser4-portion-of-zero_user-cleanup-patch
+++ a/fs/reiser4/plugin/item/tail.c
@@ -392,8 +392,7 @@ static int do_readpage_tail(uf_coord_t *
 
  done:
        if (mapped != PAGE_CACHE_SIZE)
-               zero_user_page(page, mapped, PAGE_CACHE_SIZE - mapped,
-                               KM_USER0);
+               zero_user_segment(page, mapped, PAGE_CACHE_SIZE);
        SetPageUptodate(page);
  out_unlock_page:
        unlock_page(page);
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

origin.patch
intel-iommu-dmar-detection-and-parsing-logic.patch
intel-iommu-pci-generic-helper-function.patch
intel-iommu-clflush_cache_range-now-takes-size-param.patch
intel-iommu-iova-allocation-and-management-routines.patch
intel-iommu-intel-iommu-driver.patch
intel-iommu-avoid-memory-allocation-failures-in-dma-map-api-calls.patch
intel-iommu-intel-iommu-cmdline-option-forcedac.patch
intel-iommu-dmar-fault-handling-support.patch
intel-iommu-iommu-gfx-workaround.patch
intel-iommu-iommu-floppy-workaround.patch
mem-policy-fix-mempolicy-usage-in-pci-driver.patch
slab-api-remove-useless-ctor-parameter-and-reorder-parameters-vs-unionfs.patch
git-x86.patch
slub-avoid-atomic-operation-for-slab_unlock.patch
pagecache-zeroing-zero_user_segment-zero_user_segments-and-zero_user.patch
move-vmalloc_to_page-to-mm-vmalloc.patch
vmalloc-add-const-to-void-parameters.patch
i386-resolve-dependency-of-asm-i386-pgtableh-on-highmemh.patch
i386-resolve-dependency-of-asm-i386-pgtableh-on-highmemh-checkpatch-fixes.patch
is_vmalloc_addr-check-if-an-address-is-within-the-vmalloc-boundaries.patch
vmalloc-clean-up-page-array-indexing.patch
vunmap-return-page-array-passed-on-vmap.patch
slub-move-count_partial.patch
slub-rename-numa-defrag_ratio-to-remote_node_defrag_ratio.patch
slub-consolidate-add_partial-and-add_partial_tail-to-one-function.patch
vm-allow-get_page_unless_zero-on-compound-pages.patch
dentries-extract-common-code-to-remove-dentry-from-lru.patch
bufferhead-revert-constructor-removal.patch
bufferhead-revert-constructor-removal-checkpatch-fixes.patch
revoke-core-code.patch
slab-api-remove-useless-ctor-parameter-and-reorder-parameters-vs-revoke.patch
memcontrol-move-oom-task-exclusion-to-tasklist.patch
oom-add-sysctl-to-enable-task-memory-dump.patch
reiser4.patch
reiser4-portion-of-zero_user-cleanup-patch.patch
page-owner-tracking-leak-detector.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to