Skip to contentSkip to conversation

exofs: Remove superfluous dependency on buffer_head and writeback

PATCH New Boaz Harrosh 1 participant 1 message May 31, 2010 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exofs: Remove superfluous dependency on buffer_head and writeback

exofs_releasepage && exofs_invalidatepage are never called. Leave the WARN_ONs but remove any code. Toughs remove the #includes to buffer_head.h && writeback.h.

cleanup other stale #includes.

---
 fs/exofs/inode.c |    9 ++-------
 fs/exofs/super.c |    1 -
 2 files changed, 2 insertions(+), 8 deletions(-)
fs/exofs/inode.c +2 -7
index 1c2666c..b19c06f 100644
@@ -32,9 +32,6 @@
  */
 
 #include <linux/slab.h>
-#include <linux/writeback.h>
-#include <linux/buffer_head.h>
-#include <scsi/scsi_device.h>
 
 #include "exofs.h"
 
@@ -773,15 +770,13 @@ static int exofs_releasepage(struct page *page, gfp_t gfp)
 {
 	EXOFS_DBGMSG("page 0x%lx\n", page->index);
 	WARN_ON(1);
-	return try_to_free_buffers(page);
+	return 0;
 }
 
 static void exofs_invalidatepage(struct page *page, unsigned long offset)
 {
-	EXOFS_DBGMSG("page_has_buffers=>%d\n", page_has_buffers(page));
+	EXOFS_DBGMSG("page 0x%lx offset 0x%lx\n", page->index, offset);
 	WARN_ON(1);
-
-	block_invalidatepage(page, offset);
 }
 
 const struct address_space_operations exofs_aops = {
fs/exofs/super.c +0 -1
index 03149b9..50cb174 100644
@@ -31,7 +31,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <linux/smp_lock.h>
 #include <linux/string.h>
 #include <linux/parser.h>
 #include <linux/vfs.h>
Signature · 1 line
1.6.6.1