18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (c) 2000-2001 Christoph Hellwig. 38c2ecf20Sopenharmony_ci * Copyright (c) 2016 Krzysztof Blaszkowski 48c2ecf20Sopenharmony_ci * All rights reserved. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 78c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions 88c2ecf20Sopenharmony_ci * are met: 98c2ecf20Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright 108c2ecf20Sopenharmony_ci * notice, this list of conditions, and the following disclaimer, 118c2ecf20Sopenharmony_ci * without modification. 128c2ecf20Sopenharmony_ci * 2. The name of the author may not be used to endorse or promote products 138c2ecf20Sopenharmony_ci * derived from this software without specific prior written permission. 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * Alternatively, this software may be distributed under the terms of the 168c2ecf20Sopenharmony_ci * GNU General Public License ("GPL"). 178c2ecf20Sopenharmony_ci * 188c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 198c2ecf20Sopenharmony_ci * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 208c2ecf20Sopenharmony_ci * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 218c2ecf20Sopenharmony_ci * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 228c2ecf20Sopenharmony_ci * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 238c2ecf20Sopenharmony_ci * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 248c2ecf20Sopenharmony_ci * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 258c2ecf20Sopenharmony_ci * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 268c2ecf20Sopenharmony_ci * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 278c2ecf20Sopenharmony_ci * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 288c2ecf20Sopenharmony_ci * SUCH DAMAGE. 298c2ecf20Sopenharmony_ci * 308c2ecf20Sopenharmony_ci */ 318c2ecf20Sopenharmony_ci#ifndef _VXFS_SUPER_H_ 328c2ecf20Sopenharmony_ci#define _VXFS_SUPER_H_ 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci/* 358c2ecf20Sopenharmony_ci * Veritas filesystem driver - superblock structure. 368c2ecf20Sopenharmony_ci * 378c2ecf20Sopenharmony_ci * This file contains the definition of the disk and core 388c2ecf20Sopenharmony_ci * superblocks of the Veritas Filesystem. 398c2ecf20Sopenharmony_ci */ 408c2ecf20Sopenharmony_ci#include <linux/types.h> 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci/* 438c2ecf20Sopenharmony_ci * Superblock magic number (vxfs_super->vs_magic). 448c2ecf20Sopenharmony_ci */ 458c2ecf20Sopenharmony_ci#define VXFS_SUPER_MAGIC 0xa501FCF5 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci/* 488c2ecf20Sopenharmony_ci * The root inode. 498c2ecf20Sopenharmony_ci */ 508c2ecf20Sopenharmony_ci#define VXFS_ROOT_INO 2 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci/* 538c2ecf20Sopenharmony_ci * Num of entries in free extent array 548c2ecf20Sopenharmony_ci */ 558c2ecf20Sopenharmony_ci#define VXFS_NEFREE 32 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_cienum vxfs_byte_order { 588c2ecf20Sopenharmony_ci VXFS_BO_LE, 598c2ecf20Sopenharmony_ci VXFS_BO_BE, 608c2ecf20Sopenharmony_ci}; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_citypedef __u16 __bitwise __fs16; 638c2ecf20Sopenharmony_citypedef __u32 __bitwise __fs32; 648c2ecf20Sopenharmony_citypedef __u64 __bitwise __fs64; 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci/* 678c2ecf20Sopenharmony_ci * VxFS superblock (disk). 688c2ecf20Sopenharmony_ci */ 698c2ecf20Sopenharmony_cistruct vxfs_sb { 708c2ecf20Sopenharmony_ci /* 718c2ecf20Sopenharmony_ci * Readonly fields for the version 1 superblock. 728c2ecf20Sopenharmony_ci * 738c2ecf20Sopenharmony_ci * Lots of this fields are no more used by version 2 748c2ecf20Sopenharmony_ci * and never filesystems. 758c2ecf20Sopenharmony_ci */ 768c2ecf20Sopenharmony_ci __fs32 vs_magic; /* Magic number */ 778c2ecf20Sopenharmony_ci __fs32 vs_version; /* VxFS version */ 788c2ecf20Sopenharmony_ci __fs32 vs_ctime; /* create time - secs */ 798c2ecf20Sopenharmony_ci __fs32 vs_cutime; /* create time - usecs */ 808c2ecf20Sopenharmony_ci __fs32 __unused1; /* unused */ 818c2ecf20Sopenharmony_ci __fs32 __unused2; /* unused */ 828c2ecf20Sopenharmony_ci __fs32 vs_old_logstart; /* obsolete */ 838c2ecf20Sopenharmony_ci __fs32 vs_old_logend; /* obsolete */ 848c2ecf20Sopenharmony_ci __fs32 vs_bsize; /* block size */ 858c2ecf20Sopenharmony_ci __fs32 vs_size; /* number of blocks */ 868c2ecf20Sopenharmony_ci __fs32 vs_dsize; /* number of data blocks */ 878c2ecf20Sopenharmony_ci __fs32 vs_old_ninode; /* obsolete */ 888c2ecf20Sopenharmony_ci __fs32 vs_old_nau; /* obsolete */ 898c2ecf20Sopenharmony_ci __fs32 __unused3; /* unused */ 908c2ecf20Sopenharmony_ci __fs32 vs_old_defiextsize; /* obsolete */ 918c2ecf20Sopenharmony_ci __fs32 vs_old_ilbsize; /* obsolete */ 928c2ecf20Sopenharmony_ci __fs32 vs_immedlen; /* size of immediate data area */ 938c2ecf20Sopenharmony_ci __fs32 vs_ndaddr; /* number of direct extentes */ 948c2ecf20Sopenharmony_ci __fs32 vs_firstau; /* address of first AU */ 958c2ecf20Sopenharmony_ci __fs32 vs_emap; /* offset of extent map in AU */ 968c2ecf20Sopenharmony_ci __fs32 vs_imap; /* offset of inode map in AU */ 978c2ecf20Sopenharmony_ci __fs32 vs_iextop; /* offset of ExtOp. map in AU */ 988c2ecf20Sopenharmony_ci __fs32 vs_istart; /* offset of inode list in AU */ 998c2ecf20Sopenharmony_ci __fs32 vs_bstart; /* offset of fdblock in AU */ 1008c2ecf20Sopenharmony_ci __fs32 vs_femap; /* aufirst + emap */ 1018c2ecf20Sopenharmony_ci __fs32 vs_fimap; /* aufirst + imap */ 1028c2ecf20Sopenharmony_ci __fs32 vs_fiextop; /* aufirst + iextop */ 1038c2ecf20Sopenharmony_ci __fs32 vs_fistart; /* aufirst + istart */ 1048c2ecf20Sopenharmony_ci __fs32 vs_fbstart; /* aufirst + bstart */ 1058c2ecf20Sopenharmony_ci __fs32 vs_nindir; /* number of entries in indir */ 1068c2ecf20Sopenharmony_ci __fs32 vs_aulen; /* length of AU in blocks */ 1078c2ecf20Sopenharmony_ci __fs32 vs_auimlen; /* length of imap in blocks */ 1088c2ecf20Sopenharmony_ci __fs32 vs_auemlen; /* length of emap in blocks */ 1098c2ecf20Sopenharmony_ci __fs32 vs_auilen; /* length of ilist in blocks */ 1108c2ecf20Sopenharmony_ci __fs32 vs_aupad; /* length of pad in blocks */ 1118c2ecf20Sopenharmony_ci __fs32 vs_aublocks; /* data blocks in AU */ 1128c2ecf20Sopenharmony_ci __fs32 vs_maxtier; /* log base 2 of aublocks */ 1138c2ecf20Sopenharmony_ci __fs32 vs_inopb; /* number of inodes per blk */ 1148c2ecf20Sopenharmony_ci __fs32 vs_old_inopau; /* obsolete */ 1158c2ecf20Sopenharmony_ci __fs32 vs_old_inopilb; /* obsolete */ 1168c2ecf20Sopenharmony_ci __fs32 vs_old_ndiripau; /* obsolete */ 1178c2ecf20Sopenharmony_ci __fs32 vs_iaddrlen; /* size of indirect addr ext. */ 1188c2ecf20Sopenharmony_ci __fs32 vs_bshift; /* log base 2 of bsize */ 1198c2ecf20Sopenharmony_ci __fs32 vs_inoshift; /* log base 2 of inobp */ 1208c2ecf20Sopenharmony_ci __fs32 vs_bmask; /* ~( bsize - 1 ) */ 1218c2ecf20Sopenharmony_ci __fs32 vs_boffmask; /* bsize - 1 */ 1228c2ecf20Sopenharmony_ci __fs32 vs_old_inomask; /* old_inopilb - 1 */ 1238c2ecf20Sopenharmony_ci __fs32 vs_checksum; /* checksum of V1 data */ 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci /* 1268c2ecf20Sopenharmony_ci * Version 1, writable 1278c2ecf20Sopenharmony_ci */ 1288c2ecf20Sopenharmony_ci __fs32 vs_free; /* number of free blocks */ 1298c2ecf20Sopenharmony_ci __fs32 vs_ifree; /* number of free inodes */ 1308c2ecf20Sopenharmony_ci __fs32 vs_efree[VXFS_NEFREE]; /* number of free extents by size */ 1318c2ecf20Sopenharmony_ci __fs32 vs_flags; /* flags ?!? */ 1328c2ecf20Sopenharmony_ci __u8 vs_mod; /* filesystem has been changed */ 1338c2ecf20Sopenharmony_ci __u8 vs_clean; /* clean FS */ 1348c2ecf20Sopenharmony_ci __fs16 __unused4; /* unused */ 1358c2ecf20Sopenharmony_ci __fs32 vs_firstlogid; /* mount time log ID */ 1368c2ecf20Sopenharmony_ci __fs32 vs_wtime; /* last time written - sec */ 1378c2ecf20Sopenharmony_ci __fs32 vs_wutime; /* last time written - usec */ 1388c2ecf20Sopenharmony_ci __u8 vs_fname[6]; /* FS name */ 1398c2ecf20Sopenharmony_ci __u8 vs_fpack[6]; /* FS pack name */ 1408c2ecf20Sopenharmony_ci __fs32 vs_logversion; /* log format version */ 1418c2ecf20Sopenharmony_ci __u32 __unused5; /* unused */ 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci /* 1448c2ecf20Sopenharmony_ci * Version 2, Read-only 1458c2ecf20Sopenharmony_ci */ 1468c2ecf20Sopenharmony_ci __fs32 vs_oltext[2]; /* OLT extent and replica */ 1478c2ecf20Sopenharmony_ci __fs32 vs_oltsize; /* OLT extent size */ 1488c2ecf20Sopenharmony_ci __fs32 vs_iauimlen; /* size of inode map */ 1498c2ecf20Sopenharmony_ci __fs32 vs_iausize; /* size of IAU in blocks */ 1508c2ecf20Sopenharmony_ci __fs32 vs_dinosize; /* size of inode in bytes */ 1518c2ecf20Sopenharmony_ci __fs32 vs_old_dniaddr; /* indir levels per inode */ 1528c2ecf20Sopenharmony_ci __fs32 vs_checksum2; /* checksum of V2 RO */ 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci /* 1558c2ecf20Sopenharmony_ci * Actually much more... 1568c2ecf20Sopenharmony_ci */ 1578c2ecf20Sopenharmony_ci}; 1588c2ecf20Sopenharmony_ci 1598c2ecf20Sopenharmony_ci 1608c2ecf20Sopenharmony_ci/* 1618c2ecf20Sopenharmony_ci * In core superblock filesystem private data for VxFS. 1628c2ecf20Sopenharmony_ci */ 1638c2ecf20Sopenharmony_cistruct vxfs_sb_info { 1648c2ecf20Sopenharmony_ci struct vxfs_sb *vsi_raw; /* raw (on disk) superblock */ 1658c2ecf20Sopenharmony_ci struct buffer_head *vsi_bp; /* buffer for raw superblock*/ 1668c2ecf20Sopenharmony_ci struct inode *vsi_fship; /* fileset header inode */ 1678c2ecf20Sopenharmony_ci struct inode *vsi_ilist; /* inode list inode */ 1688c2ecf20Sopenharmony_ci struct inode *vsi_stilist; /* structural inode list inode */ 1698c2ecf20Sopenharmony_ci u_long vsi_iext; /* initial inode list */ 1708c2ecf20Sopenharmony_ci ino_t vsi_fshino; /* fileset header inode */ 1718c2ecf20Sopenharmony_ci daddr_t vsi_oltext; /* OLT extent */ 1728c2ecf20Sopenharmony_ci daddr_t vsi_oltsize; /* OLT size */ 1738c2ecf20Sopenharmony_ci enum vxfs_byte_order byte_order; 1748c2ecf20Sopenharmony_ci}; 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_cistatic inline u16 fs16_to_cpu(struct vxfs_sb_info *sbi, __fs16 a) 1778c2ecf20Sopenharmony_ci{ 1788c2ecf20Sopenharmony_ci if (sbi->byte_order == VXFS_BO_BE) 1798c2ecf20Sopenharmony_ci return be16_to_cpu((__force __be16)a); 1808c2ecf20Sopenharmony_ci else 1818c2ecf20Sopenharmony_ci return le16_to_cpu((__force __le16)a); 1828c2ecf20Sopenharmony_ci} 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_cistatic inline u32 fs32_to_cpu(struct vxfs_sb_info *sbi, __fs32 a) 1858c2ecf20Sopenharmony_ci{ 1868c2ecf20Sopenharmony_ci if (sbi->byte_order == VXFS_BO_BE) 1878c2ecf20Sopenharmony_ci return be32_to_cpu((__force __be32)a); 1888c2ecf20Sopenharmony_ci else 1898c2ecf20Sopenharmony_ci return le32_to_cpu((__force __le32)a); 1908c2ecf20Sopenharmony_ci} 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_cistatic inline u64 fs64_to_cpu(struct vxfs_sb_info *sbi, __fs64 a) 1938c2ecf20Sopenharmony_ci{ 1948c2ecf20Sopenharmony_ci if (sbi->byte_order == VXFS_BO_BE) 1958c2ecf20Sopenharmony_ci return be64_to_cpu((__force __be64)a); 1968c2ecf20Sopenharmony_ci else 1978c2ecf20Sopenharmony_ci return le64_to_cpu((__force __le64)a); 1988c2ecf20Sopenharmony_ci} 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci/* 2018c2ecf20Sopenharmony_ci * File modes. File types above 0xf000 are vxfs internal only, they should 2028c2ecf20Sopenharmony_ci * not be passed back to higher levels of the system. vxfs file types must 2038c2ecf20Sopenharmony_ci * never have one of the regular file type bits set. 2048c2ecf20Sopenharmony_ci */ 2058c2ecf20Sopenharmony_cienum vxfs_mode { 2068c2ecf20Sopenharmony_ci VXFS_ISUID = 0x00000800, /* setuid */ 2078c2ecf20Sopenharmony_ci VXFS_ISGID = 0x00000400, /* setgid */ 2088c2ecf20Sopenharmony_ci VXFS_ISVTX = 0x00000200, /* sticky bit */ 2098c2ecf20Sopenharmony_ci VXFS_IREAD = 0x00000100, /* read */ 2108c2ecf20Sopenharmony_ci VXFS_IWRITE = 0x00000080, /* write */ 2118c2ecf20Sopenharmony_ci VXFS_IEXEC = 0x00000040, /* exec */ 2128c2ecf20Sopenharmony_ci 2138c2ecf20Sopenharmony_ci VXFS_IFIFO = 0x00001000, /* Named pipe */ 2148c2ecf20Sopenharmony_ci VXFS_IFCHR = 0x00002000, /* Character device */ 2158c2ecf20Sopenharmony_ci VXFS_IFDIR = 0x00004000, /* Directory */ 2168c2ecf20Sopenharmony_ci VXFS_IFNAM = 0x00005000, /* Xenix device ?? */ 2178c2ecf20Sopenharmony_ci VXFS_IFBLK = 0x00006000, /* Block device */ 2188c2ecf20Sopenharmony_ci VXFS_IFREG = 0x00008000, /* Regular file */ 2198c2ecf20Sopenharmony_ci VXFS_IFCMP = 0x00009000, /* Compressed file ?!? */ 2208c2ecf20Sopenharmony_ci VXFS_IFLNK = 0x0000a000, /* Symlink */ 2218c2ecf20Sopenharmony_ci VXFS_IFSOC = 0x0000c000, /* Socket */ 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ci /* VxFS internal */ 2248c2ecf20Sopenharmony_ci VXFS_IFFSH = 0x10000000, /* Fileset header */ 2258c2ecf20Sopenharmony_ci VXFS_IFILT = 0x20000000, /* Inode list */ 2268c2ecf20Sopenharmony_ci VXFS_IFIAU = 0x30000000, /* Inode allocation unit */ 2278c2ecf20Sopenharmony_ci VXFS_IFCUT = 0x40000000, /* Current usage table */ 2288c2ecf20Sopenharmony_ci VXFS_IFATT = 0x50000000, /* Attr. inode */ 2298c2ecf20Sopenharmony_ci VXFS_IFLCT = 0x60000000, /* Link count table */ 2308c2ecf20Sopenharmony_ci VXFS_IFIAT = 0x70000000, /* Indirect attribute file */ 2318c2ecf20Sopenharmony_ci VXFS_IFEMR = 0x80000000, /* Extent map reorg file */ 2328c2ecf20Sopenharmony_ci VXFS_IFQUO = 0x90000000, /* BSD quota file */ 2338c2ecf20Sopenharmony_ci VXFS_IFPTI = 0xa0000000, /* "Pass through" inode */ 2348c2ecf20Sopenharmony_ci VXFS_IFLAB = 0x11000000, /* Device label file */ 2358c2ecf20Sopenharmony_ci VXFS_IFOLT = 0x12000000, /* OLT file */ 2368c2ecf20Sopenharmony_ci VXFS_IFLOG = 0x13000000, /* Log file */ 2378c2ecf20Sopenharmony_ci VXFS_IFEMP = 0x14000000, /* Extent map file */ 2388c2ecf20Sopenharmony_ci VXFS_IFEAU = 0x15000000, /* Extent AU file */ 2398c2ecf20Sopenharmony_ci VXFS_IFAUS = 0x16000000, /* Extent AU summary file */ 2408c2ecf20Sopenharmony_ci VXFS_IFDEV = 0x17000000, /* Device config file */ 2418c2ecf20Sopenharmony_ci 2428c2ecf20Sopenharmony_ci}; 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci#define VXFS_TYPE_MASK 0xfffff000 2458c2ecf20Sopenharmony_ci 2468c2ecf20Sopenharmony_ci#define VXFS_IS_TYPE(ip,type) (((ip)->vii_mode & VXFS_TYPE_MASK) == (type)) 2478c2ecf20Sopenharmony_ci#define VXFS_ISFIFO(x) VXFS_IS_TYPE((x),VXFS_IFIFO) 2488c2ecf20Sopenharmony_ci#define VXFS_ISCHR(x) VXFS_IS_TYPE((x),VXFS_IFCHR) 2498c2ecf20Sopenharmony_ci#define VXFS_ISDIR(x) VXFS_IS_TYPE((x),VXFS_IFDIR) 2508c2ecf20Sopenharmony_ci#define VXFS_ISNAM(x) VXFS_IS_TYPE((x),VXFS_IFNAM) 2518c2ecf20Sopenharmony_ci#define VXFS_ISBLK(x) VXFS_IS_TYPE((x),VXFS_IFBLK) 2528c2ecf20Sopenharmony_ci#define VXFS_ISLNK(x) VXFS_IS_TYPE((x),VXFS_IFLNK) 2538c2ecf20Sopenharmony_ci#define VXFS_ISREG(x) VXFS_IS_TYPE((x),VXFS_IFREG) 2548c2ecf20Sopenharmony_ci#define VXFS_ISCMP(x) VXFS_IS_TYPE((x),VXFS_IFCMP) 2558c2ecf20Sopenharmony_ci#define VXFS_ISSOC(x) VXFS_IS_TYPE((x),VXFS_IFSOC) 2568c2ecf20Sopenharmony_ci 2578c2ecf20Sopenharmony_ci#define VXFS_ISFSH(x) VXFS_IS_TYPE((x),VXFS_IFFSH) 2588c2ecf20Sopenharmony_ci#define VXFS_ISILT(x) VXFS_IS_TYPE((x),VXFS_IFILT) 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_ci/* 2618c2ecf20Sopenharmony_ci * Inmode organisation types. 2628c2ecf20Sopenharmony_ci */ 2638c2ecf20Sopenharmony_cienum { 2648c2ecf20Sopenharmony_ci VXFS_ORG_NONE = 0, /* Inode has *no* format ?!? */ 2658c2ecf20Sopenharmony_ci VXFS_ORG_EXT4 = 1, /* Ext4 */ 2668c2ecf20Sopenharmony_ci VXFS_ORG_IMMED = 2, /* All data stored in inode */ 2678c2ecf20Sopenharmony_ci VXFS_ORG_TYPED = 3, /* Typed extents */ 2688c2ecf20Sopenharmony_ci}; 2698c2ecf20Sopenharmony_ci 2708c2ecf20Sopenharmony_ci#define VXFS_IS_ORG(ip,org) ((ip)->vii_orgtype == (org)) 2718c2ecf20Sopenharmony_ci#define VXFS_ISNONE(ip) VXFS_IS_ORG((ip), VXFS_ORG_NONE) 2728c2ecf20Sopenharmony_ci#define VXFS_ISEXT4(ip) VXFS_IS_ORG((ip), VXFS_ORG_EXT4) 2738c2ecf20Sopenharmony_ci#define VXFS_ISIMMED(ip) VXFS_IS_ORG((ip), VXFS_ORG_IMMED) 2748c2ecf20Sopenharmony_ci#define VXFS_ISTYPED(ip) VXFS_IS_ORG((ip), VXFS_ORG_TYPED) 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci/* 2778c2ecf20Sopenharmony_ci * Get filesystem private data from VFS superblock. 2788c2ecf20Sopenharmony_ci */ 2798c2ecf20Sopenharmony_ci#define VXFS_SBI(sbp) \ 2808c2ecf20Sopenharmony_ci ((struct vxfs_sb_info *)(sbp)->s_fs_info) 2818c2ecf20Sopenharmony_ci 2828c2ecf20Sopenharmony_ci#endif /* _VXFS_SUPER_H_ */ 283