filelayout.h (0c49cd295d42d0032af11d55e2140dbec11dc8d0) | filelayout.h (f54bcf2ecee982da47c2baf8bd87fd9ad9984651) |
---|---|
1/* 2 * NFSv4 file layout driver data structures. 3 * 4 * Copyright (c) 2002 5 * The Regents of the University of Michigan 6 * All Rights Reserved 7 * 8 * Dean Hildebrand <dhildebz@umich.edu> --- 105 unchanged lines hidden (view full) --- 114} 115 116static inline struct nfs4_deviceid_node * 117FILELAYOUT_DEVID_NODE(struct pnfs_layout_segment *lseg) 118{ 119 return &FILELAYOUT_LSEG(lseg)->dsaddr->id_node; 120} 121 | 1/* 2 * NFSv4 file layout driver data structures. 3 * 4 * Copyright (c) 2002 5 * The Regents of the University of Michigan 6 * All Rights Reserved 7 * 8 * Dean Hildebrand <dhildebz@umich.edu> --- 105 unchanged lines hidden (view full) --- 114} 115 116static inline struct nfs4_deviceid_node * 117FILELAYOUT_DEVID_NODE(struct pnfs_layout_segment *lseg) 118{ 119 return &FILELAYOUT_LSEG(lseg)->dsaddr->id_node; 120} 121 |
122static inline void 123filelayout_mark_devid_invalid(struct nfs4_deviceid_node *node) 124{ 125 u32 *p = (u32 *)&node->deviceid; 126 127 printk(KERN_WARNING "NFS: Deviceid [%x%x%x%x] marked out of use.\n", 128 p[0], p[1], p[2], p[3]); 129 130 set_bit(NFS_DEVICEID_INVALID, &node->flags); 131} 132 | |
133static inline bool 134filelayout_test_devid_invalid(struct nfs4_deviceid_node *node) 135{ 136 return test_bit(NFS_DEVICEID_INVALID, &node->flags); 137} 138 139extern bool 140filelayout_test_devid_unavailable(struct nfs4_deviceid_node *node); --- 17 unchanged lines hidden --- | 122static inline bool 123filelayout_test_devid_invalid(struct nfs4_deviceid_node *node) 124{ 125 return test_bit(NFS_DEVICEID_INVALID, &node->flags); 126} 127 128extern bool 129filelayout_test_devid_unavailable(struct nfs4_deviceid_node *node); --- 17 unchanged lines hidden --- |