| nfs4_fs.h (ccde1e9c0130b4182ae91adac3908f6f3277580a) | nfs4_fs.h (95ad37f90c338e3fd4abf61cecfe02b6f3e080f0) |
|---|---|
| 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * linux/fs/nfs/nfs4_fs.h 4 * 5 * Copyright (C) 2005 Trond Myklebust 6 * 7 * NFSv4-specific filesystem definitions and declarations 8 */ --- 612 unchanged lines hidden (view full) --- 621 622static inline bool nfs4_state_match_open_stateid_other(const struct nfs4_state *state, 623 const nfs4_stateid *stateid) 624{ 625 return test_bit(NFS_OPEN_STATE, &state->flags) && 626 nfs4_stateid_match_other(&state->open_stateid, stateid); 627} 628 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * linux/fs/nfs/nfs4_fs.h 4 * 5 * Copyright (C) 2005 Trond Myklebust 6 * 7 * NFSv4-specific filesystem definitions and declarations 8 */ --- 612 unchanged lines hidden (view full) --- 621 622static inline bool nfs4_state_match_open_stateid_other(const struct nfs4_state *state, 623 const nfs4_stateid *stateid) 624{ 625 return test_bit(NFS_OPEN_STATE, &state->flags) && 626 nfs4_stateid_match_other(&state->open_stateid, stateid); 627} 628 |
| 629/* nfs42xattr.c */ 630#ifdef CONFIG_NFS_V4_2 631extern int __init nfs4_xattr_cache_init(void); 632extern void nfs4_xattr_cache_exit(void); 633extern void nfs4_xattr_cache_add(struct inode *inode, const char *name, 634 const char *buf, struct page **pages, 635 ssize_t buflen); 636extern void nfs4_xattr_cache_remove(struct inode *inode, const char *name); 637extern ssize_t nfs4_xattr_cache_get(struct inode *inode, const char *name, 638 char *buf, ssize_t buflen); 639extern void nfs4_xattr_cache_set_list(struct inode *inode, const char *buf, 640 ssize_t buflen); 641extern ssize_t nfs4_xattr_cache_list(struct inode *inode, char *buf, 642 ssize_t buflen); 643extern void nfs4_xattr_cache_zap(struct inode *inode); |
|
| 629#else | 644#else |
| 645static inline void nfs4_xattr_cache_zap(struct inode *inode) 646{ 647} 648#endif /* CONFIG_NFS_V4_2 */ |
|
| 630 | 649 |
| 650#else /* CONFIG_NFS_V4 */ 651 |
|
| 631#define nfs4_close_state(a, b) do { } while (0) 632#define nfs4_close_sync(a, b) do { } while (0) 633#define nfs4_state_protect(a, b, c, d) do { } while (0) 634#define nfs4_state_protect_write(a, b, c, d) do { } while (0) 635 | 652#define nfs4_close_state(a, b) do { } while (0) 653#define nfs4_close_sync(a, b) do { } while (0) 654#define nfs4_state_protect(a, b, c, d) do { } while (0) 655#define nfs4_state_protect_write(a, b, c, d) do { } while (0) 656 |
| 657 |
|
| 636#endif /* CONFIG_NFS_V4 */ 637#endif /* __LINUX_FS_NFS_NFS4_FS.H */ | 658#endif /* CONFIG_NFS_V4 */ 659#endif /* __LINUX_FS_NFS_NFS4_FS.H */ |