diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-02-04 20:13:46 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 02:23:15 -0500 |
commit | 222096ae7f7616caa9e4150948096160cc8a8141 (patch) | |
tree | 0740ca11affec2f153e84d7d096d1c11466879e6 /fs/xfs/xfs_vnodeops.c | |
parent | de08dbc1977419efa47eb71f10d96a98eb5bb111 (diff) |
[XFS] stop updating inode->i_blocks
The VFS doesn't use i_blocks, it's only used by generic_fillattr and the
generic quota code which XFS doesn't use. In XFS there is one use to check
whether we have an inline or out of line sumlink, but we can replace that
with a check of the XFS_IFINLINE inode flag.
SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:30391a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 27e1bea8169f..51305242ff8c 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -1536,9 +1536,6 @@ xfs_release( | |||
1536 | error = xfs_free_eofblocks(mp, ip, XFS_FREE_EOF_LOCK); | 1536 | error = xfs_free_eofblocks(mp, ip, XFS_FREE_EOF_LOCK); |
1537 | if (error) | 1537 | if (error) |
1538 | return error; | 1538 | return error; |
1539 | /* Update linux inode block count after free above */ | ||
1540 | vn_to_inode(vp)->i_blocks = XFS_FSB_TO_BB(mp, | ||
1541 | ip->i_d.di_nblocks + ip->i_delayed_blks); | ||
1542 | } | 1539 | } |
1543 | } | 1540 | } |
1544 | 1541 | ||
@@ -1612,9 +1609,6 @@ xfs_inactive( | |||
1612 | error = xfs_free_eofblocks(mp, ip, XFS_FREE_EOF_LOCK); | 1609 | error = xfs_free_eofblocks(mp, ip, XFS_FREE_EOF_LOCK); |
1613 | if (error) | 1610 | if (error) |
1614 | return VN_INACTIVE_CACHE; | 1611 | return VN_INACTIVE_CACHE; |
1615 | /* Update linux inode block count after free above */ | ||
1616 | vn_to_inode(vp)->i_blocks = XFS_FSB_TO_BB(mp, | ||
1617 | ip->i_d.di_nblocks + ip->i_delayed_blks); | ||
1618 | } | 1612 | } |
1619 | goto out; | 1613 | goto out; |
1620 | } | 1614 | } |