diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 20:00:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 20:00:54 -0500 |
commit | 533cf7aef25bfe5da72170466582bcd0db5189c0 (patch) | |
tree | 9378349259efc63391d920bc779787fc7f06a057 | |
parent | 038911597e17017cee55fe93d521164a27056866 (diff) | |
parent | a51f25a587e16bf89dce3f821de99b7717782859 (diff) |
Merge branch 'for-3.20' of git://linux-nfs.org/~bfields/linux
Pull nfsd bugfixes from Bruce Fields:
"These are fixes for two bugs introduced during the merge window"
* 'for-3.20' of git://linux-nfs.org/~bfields/linux:
nfsd4: fix v3-less build
nfsd: fix comparison in fh_fsid_match()
-rw-r--r-- | fs/nfsd/nfsfh.h | 2 | ||||
-rw-r--r-- | fs/nfsd/pnfs.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfsd/nfsfh.h b/fs/nfsd/nfsfh.h index 84cae2079d21..f22920442172 100644 --- a/fs/nfsd/nfsfh.h +++ b/fs/nfsd/nfsfh.h | |||
@@ -200,7 +200,7 @@ static inline bool fh_fsid_match(struct knfsd_fh *fh1, struct knfsd_fh *fh2) | |||
200 | { | 200 | { |
201 | if (fh1->fh_fsid_type != fh2->fh_fsid_type) | 201 | if (fh1->fh_fsid_type != fh2->fh_fsid_type) |
202 | return false; | 202 | return false; |
203 | if (memcmp(fh1->fh_fsid, fh2->fh_fsid, key_len(fh1->fh_fsid_type) != 0)) | 203 | if (memcmp(fh1->fh_fsid, fh2->fh_fsid, key_len(fh1->fh_fsid_type)) != 0) |
204 | return false; | 204 | return false; |
205 | return true; | 205 | return true; |
206 | } | 206 | } |
diff --git a/fs/nfsd/pnfs.h b/fs/nfsd/pnfs.h index fedb4d620a81..d4c4453674c6 100644 --- a/fs/nfsd/pnfs.h +++ b/fs/nfsd/pnfs.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef _FS_NFSD_PNFS_H | 1 | #ifndef _FS_NFSD_PNFS_H |
2 | #define _FS_NFSD_PNFS_H 1 | 2 | #define _FS_NFSD_PNFS_H 1 |
3 | 3 | ||
4 | #ifdef CONFIG_NFSD_V4 | ||
4 | #include <linux/exportfs.h> | 5 | #include <linux/exportfs.h> |
5 | #include <linux/nfsd/export.h> | 6 | #include <linux/nfsd/export.h> |
6 | 7 | ||
@@ -50,6 +51,7 @@ __be32 nfsd4_return_client_layouts(struct svc_rqst *rqstp, | |||
50 | int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp, | 51 | int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp, |
51 | u32 device_generation); | 52 | u32 device_generation); |
52 | struct nfsd4_deviceid_map *nfsd4_find_devid_map(int idx); | 53 | struct nfsd4_deviceid_map *nfsd4_find_devid_map(int idx); |
54 | #endif /* CONFIG_NFSD_V4 */ | ||
53 | 55 | ||
54 | #ifdef CONFIG_NFSD_PNFS | 56 | #ifdef CONFIG_NFSD_PNFS |
55 | void nfsd4_setup_layout_type(struct svc_export *exp); | 57 | void nfsd4_setup_layout_type(struct svc_export *exp); |
@@ -59,6 +61,9 @@ void nfsd4_return_all_file_layouts(struct nfs4_client *clp, | |||
59 | int nfsd4_init_pnfs(void); | 61 | int nfsd4_init_pnfs(void); |
60 | void nfsd4_exit_pnfs(void); | 62 | void nfsd4_exit_pnfs(void); |
61 | #else | 63 | #else |
64 | struct nfs4_client; | ||
65 | struct nfs4_file; | ||
66 | |||
62 | static inline void nfsd4_setup_layout_type(struct svc_export *exp) | 67 | static inline void nfsd4_setup_layout_type(struct svc_export *exp) |
63 | { | 68 | { |
64 | } | 69 | } |