OSDN Git Service

ntfs: replace attach_page_buffers with attach_page_private
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Tue, 2 Jun 2020 04:47:57 +0000 (21:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Jun 2020 17:59:07 +0000 (10:59 -0700)
Call the new function since attach_page_buffers will be removed.

Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Anton Altaparmakov <anton@tuxera.com>
Link: http://lkml.kernel.org/r/20200517214718.468-8-guoqing.jiang@cloud.ionos.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ntfs/aops.c
fs/ntfs/mft.c

index 554b744..bb0a438 100644 (file)
@@ -1732,7 +1732,7 @@ void mark_ntfs_record_dirty(struct page *page, const unsigned int ofs) {
                                bh = bh->b_this_page;
                        } while (bh);
                        tail->b_this_page = head;
-                       attach_page_buffers(page, head);
+                       attach_page_private(page, head);
                } else
                        buffers_to_free = bh;
        }
index 3aac5c9..fbb9f1b 100644 (file)
@@ -504,7 +504,7 @@ int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no,
                        bh = bh->b_this_page;
                } while (bh);
                tail->b_this_page = head;
-               attach_page_buffers(page, head);
+               attach_page_private(page, head);
        }
        bh = head = page_buffers(page);
        BUG_ON(!bh);