xfs_iops.c (957ee13e204a5ffe814139aa89e62eece4b969fd) | xfs_iops.c (a71895c5dad1ab8cf30622e208d148298ab602e5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 467 unchanged lines hidden (view full) --- 476 477 ASSERT(ip->i_df.if_flags & XFS_IFINLINE); 478 479 /* 480 * The VFS crashes on a NULL pointer, so return -EFSCORRUPTED if 481 * if_data is junk. 482 */ 483 link = ip->i_df.if_u1.if_data; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 467 unchanged lines hidden (view full) --- 476 477 ASSERT(ip->i_df.if_flags & XFS_IFINLINE); 478 479 /* 480 * The VFS crashes on a NULL pointer, so return -EFSCORRUPTED if 481 * if_data is junk. 482 */ 483 link = ip->i_df.if_u1.if_data; |
484 if (!link) { 485 XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, ip->i_mount); | 484 if (XFS_IS_CORRUPT(ip->i_mount, !link)) |
486 return ERR_PTR(-EFSCORRUPTED); | 485 return ERR_PTR(-EFSCORRUPTED); |
487 } | |
488 return link; 489} 490 491static uint32_t 492xfs_stat_blksize( 493 struct xfs_inode *ip) 494{ 495 struct xfs_mount *mp = ip->i_mount; --- 884 unchanged lines hidden --- | 486 return link; 487} 488 489static uint32_t 490xfs_stat_blksize( 491 struct xfs_inode *ip) 492{ 493 struct xfs_mount *mp = ip->i_mount; --- 884 unchanged lines hidden --- |