linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] f2fs: remove unused PagePrivate
@ 2014-03-12  2:27 Changman Lee
  2014-03-12  2:27 ` [PATCH 2/2] f2fs: call set_dirty_dir_page if inode is directory Changman Lee
  0 siblings, 1 reply; 3+ messages in thread
From: Changman Lee @ 2014-03-12  2:27 UTC (permalink / raw)
  To: linux-f2fs-devel, linux-fsdevel

In f2fs, pagecache page doesn't contain filesystem specific data, so
it's redundant. Let's remove it.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
---
 fs/f2fs/checkpoint.c |    1 -
 fs/f2fs/data.c       |    2 --
 fs/f2fs/node.c       |    3 ---
 3 files changed, 6 deletions(-)

diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 911b6f9..1e03ca5 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -590,7 +590,6 @@ void set_dirty_dir_page(struct inode *inode, struct page *page)
 		kmem_cache_free(inode_entry_slab, new);
 
 	inode_inc_dirty_dents(inode);
-	SetPagePrivate(page);
 	spin_unlock(&sbi->dir_inode_lock);
 }
 
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 101b4cd..acd0159 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1024,12 +1024,10 @@ static void f2fs_invalidate_data_page(struct page *page, unsigned int offset,
 	struct inode *inode = page->mapping->host;
 	if (PageDirty(page))
 		inode_dec_dirty_dents(inode);
-	ClearPagePrivate(page);
 }
 
 static int f2fs_release_data_page(struct page *page, gfp_t wait)
 {
-	ClearPagePrivate(page);
 	return 1;
 }
 
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index e72b258..88e51c6 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1237,7 +1237,6 @@ static int f2fs_set_node_page_dirty(struct page *page)
 	if (!PageDirty(page)) {
 		__set_page_dirty_nobuffers(page);
 		inc_page_count(sbi, F2FS_DIRTY_NODES);
-		SetPagePrivate(page);
 		return 1;
 	}
 	return 0;
@@ -1250,12 +1249,10 @@ static void f2fs_invalidate_node_page(struct page *page, unsigned int offset,
 	struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
 	if (PageDirty(page))
 		dec_page_count(sbi, F2FS_DIRTY_NODES);
-	ClearPagePrivate(page);
 }
 
 static int f2fs_release_node_page(struct page *page, gfp_t wait)
 {
-	ClearPagePrivate(page);
 	return 1;
 }
 
-- 
1.7.10.4


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-12  3:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-12  2:27 [PATCH 1/2] f2fs: remove unused PagePrivate Changman Lee
2014-03-12  2:27 ` [PATCH 2/2] f2fs: call set_dirty_dir_page if inode is directory Changman Lee
2014-03-12  3:36   ` [PATCH 2/2 v2] " Changman Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).