summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/file.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2019-09-02 17:31:06 +0100
committerAndreas Gruenbacher <agruenba@redhat.com>2019-09-04 20:22:06 +0200
commit45eb05042d5667408d101a8c056f70a8e8ac27f6 (patch)
tree080cb4db4973cb944d5e2a99b9b58478001e6d6d /fs/gfs2/file.c
parent8f0daef5f797c13d7f9bd248190933932b14df36 (diff)
downloadlinux-45eb05042d5667408d101a8c056f70a8e8ac27f6.tar.gz
linux-45eb05042d5667408d101a8c056f70a8e8ac27f6.tar.bz2
linux-45eb05042d5667408d101a8c056f70a8e8ac27f6.zip
gfs2: Minor PAGE_SIZE arithmetic cleanups
Replace divisions by PAGE_SIZE with shifts by PAGE_SHIFT and similar. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r--fs/gfs2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 99e2c8cd5eaa..997b326247e2 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -1049,7 +1049,7 @@ static long __gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t
rblocks += data_blocks ? data_blocks : 1;
error = gfs2_trans_begin(sdp, rblocks,
- PAGE_SIZE/sdp->sd_sb.sb_bsize);
+ PAGE_SIZE >> inode->i_blkbits);
if (error)
goto out_trans_fail;