GFS2: Fix fstrim boundary conditions
authorAbhijith Das <adas@redhat.com>
Wed, 19 Jun 2013 21:03:29 +0000 (17:03 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 19 Jun 2013 20:41:26 +0000 (21:41 +0100)
commit6a98c333edd0ada67e96a5dbd0445808147833f7
tree817ef5b7e107537c39bd02b872945aca20863c38
parent2b12eea656765b1392b55f0e5cae48be09ed9344
GFS2: Fix fstrim boundary conditions

This patch correctly distinguishes two boundary conditions:

1. When the given range is entire within the unaccounted space between
   two rgrps, and
2. The range begins beyond the end of the filesystem

Also fix the unit of the returned value r.len (total trimming) to be in bytes
instead of the (incorrect) 512 byte blocks

With this patch, GFS2 passes multiple iterations of all the relevant xfstests
(251, 260, 288) with different fs block sizes.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c
This page took 0.027708 seconds and 5 git commands to generate.