summaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-05-21 05:47:59 +0000
committerAlex Elder <aelder@sgi.com>2010-05-28 15:19:12 -0500
commit07f1a4f5e89cd4e6c79d67d41e8a18c451214ae2 (patch)
treea4efa89cd8536b6ff6b75713fd5cc342f4da4f62 /CREDITS
parentfdc07f44c891d3fdee7722a03e3881614a293b3c (diff)
downloadblackbird-op-linux-07f1a4f5e89cd4e6c79d67d41e8a18c451214ae2.tar.gz
blackbird-op-linux-07f1a4f5e89cd4e6c79d67d41e8a18c451214ae2.zip
xfs: Check new inode size is OK before preallocating
The new xfsqa test 228 tries to preallocate more space than the filesystem contains. it should fail, but instead triggers an assert about lock flags. The failure is due to the size extension failing in vmtruncate() due to rlimit being set. Check this before we start the preallocation to avoid allocating space that will never be used. Also the path through xfs_vn_allocate already holds the IO lock, so it should not be present in the lock flags when the setattr fails. Hence the assert needs to take this into account. This will prevent other such callers from hitting this incorrect ASSERT. (Fixed a reference to "newsize" to read "new_size". -Alex) 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 'CREDITS')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud