[PATCH] fs/buffer.c: use lowmem_page_address instead of page_address

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

 



Here, the page has been identified as lowmem already. So, calling
lowmem_page_address() directly is a little cheaper than page_address().

Signed-off-by: Heesub Shin <heesub.shin@xxxxxxxxxxx>
Cc: Dongjun Shin <d.j.shin@xxxxxxxxxxx>
---
 fs/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 695eb14..ccc2c7b 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1464,7 +1464,7 @@ void set_bh_page(struct buffer_head *bh,
 		 */
 		bh->b_data = (char *)(0 + offset);
 	else
-		bh->b_data = page_address(page) + offset;
+		bh->b_data = lowmem_page_address(page) + offset;
 }
 EXPORT_SYMBOL(set_bh_page);
 
-- 
1.8.3.2

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



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux