| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 6/8] xfs: make xfs_inode_item_size idempotent |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Tue, 21 Feb 2012 16:14:04 +1100 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20120221003907.081625923@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20120221003824.415885674@xxxxxxxxxxxxxxxxxxxxxx> <20120221003907.081625923@xxxxxxxxxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Mon, Feb 20, 2012 at 07:38:30PM -0500, Christoph Hellwig wrote:
> Move all code messing with the inode log item flags into xfs_inode_item_format
> to make sure xfs_inode_item_size really only calculates the the number of
> vectors, but doesn't modify any state of the inode item.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Looks ok so:
Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
One minor cleanup:
> case XFS_DINODE_FMT_LOCAL:
> - ASSERT(!(iip->ili_format.ilf_fields &
> - (XFS_ILOG_ABROOT | XFS_ILOG_AEXT)));
> - if (iip->ili_format.ilf_fields & XFS_ILOG_ADATA) {
> + iip->ili_format.ilf_fields &=
> + ~(XFS_ILOG_AEXT | XFS_ILOG_ABROOT);
> +
> + if ((iip->ili_format.ilf_fields & XFS_ILOG_ADATA) &&
> + ip->i_afp->if_bytes > 0) {
> ASSERT(ip->i_afp->if_bytes > 0);
That assert can go - it's checked in the if statement now.
Cheers,
Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx
|
| Previous by Date: | Re: [PATCH 5/8] xfs: log timestamp updates, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH 7/8] xfs: split in-core and on-disk inode log item fields, Dave Chinner |
| Previous by Thread: | [PATCH 6/8] xfs: make xfs_inode_item_size idempotent, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 6/8] xfs: make xfs_inode_item_size idempotent, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |