diff for duplicates of <1182178482182-git-send-email-swhiteho@redhat.com> diff --git a/a/1.txt b/N1/1.txt index c704052..b31b5b6 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,16 +1 @@ - -Use zero_user_page() instead of open-coding it. - -Signed-off-by: Nate Diller <nate.diller@gmail.com> -Cc: Steven Whitehouse <swhiteho@redhat.com> -Signed-off-by: Andrew Morton <akpm@linux-foundation.org> ---- - fs/gfs2/bmap.c | 6 +----- - 1 files changed, 1 insertions(+), 5 deletions(-) --------------- next part -------------- -A non-text attachment was scrubbed... -Name: 5f8edce5584b74bbe25c240ffe7a55934e8cb9de.diff -Type: text/x-patch -Size: 782 bytes -Desc: not available -URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070618/f018165b/attachment.bin> +This is a multi-part message in MIME format. diff --git a/N1/2.hdr b/N1/2.hdr new file mode 100644 index 0000000..5f63a06 --- /dev/null +++ b/N1/2.hdr @@ -0,0 +1,2 @@ +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit diff --git a/N1/2.txt b/N1/2.txt new file mode 100644 index 0000000..64c3efc --- /dev/null +++ b/N1/2.txt @@ -0,0 +1,9 @@ + +Use zero_user_page() instead of open-coding it. + +Signed-off-by: Nate Diller <nate.diller@gmail.com> +Cc: Steven Whitehouse <swhiteho@redhat.com> +Signed-off-by: Andrew Morton <akpm@linux-foundation.org> +--- + fs/gfs2/bmap.c | 6 +----- + 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/N1/3.hdr b/N1/3.hdr new file mode 100644 index 0000000..26da33f --- /dev/null +++ b/N1/3.hdr @@ -0,0 +1,3 @@ +Content-Type: text/x-patch; name="5f8edce5584b74bbe25c240ffe7a55934e8cb9de.diff" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="5f8edce5584b74bbe25c240ffe7a55934e8cb9de.diff" diff --git a/N1/3.txt b/N1/3.txt new file mode 100644 index 0000000..e14411f --- /dev/null +++ b/N1/3.txt @@ -0,0 +1,24 @@ +diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c +index c53a5d2..1c40c4b 100644 +--- a/fs/gfs2/bmap.c ++++ b/fs/gfs2/bmap.c +@@ -885,7 +885,6 @@ static int gfs2_block_truncate_page(struct address_space *mapping) + unsigned blocksize, iblock, length, pos; + struct buffer_head *bh; + struct page *page; +- void *kaddr; + int err; + + page = grab_cache_page(mapping, index); +@@ -933,10 +932,7 @@ static int gfs2_block_truncate_page(struct address_space *mapping) + if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || gfs2_is_jdata(ip)) + gfs2_trans_add_bh(ip->i_gl, bh, 0); + +- kaddr = kmap_atomic(page, KM_USER0); +- memset(kaddr + offset, 0, length); +- flush_dcache_page(page); +- kunmap_atomic(kaddr, KM_USER0); ++ zero_user_page(page, offset, length, KM_USER0); + + unlock: + unlock_page(page); diff --git a/a/content_digest b/N1/content_digest index 19ac69d..29bfbe9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,10 +2,17 @@ "ref\01182178478593-git-send-email-swhiteho@redhat.com\0" "ref\011821784801162-git-send-email-swhiteho@redhat.com\0" "From\0Steven Whitehouse <swhiteho@redhat.com>\0" - "Subject\0[Cluster-devel] [PATCH 3/4] [GFS2] use zero_user_page\0" + "Subject\0[PATCH 3/4] [GFS2] use zero_user_page\0" "Date\0Mon, 18 Jun 2007 15:54:29 +0100\0" - "To\0cluster-devel.redhat.com\0" - "\00:1\0" + "To\0cluster-devel@redhat.com" + " linux-kernel@vger.kernel.org\0" + "Cc\0Nate Diller <nate.diller@gmail.com>" + Steven Whitehouse <swhiteho@redhat.com> + " Andrew Morton <akpm@linux-foundation.org>\0" + "\01:1\0" + "b\0" + This is a multi-part message in MIME format. + "\01:2\0" "b\0" "\n" "Use zero_user_page() instead of open-coding it.\n" @@ -15,13 +22,33 @@ "Signed-off-by: Andrew Morton <akpm@linux-foundation.org>\n" "---\n" " fs/gfs2/bmap.c | 6 +-----\n" - " 1 files changed, 1 insertions(+), 5 deletions(-)\n" - "-------------- next part --------------\n" - "A non-text attachment was scrubbed...\n" - "Name: 5f8edce5584b74bbe25c240ffe7a55934e8cb9de.diff\n" - "Type: text/x-patch\n" - "Size: 782 bytes\n" - "Desc: not available\n" - URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070618/f018165b/attachment.bin> + 1 files changed, 1 insertions(+), 5 deletions(-) + "\01:3\0" + "fn\05f8edce5584b74bbe25c240ffe7a55934e8cb9de.diff\0" + "b\0" + "diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c\n" + "index c53a5d2..1c40c4b 100644\n" + "--- a/fs/gfs2/bmap.c\n" + "+++ b/fs/gfs2/bmap.c\n" + "@@ -885,7 +885,6 @@ static int gfs2_block_truncate_page(struct address_space *mapping)\n" + " \tunsigned blocksize, iblock, length, pos;\n" + " \tstruct buffer_head *bh;\n" + " \tstruct page *page;\n" + "-\tvoid *kaddr;\n" + " \tint err;\n" + " \n" + " \tpage = grab_cache_page(mapping, index);\n" + "@@ -933,10 +932,7 @@ static int gfs2_block_truncate_page(struct address_space *mapping)\n" + " \tif (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || gfs2_is_jdata(ip))\n" + " \t\tgfs2_trans_add_bh(ip->i_gl, bh, 0);\n" + " \n" + "-\tkaddr = kmap_atomic(page, KM_USER0);\n" + "-\tmemset(kaddr + offset, 0, length);\n" + "-\tflush_dcache_page(page);\n" + "-\tkunmap_atomic(kaddr, KM_USER0);\n" + "+\tzero_user_page(page, offset, length, KM_USER0);\n" + " \n" + " unlock:\n" + " \tunlock_page(page);" -1efbf2516a4c7314869ec85af1d68a876f8f457391fc1fffe8afed6309d22b4a +5ecedccbbc27175c0f1c48e9921aefcdf210bb08ded60818eec9508be4b930f1
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.