X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fxfs%2Fxfs_inode.c;h=123b20c8cbf23ddd54e697d0f3a0d058e126f44b;hb=ee0736627d3347be0be2769fa7b26431f9726c9d;hp=e7ae08d1df485105a10f89cd8e976a826e63af53;hpb=b92efa9abffc4a634cd2e7a0f81f8aa6310d67c9;p=~andy%2Flinux diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index e7ae08d1df4..123b20c8cbf 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -1258,8 +1258,10 @@ xfs_file_last_byte( * necessary. */ if (ip->i_df.if_flags & XFS_IFEXTENTS) { + xfs_ilock(ip, XFS_ILOCK_SHARED); error = xfs_bmap_last_offset(NULL, ip, &last_block, XFS_DATA_FORK); + xfs_iunlock(ip, XFS_ILOCK_SHARED); if (error) { last_block = 0; }