diff options
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 36c523d487a7..7fb74484af63 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -860,18 +860,19 @@ static struct inode *try_rgrp_unlink(struct gfs2_rgrpd *rgd, u64 *last_unlinked) | |||
860 | { | 860 | { |
861 | struct inode *inode; | 861 | struct inode *inode; |
862 | u32 goal = 0; | 862 | u32 goal = 0; |
863 | u64 ino; | 863 | u64 no_addr; |
864 | 864 | ||
865 | for(;;) { | 865 | for(;;) { |
866 | goal = rgblk_search(rgd, goal, GFS2_BLKST_UNLINKED, | 866 | goal = rgblk_search(rgd, goal, GFS2_BLKST_UNLINKED, |
867 | GFS2_BLKST_UNLINKED); | 867 | GFS2_BLKST_UNLINKED); |
868 | if (goal == 0) | 868 | if (goal == 0) |
869 | return 0; | 869 | return 0; |
870 | ino = goal + rgd->rd_data0; | 870 | no_addr = goal + rgd->rd_data0; |
871 | if (ino <= *last_unlinked) | 871 | if (no_addr <= *last_unlinked) |
872 | continue; | 872 | continue; |
873 | *last_unlinked = ino; | 873 | *last_unlinked = no_addr; |
874 | inode = gfs2_inode_lookup(rgd->rd_sbd->sd_vfs, ino, DT_UNKNOWN); | 874 | inode = gfs2_inode_lookup(rgd->rd_sbd->sd_vfs, DT_UNKNOWN, |
875 | no_addr, 0); | ||
875 | if (!IS_ERR(inode)) | 876 | if (!IS_ERR(inode)) |
876 | return inode; | 877 | return inode; |
877 | } | 878 | } |