summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 77e33534c7d6..f15c13f97018 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -2215,7 +2215,7 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len)
2215 goto out_only_mutex; 2215 goto out_only_mutex;
2216 } 2216 }
2217 2217
2218 lockstart = round_up(offset , BTRFS_I(inode)->root->sectorsize); 2218 lockstart = round_up(offset, BTRFS_I(inode)->root->sectorsize);
2219 lockend = round_down(offset + len, 2219 lockend = round_down(offset + len,
2220 BTRFS_I(inode)->root->sectorsize) - 1; 2220 BTRFS_I(inode)->root->sectorsize) - 1;
2221 same_page = ((offset >> PAGE_CACHE_SHIFT) == 2221 same_page = ((offset >> PAGE_CACHE_SHIFT) ==
@@ -2276,7 +2276,7 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len)
2276 tail_start + tail_len, 0, 1); 2276 tail_start + tail_len, 0, 1);
2277 if (ret) 2277 if (ret)
2278 goto out_only_mutex; 2278 goto out_only_mutex;
2279 } 2279 }
2280 } 2280 }
2281 } 2281 }
2282 2282