diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-25 14:45:40 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-25 14:45:40 -0400 |
| commit | cf2ec150fc5f59dbf2260863225c79aa0cfc46af (patch) | |
| tree | bd55070b0bc2f8597c35b575374bd0cd2f2d14d6 /include/linux | |
| parent | 9f4def9ae4772ea3da5e2359de698742ebae53b5 (diff) | |
| parent | e36cd4a2873c398ba188f16e4087cce7f00a1506 (diff) | |
Merge branch 'for-linus' of git://linux-nfs.org/~bfields/linux
* 'for-linus' of git://linux-nfs.org/~bfields/linux:
nfsd: don't allow setting ctime over v4
Update to NFS/RDMA documentation
locks: don't call ->copy_lock methods on return of conflicting locks
lockd: unlock lockd locks held for a certain filesystem
lockd: unlock lockd locks associated with a given server ip
leases: remove unneeded variable from fcntl_setlease().
leases: move lock allocation earlier in generic_setlease()
leases: when unlocking, skip locking-related steps
leases: fix a return-value mixup
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 1 | ||||
| -rw-r--r-- | include/linux/lockd/lockd.h | 8 | ||||
| -rw-r--r-- | include/linux/nfsd/nfsd.h | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index cc2be2cf7d41..6556f2f967e5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -973,6 +973,7 @@ extern int do_sync_mapping_range(struct address_space *mapping, loff_t offset, | |||
| 973 | /* fs/locks.c */ | 973 | /* fs/locks.c */ |
| 974 | extern void locks_init_lock(struct file_lock *); | 974 | extern void locks_init_lock(struct file_lock *); |
| 975 | extern void locks_copy_lock(struct file_lock *, struct file_lock *); | 975 | extern void locks_copy_lock(struct file_lock *, struct file_lock *); |
| 976 | extern void __locks_copy_lock(struct file_lock *, const struct file_lock *); | ||
| 976 | extern void locks_remove_posix(struct file *, fl_owner_t); | 977 | extern void locks_remove_posix(struct file *, fl_owner_t); |
| 977 | extern void locks_remove_flock(struct file *); | 978 | extern void locks_remove_flock(struct file *); |
| 978 | extern void posix_test_lock(struct file *, struct file_lock *); | 979 | extern void posix_test_lock(struct file *, struct file_lock *); |
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 94649a8da014..102d928f7206 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
| @@ -194,7 +194,7 @@ void nsm_release(struct nsm_handle *); | |||
| 194 | * This is used in garbage collection and resource reclaim | 194 | * This is used in garbage collection and resource reclaim |
| 195 | * A return value != 0 means destroy the lock/block/share | 195 | * A return value != 0 means destroy the lock/block/share |
| 196 | */ | 196 | */ |
| 197 | typedef int (*nlm_host_match_fn_t)(struct nlm_host *cur, struct nlm_host *ref); | 197 | typedef int (*nlm_host_match_fn_t)(void *cur, struct nlm_host *ref); |
| 198 | 198 | ||
| 199 | /* | 199 | /* |
| 200 | * Server-side lock handling | 200 | * Server-side lock handling |
| @@ -220,6 +220,12 @@ void nlmsvc_mark_resources(void); | |||
| 220 | void nlmsvc_free_host_resources(struct nlm_host *); | 220 | void nlmsvc_free_host_resources(struct nlm_host *); |
| 221 | void nlmsvc_invalidate_all(void); | 221 | void nlmsvc_invalidate_all(void); |
| 222 | 222 | ||
| 223 | /* | ||
| 224 | * Cluster failover support | ||
| 225 | */ | ||
| 226 | int nlmsvc_unlock_all_by_sb(struct super_block *sb); | ||
| 227 | int nlmsvc_unlock_all_by_ip(__be32 server_addr); | ||
| 228 | |||
| 223 | static inline struct inode *nlmsvc_file_inode(struct nlm_file *file) | 229 | static inline struct inode *nlmsvc_file_inode(struct nlm_file *file) |
| 224 | { | 230 | { |
| 225 | return file->f_file->f_path.dentry->d_inode; | 231 | return file->f_file->f_path.dentry->d_inode; |
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index 21ee440dd3e7..41d30c9c9de6 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h | |||
| @@ -329,7 +329,7 @@ extern struct timeval nfssvc_boot; | |||
| 329 | (FATTR4_WORD0_SIZE | FATTR4_WORD0_ACL ) | 329 | (FATTR4_WORD0_SIZE | FATTR4_WORD0_ACL ) |
| 330 | #define NFSD_WRITEABLE_ATTRS_WORD1 \ | 330 | #define NFSD_WRITEABLE_ATTRS_WORD1 \ |
| 331 | (FATTR4_WORD1_MODE | FATTR4_WORD1_OWNER | FATTR4_WORD1_OWNER_GROUP \ | 331 | (FATTR4_WORD1_MODE | FATTR4_WORD1_OWNER | FATTR4_WORD1_OWNER_GROUP \ |
| 332 | | FATTR4_WORD1_TIME_ACCESS_SET | FATTR4_WORD1_TIME_METADATA | FATTR4_WORD1_TIME_MODIFY_SET) | 332 | | FATTR4_WORD1_TIME_ACCESS_SET | FATTR4_WORD1_TIME_MODIFY_SET) |
| 333 | 333 | ||
| 334 | #endif /* CONFIG_NFSD_V4 */ | 334 | #endif /* CONFIG_NFSD_V4 */ |
| 335 | 335 | ||
