xfs
[Top] [All Lists]

[PATCH 4/4] xfs: rename mem_to_page to xfs_bufmem_to_page

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: [PATCH 4/4] xfs: rename mem_to_page to xfs_bufmem_to_page
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Tue, 24 Dec 2013 20:48:47 +0800
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
From: Jie Liu <jeff.liu@xxxxxxxxxx>

Rename mem_to_page() to xfs_bufmem_to_page() for XFS convention.

Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
---
 fs/xfs/xfs_buf.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index 544315e..286ddbe 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -732,8 +732,8 @@ xfs_buf_set_empty(
 }
 
 static inline struct page *
-mem_to_page(
-       void                    *addr)
+xfs_bufmem_to_page(
+       void            *addr)
 {
        if ((!is_vmalloc_addr(addr))) {
                return virt_to_page(addr);
@@ -774,7 +774,7 @@ xfs_buf_associate_memory(
        bp->b_offset = offset;
 
        for (i = 0; i < bp->b_page_count; i++) {
-               bp->b_pages[i] = mem_to_page((void *)pageaddr);
+               bp->b_pages[i] = xfs_bufmem_to_page((void *)pageaddr);
                pageaddr += PAGE_SIZE;
        }
 
-- 
1.8.3.2

<Prev in Thread] Current Thread [Next in Thread>