diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index bc8c8c7f9039..e8274d6b7237 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -146,51 +146,6 @@ xfs_inobp_check( | |||
146 | #endif | 146 | #endif |
147 | 147 | ||
148 | /* | 148 | /* |
149 | * called from bwrite on xfs inode buffers | ||
150 | */ | ||
151 | void | ||
152 | xfs_inobp_bwcheck(xfs_buf_t *bp) | ||
153 | { | ||
154 | xfs_mount_t *mp; | ||
155 | int i; | ||
156 | int j; | ||
157 | xfs_dinode_t *dip; | ||
158 | |||
159 | ASSERT(XFS_BUF_FSPRIVATE3(bp, void *) != NULL); | ||
160 | |||
161 | mp = XFS_BUF_FSPRIVATE3(bp, xfs_mount_t *); | ||
162 | |||
163 | |||
164 | j = mp->m_inode_cluster_size >> mp->m_sb.sb_inodelog; | ||
165 | |||
166 | for (i = 0; i < j; i++) { | ||
167 | dip = (xfs_dinode_t *) xfs_buf_offset(bp, | ||
168 | i * mp->m_sb.sb_inodesize); | ||
169 | if (INT_GET(dip->di_core.di_magic, ARCH_CONVERT) != XFS_DINODE_MAGIC) { | ||
170 | cmn_err(CE_WARN, | ||
171 | "Bad magic # 0x%x in XFS inode buffer 0x%Lx, starting blockno %Ld, offset 0x%x", | ||
172 | INT_GET(dip->di_core.di_magic, ARCH_CONVERT), | ||
173 | (__uint64_t)(__psunsigned_t) bp, | ||
174 | (__int64_t) XFS_BUF_ADDR(bp), | ||
175 | xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize)); | ||
176 | xfs_fs_cmn_err(CE_WARN, mp, | ||
177 | "corrupt, unmount and run xfs_repair"); | ||
178 | } | ||
179 | if (!dip->di_next_unlinked) { | ||
180 | cmn_err(CE_WARN, | ||
181 | "Bad next_unlinked field (0) in XFS inode buffer 0x%p, starting blockno %Ld, offset 0x%x", | ||
182 | (__uint64_t)(__psunsigned_t) bp, | ||
183 | (__int64_t) XFS_BUF_ADDR(bp), | ||
184 | xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize)); | ||
185 | xfs_fs_cmn_err(CE_WARN, mp, | ||
186 | "corrupt, unmount and run xfs_repair"); | ||
187 | } | ||
188 | } | ||
189 | |||
190 | return; | ||
191 | } | ||
192 | |||
193 | /* | ||
194 | * This routine is called to map an inode number within a file | 149 | * This routine is called to map an inode number within a file |
195 | * system to the buffer containing the on-disk version of the | 150 | * system to the buffer containing the on-disk version of the |
196 | * inode. It returns a pointer to the buffer containing the | 151 | * inode. It returns a pointer to the buffer containing the |