aboutsummaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-12-15 16:49:51 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2007-02-05 13:36:12 -0500
commite1d5b18ae92d0bbfe66dc2b4bab65006d32c5f7d (patch)
treed74ca0e101e6146ecf00b4c495bde40f45d7e43e /usr
parentc7b3383437ff41781964d1bf7f40ff8d7dd5bc47 (diff)
[GFS2] Fail over to readpage for stuffed files
This is partially derrived from a patch written by Russell Cattelan. It fixes a bug where there is a race between readpages and truncate by ignoring readpages for stuffed files. This is ok because a stuffed file will never be more than one block (minus sizeof(struct gfs2_dinode)) in size and block size is always less than page size, so we do not lose anything efficiency-wise by not doing readahead for stuffed files. They will have already been "read ahead" by the action of reading the inode in, in the first place. This is the remaining part of the fix for Red Hat bugzilla #218966 which had not yet made it upstream. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Russell Cattelan <cattelan@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions