diff mbox

Oops on btrfs filesystem balance

Message ID 20100326040114.GA20717@localhost (mailing list archive)
State Awaiting Upstream
Headers show

Commit Message

Fengguang Wu March 26, 2010, 4:01 a.m. UTC
None
diff mbox

Patch

--- sound-2.6.orig/mm/readahead.c	2010-03-26 11:51:57.000000000 +0800
+++ sound-2.6/mm/readahead.c	2010-03-26 11:52:11.000000000 +0800
@@ -502,7 +502,7 @@  void page_cache_sync_readahead(struct ad
 		return;
 
 	/* be dumb */
-	if (filp->f_mode & FMODE_RANDOM) {
+	if (filp && (filp->f_mode & FMODE_RANDOM)) {
 		force_page_cache_readahead(mapping, filp, offset, req_size);
 		return;
 	}