aboutsummaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-08-02 14:31:05 -0400
committerMartin Brandenburg <martin@omnibond.com>2016-08-08 15:12:27 -0400
commit6eaff8c7775abcdff5ba7c9f0305f4ccdca57ba5 (patch)
treeed991fde2ec2a7adbd2a86a77219ef5958179923 /fs/orangefs
parent8cbdd85bda499d028b8f128191f392d701e8e41d (diff)
orangefs: rename remaining bits of mmap readahead cache
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>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/file.c2
-rw-r--r--fs/orangefs/orangefs-cache.c4
-rw-r--r--fs/orangefs/orangefs-dev-proto.h2
-rw-r--r--fs/orangefs/orangefs-utils.c2
-rw-r--r--fs/orangefs/upcall.h4
5 files changed, 7 insertions, 7 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c
index 526040e09f78..c14eab567f56 100644
--- a/fs/orangefs/file.c
+++ b/fs/orangefs/file.c
@@ -591,7 +591,7 @@ static int orangefs_file_release(struct inode *inode, struct file *file)
591 orangefs_flush_inode(inode); 591 orangefs_flush_inode(inode);
592 592
593 /* 593 /*
594 * remove all associated inode pages from the page cache and mmap 594 * remove all associated inode pages from the page cache and
595 * readahead cache (if any); this forces an expensive refresh of 595 * readahead cache (if any); this forces an expensive refresh of
596 * data for the next caller of mmap (or 'get_block' accesses) 596 * data for the next caller of mmap (or 'get_block' accesses)
597 */ 597 */
diff --git a/fs/orangefs/orangefs-cache.c b/fs/orangefs/orangefs-cache.c
index b6edbe9fb309..eb0b6e00b519 100644
--- a/fs/orangefs/orangefs-cache.c
+++ b/fs/orangefs/orangefs-cache.c
@@ -73,8 +73,8 @@ char *get_opname_string(struct orangefs_kernel_op_s *new_op)
73 return "OP_STATFS"; 73 return "OP_STATFS";
74 else if (type == ORANGEFS_VFS_OP_TRUNCATE) 74 else if (type == ORANGEFS_VFS_OP_TRUNCATE)
75 return "OP_TRUNCATE"; 75 return "OP_TRUNCATE";
76 else if (type == ORANGEFS_VFS_OP_MMAP_RA_FLUSH) 76 else if (type == ORANGEFS_VFS_OP_RA_FLUSH)
77 return "OP_MMAP_RA_FLUSH"; 77 return "OP_RA_FLUSH";
78 else if (type == ORANGEFS_VFS_OP_FS_MOUNT) 78 else if (type == ORANGEFS_VFS_OP_FS_MOUNT)
79 return "OP_FS_MOUNT"; 79 return "OP_FS_MOUNT";
80 else if (type == ORANGEFS_VFS_OP_FS_UMOUNT) 80 else if (type == ORANGEFS_VFS_OP_FS_UMOUNT)
diff --git a/fs/orangefs/orangefs-dev-proto.h b/fs/orangefs/orangefs-dev-proto.h
index 9eac9d9a3f3a..71902899b1da 100644
--- a/fs/orangefs/orangefs-dev-proto.h
+++ b/fs/orangefs/orangefs-dev-proto.h
@@ -28,7 +28,7 @@
28#define ORANGEFS_VFS_OP_RENAME 0xFF00000A 28#define ORANGEFS_VFS_OP_RENAME 0xFF00000A
29#define ORANGEFS_VFS_OP_STATFS 0xFF00000B 29#define ORANGEFS_VFS_OP_STATFS 0xFF00000B
30#define ORANGEFS_VFS_OP_TRUNCATE 0xFF00000C 30#define ORANGEFS_VFS_OP_TRUNCATE 0xFF00000C
31#define ORANGEFS_VFS_OP_MMAP_RA_FLUSH 0xFF00000D 31#define ORANGEFS_VFS_OP_RA_FLUSH 0xFF00000D
32#define ORANGEFS_VFS_OP_FS_MOUNT 0xFF00000E 32#define ORANGEFS_VFS_OP_FS_MOUNT 0xFF00000E
33#define ORANGEFS_VFS_OP_FS_UMOUNT 0xFF00000F 33#define ORANGEFS_VFS_OP_FS_UMOUNT 0xFF00000F
34#define ORANGEFS_VFS_OP_GETXATTR 0xFF000010 34#define ORANGEFS_VFS_OP_GETXATTR 0xFF000010
diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c
index d13c7291fd05..9a99285fe310 100644
--- a/fs/orangefs/orangefs-utils.c
+++ b/fs/orangefs/orangefs-utils.c
@@ -50,7 +50,7 @@ __s32 fsid_of_op(struct orangefs_kernel_op_s *op)
50 case ORANGEFS_VFS_OP_TRUNCATE: 50 case ORANGEFS_VFS_OP_TRUNCATE:
51 fsid = op->upcall.req.truncate.refn.fs_id; 51 fsid = op->upcall.req.truncate.refn.fs_id;
52 break; 52 break;
53 case ORANGEFS_VFS_OP_MMAP_RA_FLUSH: 53 case ORANGEFS_VFS_OP_RA_FLUSH:
54 fsid = op->upcall.req.ra_cache_flush.refn.fs_id; 54 fsid = op->upcall.req.ra_cache_flush.refn.fs_id;
55 break; 55 break;
56 case ORANGEFS_VFS_OP_FS_UMOUNT: 56 case ORANGEFS_VFS_OP_FS_UMOUNT:
diff --git a/fs/orangefs/upcall.h b/fs/orangefs/upcall.h
index 001b20239407..93965fb484e9 100644
--- a/fs/orangefs/upcall.h
+++ b/fs/orangefs/upcall.h
@@ -98,7 +98,7 @@ struct orangefs_truncate_request_s {
98 __s64 size; 98 __s64 size;
99}; 99};
100 100
101struct orangefs_mmap_ra_cache_flush_request_s { 101struct orangefs_ra_cache_flush_request_s {
102 struct orangefs_object_kref refn; 102 struct orangefs_object_kref refn;
103}; 103};
104 104
@@ -228,7 +228,7 @@ struct orangefs_upcall_s {
228 struct orangefs_rename_request_s rename; 228 struct orangefs_rename_request_s rename;
229 struct orangefs_statfs_request_s statfs; 229 struct orangefs_statfs_request_s statfs;
230 struct orangefs_truncate_request_s truncate; 230 struct orangefs_truncate_request_s truncate;
231 struct orangefs_mmap_ra_cache_flush_request_s ra_cache_flush; 231 struct orangefs_ra_cache_flush_request_s ra_cache_flush;
232 struct orangefs_fs_mount_request_s fs_mount; 232 struct orangefs_fs_mount_request_s fs_mount;
233 struct orangefs_fs_umount_request_s fs_umount; 233 struct orangefs_fs_umount_request_s fs_umount;
234 struct orangefs_getxattr_request_s getxattr; 234 struct orangefs_getxattr_request_s getxattr;