+ fs-ramfs-move-ramfs_aops-to-inodec.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: + fs-ramfs-move-ramfs_aops-to-inodec.patch added to -mm tree
To: axel.lin@xxxxxxxxxx,viro@xxxxxxxxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Fri, 22 Nov 2013 14:24:24 -0800


The patch titled
     Subject: fs/ramfs: move ramfs_aops to inode.c
has been added to the -mm tree.  Its filename is
     fs-ramfs-move-ramfs_aops-to-inodec.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/fs-ramfs-move-ramfs_aops-to-inodec.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/fs-ramfs-move-ramfs_aops-to-inodec.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

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

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Axel Lin <axel.lin@xxxxxxxxxx>
Subject: fs/ramfs: move ramfs_aops to inode.c

ramfs_aops is identical in file-mmu.c and file-nommu.c.  Thus move it to
fs/ramfs/inode.c and make it static.

Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/ramfs/file-mmu.c   |    7 -------
 fs/ramfs/file-nommu.c |    7 -------
 fs/ramfs/inode.c      |    7 +++++++
 fs/ramfs/internal.h   |    1 -
 4 files changed, 7 insertions(+), 15 deletions(-)

diff -puN fs/ramfs/file-mmu.c~fs-ramfs-move-ramfs_aops-to-inodec fs/ramfs/file-mmu.c
--- a/fs/ramfs/file-mmu.c~fs-ramfs-move-ramfs_aops-to-inodec
+++ a/fs/ramfs/file-mmu.c
@@ -30,13 +30,6 @@
 
 #include "internal.h"
 
-const struct address_space_operations ramfs_aops = {
-	.readpage	= simple_readpage,
-	.write_begin	= simple_write_begin,
-	.write_end	= simple_write_end,
-	.set_page_dirty = __set_page_dirty_no_writeback,
-};
-
 const struct file_operations ramfs_file_operations = {
 	.read		= do_sync_read,
 	.aio_read	= generic_file_aio_read,
diff -puN fs/ramfs/file-nommu.c~fs-ramfs-move-ramfs_aops-to-inodec fs/ramfs/file-nommu.c
--- a/fs/ramfs/file-nommu.c~fs-ramfs-move-ramfs_aops-to-inodec
+++ a/fs/ramfs/file-nommu.c
@@ -34,13 +34,6 @@ static unsigned long ramfs_nommu_get_unm
 						   unsigned long flags);
 static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
 
-const struct address_space_operations ramfs_aops = {
-	.readpage		= simple_readpage,
-	.write_begin		= simple_write_begin,
-	.write_end		= simple_write_end,
-	.set_page_dirty		= __set_page_dirty_no_writeback,
-};
-
 const struct file_operations ramfs_file_operations = {
 	.mmap			= ramfs_nommu_mmap,
 	.get_unmapped_area	= ramfs_nommu_get_unmapped_area,
diff -puN fs/ramfs/inode.c~fs-ramfs-move-ramfs_aops-to-inodec fs/ramfs/inode.c
--- a/fs/ramfs/inode.c~fs-ramfs-move-ramfs_aops-to-inodec
+++ a/fs/ramfs/inode.c
@@ -43,6 +43,13 @@
 static const struct super_operations ramfs_ops;
 static const struct inode_operations ramfs_dir_inode_operations;
 
+static const struct address_space_operations ramfs_aops = {
+	.readpage	= simple_readpage,
+	.write_begin	= simple_write_begin,
+	.write_end	= simple_write_end,
+	.set_page_dirty	= __set_page_dirty_no_writeback,
+};
+
 static struct backing_dev_info ramfs_backing_dev_info = {
 	.name		= "ramfs",
 	.ra_pages	= 0,	/* No readahead */
diff -puN fs/ramfs/internal.h~fs-ramfs-move-ramfs_aops-to-inodec fs/ramfs/internal.h
--- a/fs/ramfs/internal.h~fs-ramfs-move-ramfs_aops-to-inodec
+++ a/fs/ramfs/internal.h
@@ -10,5 +10,4 @@
  */
 
 
-extern const struct address_space_operations ramfs_aops;
 extern const struct inode_operations ramfs_file_inode_operations;
_

Patches currently in -mm which might be from axel.lin@xxxxxxxxxx are

origin.patch
fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static.patch
fs-ramfs-move-ramfs_aops-to-inodec.patch
linux-next.patch

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




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux