diff options
author | Brian Foster <bfoster@redhat.com> | 2013-02-22 19:32:56 +0100 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-03-07 19:21:39 +0100 |
commit | e78c420bfc2608bb5f9a0b9165b1071c1e31166a (patch) | |
tree | 1d780da1a8a49c9eed1d390b92ece519f1fe9c3f /fs/omfs/dir.c | |
parent | Linux 3.9-rc1 (diff) | |
download | linux-e78c420bfc2608bb5f9a0b9165b1071c1e31166a.tar.xz linux-e78c420bfc2608bb5f9a0b9165b1071c1e31166a.zip |
xfs: fix potential infinite loop in xfs_iomap_prealloc_size()
If freesp == 0, we could end up in an infinite loop while squashing
the preallocation. Break the loop when we've killed the prealloc
entirely.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/omfs/dir.c')
0 files changed, 0 insertions, 0 deletions