diff options
author | David Howells <dhowells@redhat.com> | 2019-07-16 19:28:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-16 22:23:23 -0400 |
commit | 8fc8b9df831387e0d02c1d0f5bb53d327e0d477a (patch) | |
tree | d05556aaa107f55bbe5e9a398afad8595c5f9648 | |
parent | b6a18c60080fcff0921e81991fec049394fb04e9 (diff) |
coda: move internal defs out of include/linux/ [ver #2]
Move include/linux/coda_psdev.h to fs/coda/ as there's nothing else that
uses it.
Link: http://lkml.kernel.org/r/3ceeee0415a929b89fb02700b6b4b3a07938acb8.1558117389.git.jaharkes@cs.cmu.edu
Link: https://patchwork.kernel.org/patch/10590257/
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Yann Droneaud <ydroneaud@opteya.com>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Fabian Frederick <fabf@skynet.be>
Cc: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Zhouyang Jia <jiazhouyang09@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/coda/cache.c | 2 | ||||
-rw-r--r-- | fs/coda/cnode.c | 2 | ||||
-rw-r--r-- | fs/coda/coda_linux.c | 2 | ||||
-rw-r--r-- | fs/coda/coda_psdev.h (renamed from include/linux/coda_psdev.h) | 50 | ||||
-rw-r--r-- | fs/coda/dir.c | 2 | ||||
-rw-r--r-- | fs/coda/file.c | 3 | ||||
-rw-r--r-- | fs/coda/inode.c | 2 | ||||
-rw-r--r-- | fs/coda/pioctl.c | 3 | ||||
-rw-r--r-- | fs/coda/psdev.c | 3 | ||||
-rw-r--r-- | fs/coda/symlink.c | 3 | ||||
-rw-r--r-- | fs/coda/upcall.c | 2 |
11 files changed, 35 insertions, 39 deletions
diff --git a/fs/coda/cache.c b/fs/coda/cache.c index 201fc08a8b4f..3b8c4513118f 100644 --- a/fs/coda/cache.c +++ b/fs/coda/cache.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/spinlock.h> | 21 | #include <linux/spinlock.h> |
22 | 22 | ||
23 | #include <linux/coda.h> | 23 | #include <linux/coda.h> |
24 | #include <linux/coda_psdev.h> | 24 | #include "coda_psdev.h" |
25 | #include "coda_linux.h" | 25 | #include "coda_linux.h" |
26 | #include "coda_cache.h" | 26 | #include "coda_cache.h" |
27 | 27 | ||
diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c index 845b5a66952a..2e5badf67f98 100644 --- a/fs/coda/cnode.c +++ b/fs/coda/cnode.c | |||
@@ -8,8 +8,8 @@ | |||
8 | #include <linux/time.h> | 8 | #include <linux/time.h> |
9 | 9 | ||
10 | #include <linux/coda.h> | 10 | #include <linux/coda.h> |
11 | #include <linux/coda_psdev.h> | ||
12 | #include <linux/pagemap.h> | 11 | #include <linux/pagemap.h> |
12 | #include "coda_psdev.h" | ||
13 | #include "coda_linux.h" | 13 | #include "coda_linux.h" |
14 | 14 | ||
15 | static inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2) | 15 | static inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2) |
diff --git a/fs/coda/coda_linux.c b/fs/coda/coda_linux.c index e4b5f02f0dd4..2e1a5a192074 100644 --- a/fs/coda/coda_linux.c +++ b/fs/coda/coda_linux.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/string.h> | 18 | #include <linux/string.h> |
19 | 19 | ||
20 | #include <linux/coda.h> | 20 | #include <linux/coda.h> |
21 | #include <linux/coda_psdev.h> | 21 | #include "coda_psdev.h" |
22 | #include "coda_linux.h" | 22 | #include "coda_linux.h" |
23 | 23 | ||
24 | /* initialize the debugging variables */ | 24 | /* initialize the debugging variables */ |
diff --git a/include/linux/coda_psdev.h b/fs/coda/coda_psdev.h index 9487f792770c..012e16f741a6 100644 --- a/include/linux/coda_psdev.h +++ b/fs/coda/coda_psdev.h | |||
@@ -4,21 +4,10 @@ | |||
4 | 4 | ||
5 | #include <linux/backing-dev.h> | 5 | #include <linux/backing-dev.h> |
6 | #include <linux/mutex.h> | 6 | #include <linux/mutex.h> |
7 | #include <uapi/linux/coda_psdev.h> | 7 | #include <linux/coda_psdev.h> |
8 | 8 | ||
9 | struct kstatfs; | 9 | struct kstatfs; |
10 | 10 | ||
11 | /* communication pending/processing queues */ | ||
12 | struct venus_comm { | ||
13 | u_long vc_seq; | ||
14 | wait_queue_head_t vc_waitq; /* Venus wait queue */ | ||
15 | struct list_head vc_pending; | ||
16 | struct list_head vc_processing; | ||
17 | int vc_inuse; | ||
18 | struct super_block *vc_sb; | ||
19 | struct mutex vc_mutex; | ||
20 | }; | ||
21 | |||
22 | /* messages between coda filesystem in kernel and Venus */ | 11 | /* messages between coda filesystem in kernel and Venus */ |
23 | struct upc_req { | 12 | struct upc_req { |
24 | struct list_head uc_chain; | 13 | struct list_head uc_chain; |
@@ -36,6 +25,17 @@ struct upc_req { | |||
36 | #define CODA_REQ_WRITE 0x4 | 25 | #define CODA_REQ_WRITE 0x4 |
37 | #define CODA_REQ_ABORT 0x8 | 26 | #define CODA_REQ_ABORT 0x8 |
38 | 27 | ||
28 | /* communication pending/processing queues */ | ||
29 | struct venus_comm { | ||
30 | u_long vc_seq; | ||
31 | wait_queue_head_t vc_waitq; /* Venus wait queue */ | ||
32 | struct list_head vc_pending; | ||
33 | struct list_head vc_processing; | ||
34 | int vc_inuse; | ||
35 | struct super_block *vc_sb; | ||
36 | struct mutex vc_mutex; | ||
37 | }; | ||
38 | |||
39 | static inline struct venus_comm *coda_vcp(struct super_block *sb) | 39 | static inline struct venus_comm *coda_vcp(struct super_block *sb) |
40 | { | 40 | { |
41 | return (struct venus_comm *)((sb)->s_fs_info); | 41 | return (struct venus_comm *)((sb)->s_fs_info); |
@@ -46,30 +46,30 @@ int venus_rootfid(struct super_block *sb, struct CodaFid *fidp); | |||
46 | int venus_getattr(struct super_block *sb, struct CodaFid *fid, | 46 | int venus_getattr(struct super_block *sb, struct CodaFid *fid, |
47 | struct coda_vattr *attr); | 47 | struct coda_vattr *attr); |
48 | int venus_setattr(struct super_block *, struct CodaFid *, struct coda_vattr *); | 48 | int venus_setattr(struct super_block *, struct CodaFid *, struct coda_vattr *); |
49 | int venus_lookup(struct super_block *sb, struct CodaFid *fid, | 49 | int venus_lookup(struct super_block *sb, struct CodaFid *fid, |
50 | const char *name, int length, int *type, | 50 | const char *name, int length, int *type, |
51 | struct CodaFid *resfid); | 51 | struct CodaFid *resfid); |
52 | int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, | 52 | int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, |
53 | kuid_t uid); | 53 | kuid_t uid); |
54 | int venus_open(struct super_block *sb, struct CodaFid *fid, int flags, | 54 | int venus_open(struct super_block *sb, struct CodaFid *fid, int flags, |
55 | struct file **f); | 55 | struct file **f); |
56 | int venus_mkdir(struct super_block *sb, struct CodaFid *dirfid, | 56 | int venus_mkdir(struct super_block *sb, struct CodaFid *dirfid, |
57 | const char *name, int length, | 57 | const char *name, int length, |
58 | struct CodaFid *newfid, struct coda_vattr *attrs); | 58 | struct CodaFid *newfid, struct coda_vattr *attrs); |
59 | int venus_create(struct super_block *sb, struct CodaFid *dirfid, | 59 | int venus_create(struct super_block *sb, struct CodaFid *dirfid, |
60 | const char *name, int length, int excl, int mode, | 60 | const char *name, int length, int excl, int mode, |
61 | struct CodaFid *newfid, struct coda_vattr *attrs) ; | 61 | struct CodaFid *newfid, struct coda_vattr *attrs); |
62 | int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid, | 62 | int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid, |
63 | const char *name, int length); | 63 | const char *name, int length); |
64 | int venus_remove(struct super_block *sb, struct CodaFid *dirfid, | 64 | int venus_remove(struct super_block *sb, struct CodaFid *dirfid, |
65 | const char *name, int length); | 65 | const char *name, int length); |
66 | int venus_readlink(struct super_block *sb, struct CodaFid *fid, | 66 | int venus_readlink(struct super_block *sb, struct CodaFid *fid, |
67 | char *buffer, int *length); | 67 | char *buffer, int *length); |
68 | int venus_rename(struct super_block *, struct CodaFid *new_fid, | 68 | int venus_rename(struct super_block *sb, struct CodaFid *new_fid, |
69 | struct CodaFid *old_fid, size_t old_length, | 69 | struct CodaFid *old_fid, size_t old_length, |
70 | size_t new_length, const char *old_name, | 70 | size_t new_length, const char *old_name, |
71 | const char *new_name); | 71 | const char *new_name); |
72 | int venus_link(struct super_block *sb, struct CodaFid *fid, | 72 | int venus_link(struct super_block *sb, struct CodaFid *fid, |
73 | struct CodaFid *dirfid, const char *name, int len ); | 73 | struct CodaFid *dirfid, const char *name, int len ); |
74 | int venus_symlink(struct super_block *sb, struct CodaFid *fid, | 74 | int venus_symlink(struct super_block *sb, struct CodaFid *fid, |
75 | const char *name, int len, const char *symname, int symlen); | 75 | const char *name, int len, const char *symname, int symlen); |
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 7e103eb8ffcd..716a0b932ec0 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/uaccess.h> | 23 | #include <linux/uaccess.h> |
24 | 24 | ||
25 | #include <linux/coda.h> | 25 | #include <linux/coda.h> |
26 | #include <linux/coda_psdev.h> | 26 | #include "coda_psdev.h" |
27 | #include "coda_linux.h" | 27 | #include "coda_linux.h" |
28 | #include "coda_cache.h" | 28 | #include "coda_cache.h" |
29 | 29 | ||
diff --git a/fs/coda/file.c b/fs/coda/file.c index 43d371551d2b..a6b32c883a50 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c | |||
@@ -22,8 +22,7 @@ | |||
22 | #include <linux/uaccess.h> | 22 | #include <linux/uaccess.h> |
23 | 23 | ||
24 | #include <linux/coda.h> | 24 | #include <linux/coda.h> |
25 | #include <linux/coda_psdev.h> | 25 | #include "coda_psdev.h" |
26 | |||
27 | #include "coda_linux.h" | 26 | #include "coda_linux.h" |
28 | #include "coda_int.h" | 27 | #include "coda_int.h" |
29 | 28 | ||
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 23f6ebd08e80..96d832ed23b5 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <linux/vmalloc.h> | 27 | #include <linux/vmalloc.h> |
28 | 28 | ||
29 | #include <linux/coda.h> | 29 | #include <linux/coda.h> |
30 | #include <linux/coda_psdev.h> | 30 | #include "coda_psdev.h" |
31 | #include "coda_linux.h" | 31 | #include "coda_linux.h" |
32 | #include "coda_cache.h" | 32 | #include "coda_cache.h" |
33 | 33 | ||
diff --git a/fs/coda/pioctl.c b/fs/coda/pioctl.c index e0c17b7dccce..644d48c12ce8 100644 --- a/fs/coda/pioctl.c +++ b/fs/coda/pioctl.c | |||
@@ -20,8 +20,7 @@ | |||
20 | #include <linux/uaccess.h> | 20 | #include <linux/uaccess.h> |
21 | 21 | ||
22 | #include <linux/coda.h> | 22 | #include <linux/coda.h> |
23 | #include <linux/coda_psdev.h> | 23 | #include "coda_psdev.h" |
24 | |||
25 | #include "coda_linux.h" | 24 | #include "coda_linux.h" |
26 | 25 | ||
27 | /* pioctl ops */ | 26 | /* pioctl ops */ |
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index e80bda1de6c5..0a61e949a430 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c | |||
@@ -38,8 +38,7 @@ | |||
38 | #include <linux/uaccess.h> | 38 | #include <linux/uaccess.h> |
39 | 39 | ||
40 | #include <linux/coda.h> | 40 | #include <linux/coda.h> |
41 | #include <linux/coda_psdev.h> | 41 | #include "coda_psdev.h" |
42 | |||
43 | #include "coda_linux.h" | 42 | #include "coda_linux.h" |
44 | 43 | ||
45 | #include "coda_int.h" | 44 | #include "coda_int.h" |
diff --git a/fs/coda/symlink.c b/fs/coda/symlink.c index 202297d156df..8907d0508198 100644 --- a/fs/coda/symlink.c +++ b/fs/coda/symlink.c | |||
@@ -17,8 +17,7 @@ | |||
17 | #include <linux/pagemap.h> | 17 | #include <linux/pagemap.h> |
18 | 18 | ||
19 | #include <linux/coda.h> | 19 | #include <linux/coda.h> |
20 | #include <linux/coda_psdev.h> | 20 | #include "coda_psdev.h" |
21 | |||
22 | #include "coda_linux.h" | 21 | #include "coda_linux.h" |
23 | 22 | ||
24 | static int coda_symlink_filler(struct file *file, struct page *page) | 23 | static int coda_symlink_filler(struct file *file, struct page *page) |
diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c index 1e2f50722107..eb8cc30f2589 100644 --- a/fs/coda/upcall.c +++ b/fs/coda/upcall.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/vfs.h> | 33 | #include <linux/vfs.h> |
34 | 34 | ||
35 | #include <linux/coda.h> | 35 | #include <linux/coda.h> |
36 | #include <linux/coda_psdev.h> | 36 | #include "coda_psdev.h" |
37 | #include "coda_linux.h" | 37 | #include "coda_linux.h" |
38 | #include "coda_cache.h" | 38 | #include "coda_cache.h" |
39 | 39 | ||