aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTom Haynes <Thomas.Haynes@primarydata.com>2014-05-12 17:35:52 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-05-29 20:21:56 -0400
commitb5968725f46d9535e908689bd04bf676f71138bb (patch)
tree9a39fb8ec08c39f0c4193b6ba2d797b0f789744f /fs/nfs
parent0aa61e78a0f262a2f94bd138831c97749cfca5bf (diff)
Push the file layout driver into a subdirectory
The object and block layouts already exist in their own subdirectories. This patch completes the set! Note that as a layout denotes nfs4 already, I stripped that prefix out of the file names. Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com> Acked-by: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/Makefile4
-rw-r--r--fs/nfs/filelayout/Makefile5
-rw-r--r--fs/nfs/filelayout/filelayout.c (renamed from fs/nfs/nfs4filelayout.c)10
-rw-r--r--fs/nfs/filelayout/filelayout.h (renamed from fs/nfs/nfs4filelayout.h)2
-rw-r--r--fs/nfs/filelayout/filelayoutdev.c (renamed from fs/nfs/nfs4filelayoutdev.c)6
5 files changed, 15 insertions, 12 deletions
diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
index 03192a66c143..4782e0840dcc 100644
--- a/fs/nfs/Makefile
+++ b/fs/nfs/Makefile
@@ -29,8 +29,6 @@ nfsv4-$(CONFIG_NFS_USE_LEGACY_DNS) += cache_lib.o
29nfsv4-$(CONFIG_SYSCTL) += nfs4sysctl.o 29nfsv4-$(CONFIG_SYSCTL) += nfs4sysctl.o
30nfsv4-$(CONFIG_NFS_V4_1) += pnfs.o pnfs_dev.o 30nfsv4-$(CONFIG_NFS_V4_1) += pnfs.o pnfs_dev.o
31 31
32obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o 32obj-$(CONFIG_PNFS_FILE_LAYOUT) += filelayout/
33nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o
34
35obj-$(CONFIG_PNFS_OBJLAYOUT) += objlayout/ 33obj-$(CONFIG_PNFS_OBJLAYOUT) += objlayout/
36obj-$(CONFIG_PNFS_BLOCK) += blocklayout/ 34obj-$(CONFIG_PNFS_BLOCK) += blocklayout/
diff --git a/fs/nfs/filelayout/Makefile b/fs/nfs/filelayout/Makefile
new file mode 100644
index 000000000000..8516cdffb9e9
--- /dev/null
+++ b/fs/nfs/filelayout/Makefile
@@ -0,0 +1,5 @@
1#
2# Makefile for the pNFS Files Layout Driver kernel module
3#
4obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
5nfs_layout_nfsv41_files-y := filelayout.o filelayoutdev.o
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/filelayout/filelayout.c
index 21e921147d21..a008e8590417 100644
--- a/fs/nfs/nfs4filelayout.c
+++ b/fs/nfs/filelayout/filelayout.c
@@ -35,11 +35,11 @@
35 35
36#include <linux/sunrpc/metrics.h> 36#include <linux/sunrpc/metrics.h>
37 37
38#include "nfs4session.h" 38#include "../nfs4session.h"
39#include "internal.h" 39#include "../internal.h"
40#include "delegation.h" 40#include "../delegation.h"
41#include "nfs4filelayout.h" 41#include "filelayout.h"
42#include "nfs4trace.h" 42#include "../nfs4trace.h"
43 43
44#define NFSDBG_FACILITY NFSDBG_PNFS_LD 44#define NFSDBG_FACILITY NFSDBG_PNFS_LD
45 45
diff --git a/fs/nfs/nfs4filelayout.h b/fs/nfs/filelayout/filelayout.h
index cebd20e7e923..ffbddf2219ea 100644
--- a/fs/nfs/nfs4filelayout.h
+++ b/fs/nfs/filelayout/filelayout.h
@@ -30,7 +30,7 @@
30#ifndef FS_NFS_NFS4FILELAYOUT_H 30#ifndef FS_NFS_NFS4FILELAYOUT_H
31#define FS_NFS_NFS4FILELAYOUT_H 31#define FS_NFS_NFS4FILELAYOUT_H
32 32
33#include "pnfs.h" 33#include "../pnfs.h"
34 34
35/* 35/*
36 * Default data server connection timeout and retrans vaules. 36 * Default data server connection timeout and retrans vaules.
diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/filelayout/filelayoutdev.c
index efac602edb37..7c85390a4647 100644
--- a/fs/nfs/nfs4filelayoutdev.c
+++ b/fs/nfs/filelayout/filelayoutdev.c
@@ -33,9 +33,9 @@
33#include <linux/module.h> 33#include <linux/module.h>
34#include <linux/sunrpc/addr.h> 34#include <linux/sunrpc/addr.h>
35 35
36#include "internal.h" 36#include "../internal.h"
37#include "nfs4session.h" 37#include "../nfs4session.h"
38#include "nfs4filelayout.h" 38#include "filelayout.h"
39 39
40#define NFSDBG_FACILITY NFSDBG_PNFS_LD 40#define NFSDBG_FACILITY NFSDBG_PNFS_LD
41 41