lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-id: <1376361475-17778-1-git-send-email-heesub.shin@samsung.com>
Date:	Tue, 13 Aug 2013 11:37:55 +0900
From:	Heesub Shin <heesub.shin@...sung.com>
To:	Alexander Viro <viro@...iv.linux.org.uk>
Cc:	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
	Heesub Shin <heesub.shin@...sung.com>,
	Dongjun Shin <d.j.shin@...sung.com>
Subject: [PATCH] fs/buffer.c: use lowmem_page_address instead of page_address

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@...sung.com>
Cc: Dongjun Shin <d.j.shin@...sung.com>
---
 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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ