diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2018-09-25 13:59:31 +0200 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-10-12 14:29:59 +0200 |
commit | ad8994581815ac08123c7eeceb2ef160a96d186d (patch) | |
tree | a7442b568e90ade457fe17aeb2d0e5d23fc3e437 /fs/gfs2/rgrp.c | |
parent | gfs2: Move rs_{sizehint, rgd_gh} fields into the inode (diff) | |
download | linux-ad8994581815ac08123c7eeceb2ef160a96d186d.tar.xz linux-ad8994581815ac08123c7eeceb2ef160a96d186d.zip |
gfs2: Remove unused RGRP_RSRV_MINBYTES definition
This definition is only used to define RGRP_RSRV_MINBLKS, with no
benefit over defining RGRP_RSRV_MINBLKS directly.
In addition, instead of forcing RGRP_RSRV_MINBLKS to be of type u32,
cast it to that type where that type is required.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 3b17a4e77b39..22c73ced3edf 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -1566,7 +1566,7 @@ static void rg_mblk_search(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip, extlen = 1; else { extlen = max_t(u32, atomic_read(&ip->i_sizehint), ap->target); - extlen = clamp(extlen, RGRP_RSRV_MINBLKS, free_blocks); + extlen = clamp(extlen, (u32)RGRP_RSRV_MINBLKS, free_blocks); } if ((rgd->rd_free_clone < rgd->rd_reserved) || (free_blocks < extlen)) return; |