Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (10 days ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/fs/xfs/xfs_bmap_util.c

    r31826 r31859  
    13191319         * Now that we've unmap all full blocks we'll have to zero out any
    13201320         * partial block at the beginning and/or end.  xfs_zero_range is
    1321          * smart enough to skip any holes, including those we just created.
    1322          */
     1321         * smart enough to skip any holes, including those we just created,
     1322         * but we must take care not to zero beyond EOF and enlarge i_size.
     1323         */
     1324
     1325        if (offset >= XFS_ISIZE(ip))
     1326                return 0;
     1327
     1328        if (offset + len > XFS_ISIZE(ip))
     1329                len = XFS_ISIZE(ip) - offset;
     1330
    13231331        return xfs_zero_range(ip, offset, len, NULL);
    13241332}
Note: See TracChangeset for help on using the changeset viewer.