diff options
author | Fabian Frederick <fabf@skynet.be> | 2016-08-02 12:05:27 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2016-08-02 12:05:27 -0500 |
commit | 47a9a527946842dd8d83d4c8c8be22b2615b65f5 (patch) | |
tree | 1c244821bac1286dcedc72f09d4d2d9fa343176d /fs/gfs2/aops.c | |
parent | 731c7d3a205ba89b475b2aa71b5f13dd6ae3de56 (diff) | |
download | linux-next-47a9a527946842dd8d83d4c8c8be22b2615b65f5.tar.gz |
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/aops.c')
-rw-r--r-- | fs/gfs2/aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 82df36886938..71dbbd4a2324 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -187,7 +187,7 @@ static int __gfs2_jdata_writepage(struct page *page, struct writeback_control *w ClearPageChecked(page); if (!page_has_buffers(page)) { create_empty_buffers(page, inode->i_sb->s_blocksize, - (1 << BH_Dirty)|(1 << BH_Uptodate)); + BIT(BH_Dirty)|BIT(BH_Uptodate)); } gfs2_page_add_databufs(ip, page, 0, sdp->sd_vfs->s_blocksize-1); } |