diff options
| author | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
|---|---|---|
| committer | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
| commit | 79828b4fa835f73cdaf4bffa48696abdcbea9d02 (patch) | |
| tree | 5e0fa7156acb75ba603022bc807df8f2fedb97a8 /fs/xfs/libxfs/xfs_ialloc.c | |
| parent | 721b51fcf91898299d96f4b72cb9434cda29dce6 (diff) | |
| parent | 8c1a9d6323abf0fb1e5dad96cf3f1c783505ea5a (diff) | |
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-fix-rt5645
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index 66efc702452a..54deb2d12ac6 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c @@ -338,7 +338,8 @@ xfs_ialloc_inode_init(  			if (version == 3) {  				free->di_ino = cpu_to_be64(ino);  				ino++; -				uuid_copy(&free->di_uuid, &mp->m_sb.sb_uuid); +				uuid_copy(&free->di_uuid, +					  &mp->m_sb.sb_meta_uuid);  				xfs_dinode_calc_crc(mp, free);  			} else if (tp) {  				/* just log the inode core */ @@ -2232,7 +2233,7 @@ xfs_imap_lookup(  	}  	xfs_trans_brelse(tp, agbp); -	xfs_btree_del_cursor(cur, XFS_BTREE_NOERROR); +	xfs_btree_del_cursor(cur, error ? XFS_BTREE_ERROR : XFS_BTREE_NOERROR);  	if (error)  		return error; @@ -2500,7 +2501,7 @@ xfs_agi_verify(  	struct xfs_agi	*agi = XFS_BUF_TO_AGI(bp);  	if (xfs_sb_version_hascrc(&mp->m_sb) && -	    !uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_uuid)) +	    !uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid))  			return false;  	/*  	 * Validate the magic number of the agi block.  |