Skip to contentSkip to conversation

Staging: zcache-main: Fixed Camel Case Issue

PATCH In review Jake Champlin 3 participants 3 messages Jan 19, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: zcache-main: Fixed Camel Case Issue

Fixed a camel case coding style issue.

---
 drivers/staging/zcache/zcache-main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/zcache/zcache-main.c +2 -2
index 52b43b7..95be348 100644
@@ -1851,7 +1851,7 @@ static int zcache_frontswap_store(unsigned type, pgoff_t offset,
 	int ret = -1;
 	unsigned long flags;
 
-	BUG_ON(!PageLocked(page));
+	BUG_ON(!page_locked(page));
 	if (likely(ind64 == ind)) {
 		local_irq_save(flags);
 		ret = zcache_put_page(LOCAL_CLIENT, zcache_frontswap_poolid,
@@ -1871,7 +1871,7 @@ static int zcache_frontswap_load(unsigned type, pgoff_t offset,
 	struct tmem_oid oid = oswiz(type, ind);
 	int ret = -1;
 
-	BUG_ON(!PageLocked(page));
+	BUG_ON(!page_locked(page));
 	if (likely(ind64 == ind))
 		ret = zcache_get_page(LOCAL_CLIENT, zcache_frontswap_poolid,
 					&oid, iswiz(ind), page);
Signature · 8 lines
1.8.1.1


-- 
Jake Champlin
[email protected]
8123742937
<MuttClient>
#1 lore raw
Quoted 21 lines · Jake Champlin

Fixed a camel case coding style issue.

---
 drivers/staging/zcache/zcache-main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/zcache/zcache-main.c +1 -1
index 52b43b7..95be348 100644
@@ -1851,7 +1851,7 @@ static int zcache_frontswap_store(unsigned type, pgoff_t offset,
 	int ret = -1;
 	unsigned long flags;
 
-	BUG_ON(!PageLocked(page));
+	BUG_ON(!page_locked(page));
 	if (likely(ind64 == ind)) {
 		local_irq_save(flags);
 		ret = zcache_put_page(LOCAL_CLIENT, zcache_frontswap_poolid,

drivers/staging/zcache/zcache-main.c static int zcache_frontswap_load(unsigned type, pgoff_t offset, · line 1874

Quoted 5 lines
drivers/staging/zcache/zcache-main.c +1 -1
@@ -1871,7 +1871,7 @@ static int zcache_frontswap_load(unsigned type, pgoff_t offset,
 	struct tmem_oid oid = oswiz(type, ind);
 	int ret = -1;
 
-	BUG_ON(!PageLocked(page));
+	BUG_ON(!page_locked(page));

again, that doesn't work. Did you try to build the code?

- cong

Quoted 17 lines
drivers/staging/zcache/zcache-main.c +0 -0
 	if (likely(ind64 == ind))
 		ret = zcache_get_page(LOCAL_CLIENT, zcache_frontswap_poolid,
 					&oid, iswiz(ind), page);
Signature · 13 lines
1.8.1.1


-- 
Jake Champlin
[email protected]
8123742937
<MuttClient>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/