1. 13 8月, 2011 1 次提交
    • C
      xfs: remove subdirectories · c59d87c4
      Christoph Hellwig 提交于
      Use the move from Linux 2.6 to Linux 3.x as an excuse to kill the
      annoying subdirectories in the XFS source code.  Besides the large
      amount of file rename the only changes are to the Makefile, a few
      files including headers with the subdirectory prefix, and the binary
      sysctl compat code that includes a header under fs/xfs/ from
      kernel/.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAlex Elder <aelder@sgi.com>
      c59d87c4
  2. 25 5月, 2011 1 次提交
    • C
      xfs: add online discard support · e84661aa
      Christoph Hellwig 提交于
      Now that we have reliably tracking of deleted extents in a
      transaction we can easily implement "online" discard support
      which calls blkdev_issue_discard once a transaction commits.
      
      The actual discard is a two stage operation as we first have
      to mark the busy extent as not available for reuse before we
      can start the actual discard.  Note that we don't bother
      supporting discard for the non-delaylog mode.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAlex Elder <aelder@sgi.com>
      e84661aa
  3. 23 2月, 2011 1 次提交
    • L
      xfs: check if device support discard in xfs_ioc_trim() · be715140
      Lukas Czerner 提交于
      Right now we, are relying on the fact that when we attempt to
      actually do the discard, blkdev_issue_discar() returns -EOPNOTSUPP
      and the user is informed that the device does not support discard.
      
      However, in the case where the we do not hit any suitable free
      extent to trim in FITRIM code, it will finish without any error.
      This is very confusing, because it seems that FITRIM was successful
      even though the device does not actually supports discard.
      
      Solution: Check for the discard support before attempt to search for
      free extents.
      Signed-off-by: NLukas Czerner <lczerner@redhat.com>
      Signed-off-by: NAlex Elder <aelder@sgi.com>
      be715140
  4. 22 2月, 2011 1 次提交
    • L
      xfs: check if device support discard in xfs_ioc_trim() · 5d157655
      Lukas Czerner 提交于
      Right now we, are relying on the fact that when we attempt to
      actually do the discard, blkdev_issue_discar() returns -EOPNOTSUPP
      and the user is informed that the device does not support discard.
      
      However, in the case where the we do not hit any suitable free
      extent to trim in FITRIM code, it will finish without any error.
      This is very confusing, because it seems that FITRIM was successful
      even though the device does not actually supports discard.
      
      Solution: Check for the discard support before attempt to search for
      free extents.
      Signed-off-by: NLukas Czerner <lczerner@redhat.com>
      Signed-off-by: NAlex Elder <aelder@sgi.com>
      5d157655
  5. 12 1月, 2011 1 次提交