aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 62c62b4fa55b..34772cbcc7aa 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1036,7 +1036,7 @@ out:
1036static int cluster_pages_for_defrag(struct inode *inode, 1036static int cluster_pages_for_defrag(struct inode *inode,
1037 struct page **pages, 1037 struct page **pages,
1038 unsigned long start_index, 1038 unsigned long start_index,
1039 int num_pages) 1039 unsigned long num_pages)
1040{ 1040{
1041 unsigned long file_end; 1041 unsigned long file_end;
1042 u64 isize = i_size_read(inode); 1042 u64 isize = i_size_read(inode);
@@ -1194,8 +1194,8 @@ int btrfs_defrag_file(struct inode *inode, struct file *file,
1194 int defrag_count = 0; 1194 int defrag_count = 0;
1195 int compress_type = BTRFS_COMPRESS_ZLIB; 1195 int compress_type = BTRFS_COMPRESS_ZLIB;
1196 int extent_thresh = range->extent_thresh; 1196 int extent_thresh = range->extent_thresh;
1197 int max_cluster = (256 * 1024) >> PAGE_CACHE_SHIFT; 1197 unsigned long max_cluster = (256 * 1024) >> PAGE_CACHE_SHIFT;
1198 int cluster = max_cluster; 1198 unsigned long cluster = max_cluster;
1199 u64 new_align = ~((u64)128 * 1024 - 1); 1199 u64 new_align = ~((u64)128 * 1024 - 1);
1200 struct page **pages = NULL; 1200 struct page **pages = NULL;
1201 1201