VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Nick Piggin <npiggin@suse.de> 2008-08-02 12:01:03 +0200 committer: Linus Torvalds <torvalds@linux-foundation.org> 2008-08-04 21:31:34 -0700 commit: 529ae9aaa08378cfe2a4350bded76f32cc8ff0ce parent: e9ba9698187ddbc0c5bfcf41de0349a662d23d02
Commit Summary:
mm: rename page trylock
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index adf0395f318e..f2ad061e95ec 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -67,7 +67,7 @@ static void release_buffer_page(struct buffer_head *bh)
 		goto nope;
 
 	/* OK, it's a truncated page */
-	if (TestSetPageLocked(page))
+	if (!trylock_page(page))
 		goto nope;
 
 	page_cache_get(page);