diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
| -rw-r--r-- | fs/xfs/xfs_inode.c | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index ee3e0f284287..9c39251961a3 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -1635,7 +1635,7 @@ retry:  	iip = ip->i_itemp;  	if (__xfs_iflags_test(ip, XFS_IFLUSHING)) {  		ASSERT(!list_empty(&iip->ili_item.li_bio_list)); -		ASSERT(iip->ili_last_fields); +		ASSERT(iip->ili_last_fields || xlog_is_shutdown(mp->m_log));  		goto out_iunlock;  	} @@ -2932,12 +2932,9 @@ xfs_inode_reload_unlinked(  	struct xfs_inode	*ip)  {  	struct xfs_trans	*tp; -	int			error; - -	error = xfs_trans_alloc_empty(ip->i_mount, &tp); -	if (error) -		return error; +	int			error = 0; +	tp = xfs_trans_alloc_empty(ip->i_mount);  	xfs_ilock(ip, XFS_ILOCK_SHARED);  	if (xfs_inode_unlinked_incomplete(ip))  		error = xfs_inode_reload_unlinked_bucket(tp, ip); | 
