orangefs: rename remaining bits of mmap readahead cache
authorMartin Brandenburg <martin@omnibond.com>
Tue, 2 Aug 2016 18:31:05 +0000 (14:31 -0400)
committerMartin Brandenburg <martin@omnibond.com>
Mon, 8 Aug 2016 19:12:27 +0000 (15:12 -0400)
This has been dormant code for many years. Parts of it were removed from
the OrangeFS kernel code when it went into mainline. These bits were missed.
Now the readahead cache has been resurrected in the OrangeFS userspace
portions. It was renamed there, since it doesn't really have anything to do
with mmap specifically, so it will be renamed here.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
fs/orangefs/file.c
fs/orangefs/orangefs-cache.c
fs/orangefs/orangefs-dev-proto.h
fs/orangefs/orangefs-utils.c
fs/orangefs/upcall.h

index 526040e09f78746d3f0d8d275be6ce6217a861cd..c14eab567f56f976e782f5b3ccf392a66f1d8624 100644 (file)
@@ -591,7 +591,7 @@ static int orangefs_file_release(struct inode *inode, struct file *file)
        orangefs_flush_inode(inode);
 
        /*
-        * remove all associated inode pages from the page cache and mmap
+        * remove all associated inode pages from the page cache and
         * readahead cache (if any); this forces an expensive refresh of
         * data for the next caller of mmap (or 'get_block' accesses)
         */
index b6edbe9fb309eae431194a13d887f2fa934981c0..eb0b6e00b519daefa3f61eb888630e80b1fc282c 100644 (file)
@@ -73,8 +73,8 @@ char *get_opname_string(struct orangefs_kernel_op_s *new_op)
                        return "OP_STATFS";
                else if (type == ORANGEFS_VFS_OP_TRUNCATE)
                        return "OP_TRUNCATE";
-               else if (type == ORANGEFS_VFS_OP_MMAP_RA_FLUSH)
-                       return "OP_MMAP_RA_FLUSH";
+               else if (type == ORANGEFS_VFS_OP_RA_FLUSH)
+                       return "OP_RA_FLUSH";
                else if (type == ORANGEFS_VFS_OP_FS_MOUNT)
                        return "OP_FS_MOUNT";
                else if (type == ORANGEFS_VFS_OP_FS_UMOUNT)
index 9eac9d9a3f3a91d4cb608f8c4e3e0566848de214..71902899b1dafb46b56eaff159600850b2e46d2e 100644 (file)
@@ -28,7 +28,7 @@
 #define ORANGEFS_VFS_OP_RENAME         0xFF00000A
 #define ORANGEFS_VFS_OP_STATFS         0xFF00000B
 #define ORANGEFS_VFS_OP_TRUNCATE       0xFF00000C
-#define ORANGEFS_VFS_OP_MMAP_RA_FLUSH  0xFF00000D
+#define ORANGEFS_VFS_OP_RA_FLUSH       0xFF00000D
 #define ORANGEFS_VFS_OP_FS_MOUNT       0xFF00000E
 #define ORANGEFS_VFS_OP_FS_UMOUNT      0xFF00000F
 #define ORANGEFS_VFS_OP_GETXATTR       0xFF000010
index d13c7291fd054059a52e47f916f5913f7ed075aa..9a99285fe310b9bba3ced8da5ab0b291413c681e 100644 (file)
@@ -50,7 +50,7 @@ __s32 fsid_of_op(struct orangefs_kernel_op_s *op)
                case ORANGEFS_VFS_OP_TRUNCATE:
                        fsid = op->upcall.req.truncate.refn.fs_id;
                        break;
-               case ORANGEFS_VFS_OP_MMAP_RA_FLUSH:
+               case ORANGEFS_VFS_OP_RA_FLUSH:
                        fsid = op->upcall.req.ra_cache_flush.refn.fs_id;
                        break;
                case ORANGEFS_VFS_OP_FS_UMOUNT:
index 001b20239407c5e6ea99056aaeca4268fb01a810..93965fb484e933e86044ceb4ba16ee6bb6c79f78 100644 (file)
@@ -98,7 +98,7 @@ struct orangefs_truncate_request_s {
        __s64 size;
 };
 
-struct orangefs_mmap_ra_cache_flush_request_s {
+struct orangefs_ra_cache_flush_request_s {
        struct orangefs_object_kref refn;
 };
 
@@ -228,7 +228,7 @@ struct orangefs_upcall_s {
                struct orangefs_rename_request_s rename;
                struct orangefs_statfs_request_s statfs;
                struct orangefs_truncate_request_s truncate;
-               struct orangefs_mmap_ra_cache_flush_request_s ra_cache_flush;
+               struct orangefs_ra_cache_flush_request_s ra_cache_flush;
                struct orangefs_fs_mount_request_s fs_mount;
                struct orangefs_fs_umount_request_s fs_umount;
                struct orangefs_getxattr_request_s getxattr;