Commit 85dc7878 authored by Boaz Harrosh's avatar Boaz Harrosh

exofs: Remove superfluous dependency on buffer_head and writeback

exofs_releasepage && exofs_invalidatepage are never called.
Leave the WARN_ONs but remove any code. Remove the

cleanup other stale #includes.
Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
parent 3a09b1be
...@@ -32,9 +32,6 @@ ...@@ -32,9 +32,6 @@
*/ */
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/writeback.h>
#include <linux/buffer_head.h>
#include <scsi/scsi_device.h>
#include "exofs.h" #include "exofs.h"
...@@ -759,15 +756,13 @@ static int exofs_releasepage(struct page *page, gfp_t gfp) ...@@ -759,15 +756,13 @@ static int exofs_releasepage(struct page *page, gfp_t gfp)
{ {
EXOFS_DBGMSG("page 0x%lx\n", page->index); EXOFS_DBGMSG("page 0x%lx\n", page->index);
WARN_ON(1); WARN_ON(1);
return try_to_free_buffers(page); return 0;
} }
static void exofs_invalidatepage(struct page *page, unsigned long offset) 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); WARN_ON(1);
block_invalidatepage(page, offset);
} }
const struct address_space_operations exofs_aops = { const struct address_space_operations exofs_aops = {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <linux/smp_lock.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/parser.h> #include <linux/parser.h>
#include <linux/vfs.h> #include <linux/vfs.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment