summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.h
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2016-08-02 12:05:27 -0500
committerBob Peterson <rpeterso@redhat.com>2016-08-02 12:05:27 -0500
commit47a9a527946842dd8d83d4c8c8be22b2615b65f5 (patch)
tree1c244821bac1286dcedc72f09d4d2d9fa343176d /fs/gfs2/inode.h
parent731c7d3a205ba89b475b2aa71b5f13dd6ae3de56 (diff)
downloadlinux-stable-47a9a527946842dd8d83d4c8c8be22b2615b65f5.tar.gz
linux-stable-47a9a527946842dd8d83d4c8c8be22b2615b65f5.tar.bz2
linux-stable-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/inode.h')
-rw-r--r--fs/gfs2/inode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h
index 7710dfd3af35..aace8ce34a18 100644
--- a/fs/gfs2/inode.h
+++ b/fs/gfs2/inode.h
@@ -85,7 +85,7 @@ static inline int gfs2_check_internal_file_size(struct inode *inode,
u64 size = i_size_read(inode);
if (size < minsize || size > maxsize)
goto err;
- if (size & ((1 << inode->i_blkbits) - 1))
+ if (size & (BIT(inode->i_blkbits) - 1))
goto err;
return 0;
err: