summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2011-06-23 01:35:00 +0000
committerAlex Elder <aelder@sgi.com>2011-06-23 22:13:46 -0500
commitdf4368a146d2b350b8398babfe11e2088f741d67 (patch)
tree2e8137eeaac9528f29fbab770fdf078a7496d5b5 /fs/reiserfs
parent778e24bb6dd8682318bb496d4bfdc32b501a6420 (diff)
downloadblackbird-op-linux-df4368a146d2b350b8398babfe11e2088f741d67.tar.gz
blackbird-op-linux-df4368a146d2b350b8398babfe11e2088f741d67.zip
xfs: clear XFS_IDIRTY_RELEASE on truncate down
When an inode is truncated down, speculative preallocation is removed from the inode. This should also reset the state bits for controlling whether preallocation is subsequently removed when the file is next closed. The flag is not being cleared, so repeated operations on a file that first involve a truncate (e.g. multiple repeated dd invocations on a file) give different file layouts for the second and subsequent invocations. Fix this by clearing the XFS_IDIRTY_RELEASE state bit when the XFS_ITRUNCATED bit is detected in xfs_release() and hence ensure that speculative delalloc is removed on files that have been truncated down. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud