freevxfs: implement ->alloc_inode and ->destroy_inode
This driver predates those methods and was trying to be clever allocating it's own private data. Switch to the generic scheme used by other file systems. Based on an earlier patch from Krzysztof Błaszkowski <kb@sysmikro.com.pl>. Signed-off-by: Christoph Hellwig <hch@lst.de>
此提交包含在:
@@ -151,6 +151,8 @@ struct vxfs_dinode {
|
||||
* The inode as represented in the main memory.
|
||||
*/
|
||||
struct vxfs_inode_info {
|
||||
struct inode vfs_inode;
|
||||
|
||||
__u32 vii_mode;
|
||||
__u32 vii_nlink; /* Link count */
|
||||
__u32 vii_uid; /* UID */
|
||||
@@ -183,4 +185,9 @@ struct vxfs_inode_info {
|
||||
#define vii_ext4 vii_org.ext4
|
||||
#define vii_typed vii_org.typed
|
||||
|
||||
static inline struct vxfs_inode_info *VXFS_INO(struct inode *inode)
|
||||
{
|
||||
return container_of(inode, struct vxfs_inode_info, vfs_inode);
|
||||
}
|
||||
|
||||
#endif /* _VXFS_INODE_H_ */
|
||||
|
新增問題並參考
封鎖使用者