diff options
author | Fabian Frederick <fabf@skynet.be> | 2016-08-02 19:05:27 +0200 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2016-08-02 19:05:27 +0200 |
commit | 47a9a527946842dd8d83d4c8c8be22b2615b65f5 (patch) | |
tree | 1c244821bac1286dcedc72f09d4d2d9fa343176d /fs/gfs2/super.c | |
parent | Merge tag 'drm-for-v4.8' of git://people.freedesktop.org/~airlied/linux (diff) | |
download | linux-47a9a527946842dd8d83d4c8c8be22b2615b65f5.tar.xz linux-47a9a527946842dd8d83d4c8c8be22b2615b65f5.zip |
GFS2: use BIT() macro
Replace 1 << value shift by more explicit BIT() macro
Also fixes two bare unsigned definitions:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+ unsigned hsize = BIT(ip->i_depth);
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r-- | fs/gfs2/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 3a7e60bb39f8..e3ee387a6dfe 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c @@ -359,7 +359,7 @@ int gfs2_jdesc_check(struct gfs2_jdesc *jd) struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); u64 size = i_size_read(jd->jd_inode); - if (gfs2_check_internal_file_size(jd->jd_inode, 8 << 20, 1 << 30)) + if (gfs2_check_internal_file_size(jd->jd_inode, 8 << 20, BIT(30))) return -EIO; jd->jd_blocks = size >> sdp->sd_sb.sb_bsize_shift; |