xfs: remove XFS_IFINLINE
Just check for an inline format fork instead of the using the equivalent in-memory XFS_IFINLINE flag. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
committed by
Darrick J. Wong
parent
ac1e067211
commit
0779f4a68d
@@ -519,7 +519,7 @@ xfs_vn_get_link_inline(
|
||||
struct xfs_inode *ip = XFS_I(inode);
|
||||
char *link;
|
||||
|
||||
ASSERT(ip->i_df.if_flags & XFS_IFINLINE);
|
||||
ASSERT(ip->i_df.if_format == XFS_DINODE_FMT_LOCAL);
|
||||
|
||||
/*
|
||||
* The VFS crashes on a NULL pointer, so return -EFSCORRUPTED if
|
||||
@@ -1401,7 +1401,7 @@ xfs_setup_iops(
|
||||
inode->i_fop = &xfs_dir_file_operations;
|
||||
break;
|
||||
case S_IFLNK:
|
||||
if (ip->i_df.if_flags & XFS_IFINLINE)
|
||||
if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL)
|
||||
inode->i_op = &xfs_inline_symlink_inode_operations;
|
||||
else
|
||||
inode->i_op = &xfs_symlink_inode_operations;
|
||||
|
||||
Reference in New Issue
Block a user