diff options
author | Dave Chinner <dchinner@redhat.com> | 2011-06-23 01:34:59 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-06-23 22:13:31 -0500 |
commit | 778e24bb6dd8682318bb496d4bfdc32b501a6420 (patch) | |
tree | f245e607bb2e999d046d777a6abd84c422c86f41 /net | |
parent | a27a263bae072a499acc77b632238a6dacccf888 (diff) |
xfs: reset inode per-lifetime state when recycling it
XFS inodes has several per-lifetime state fields that determine the
behaviour of the inode. These state fields are not all reset when an
inode is reused from the reclaimable state.
This can lead to unexpected behaviour of the new inode such as
speculative preallocation not being truncated away in the expected
manner for local files until the inode is subsequently truncated,
freed or cycles out of the cache. It can also lead to an inode being
considered to be a filestream inode or having been truncated when
that is not the case.
Rework the reinitialisation of the inode when it is recycled to
ensure that it is pristine before it is reused. While there, also
fix the resetting of state flags in the recycling error paths so the
inode does not become unreclaimable.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions