diff mbox

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

Message ID b70f5aeab8239af9d932066276f9adbdad7af8b6.1461666893.git.dsterba@suse.com (mailing list archive)
State Superseded
Headers show

Commit Message

David Sterba April 26, 2016, 10:44 a.m. UTC
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@suse.com>
---
 fs/btrfs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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);