[PATCH 2/2] btrfs: __btrfs_buffered_write: PAGE_CACHE_ removal related fixups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The PAGE_CACHE_* macros and page_cache_* helpers are gone in the next
merging target (4.7), so we have to fix that before the "enospc rework"
branch gets merged. Fixed only instances introduced by this patchset.

Signed-off-by: David Sterba <dsterba@xxxxxxxx>
---
 fs/btrfs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 7c802082a76b..2ef3b94a1a44 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1549,7 +1549,7 @@ static noinline ssize_t __btrfs_buffered_write(struct file *file,
 				 * write_bytes, so scale down.
 				 */
 				num_pages = DIV_ROUND_UP(write_bytes + offset,
-							 PAGE_CACHE_SIZE);
+							 PAGE_SIZE);
 				reserve_bytes = round_up(write_bytes +
 							 sector_offset,
 							 root->sectorsize);
-- 
2.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux