linux/fs/gfs2
Bob Peterson 13d2eb0129 GFS2: Reset rd_last_alloc when it reaches the end of the rgrp
In function rg_mblk_search, it's searching for multiple blocks in
a given state (e.g. "free"). If there's an active block reservation
its goal is the next free block of that. If the resource group
contains the dinode's goal block, that's used for the search. But
if neither is the case, it uses the rgrp's last allocated block.
That way, consecutive allocations appear after one another on media.
The problem comes in when you hit the end of the rgrp; it would never
start over and search from the beginning. This became a problem,
since if you deleted all the files and data from the rgrp, it would
never start over and find free blocks. So it had to keep searching
further out on the media to allocate blocks. This patch resets the
rd_last_alloc after it does an unsuccessful search at the end of
the rgrp.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2013-01-02 10:05:27 +00:00
..
acl.c
acl.h
aops.c GFS2: Add Orlov allocator 2012-11-07 13:33:17 +00:00
bmap.c GFS2: Fix truncation of journaled data files 2012-11-13 09:50:28 +00:00
bmap.h
dentry.c
dir.c GFS2: Use dirty_inode in gfs2_dir_add 2012-11-13 09:54:54 +00:00
dir.h
export.c tmpfs,ceph,gfs2,isofs,reiserfs,xfs: fix fh_len checking 2012-10-09 23:33:55 -04:00
file.c lseek: the "whence" argument is called "whence" 2012-12-17 17:15:12 -08:00
gfs2.h
glock.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw 2012-12-15 12:34:21 -08:00
glock.h GFS2: Review bug traps in glops.c 2012-11-07 13:31:07 +00:00
glops.c GFS2: only use lvb on glocks that need it 2012-11-15 10:16:59 +00:00
glops.h
incore.h GFS2: remove redundant lvb pointer 2012-11-15 10:17:22 +00:00
inode.c GFS2: Set gl_object during inode create 2012-11-21 14:49:21 +00:00
inode.h
Kconfig
lock_dlm.c GFS2: Initialize hex string to '0' 2013-01-02 10:04:00 +00:00
log.c
log.h
lops.c GFS2: Test bufdata with buffer locked and gfs2_log_lock held 2012-11-07 09:43:03 +00:00
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c GFS2: Speed up gfs2_rbm_from_block 2012-11-07 13:31:36 +00:00
quota.c GFS2: remove redundant lvb pointer 2012-11-15 10:17:22 +00:00
quota.h
recovery.c
recovery.h
rgrp.c GFS2: Reset rd_last_alloc when it reaches the end of the rgrp 2013-01-02 10:05:27 +00:00
rgrp.h GFS2: Add Orlov allocator 2012-11-07 13:33:17 +00:00
super.c GFS2: Don't call file_accessed() with a shared glock 2012-11-07 09:42:49 +00:00
super.h
sys.c
sys.h
trace_gfs2.h GFS2: don't reference inode's glock during block allocation trace 2012-11-16 14:21:48 +00:00
trans.c GFS2: Test bufdata with buffer locked and gfs2_log_lock held 2012-11-07 09:43:03 +00:00
trans.h
util.c
util.h
xattr.c GFS2: Add Orlov allocator 2012-11-07 13:33:17 +00:00
xattr.h