diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 3df428816559..c27258b5d3e1 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/pagevec.h> | 33 | #include <linux/pagevec.h> |
34 | #include <linux/namei.h> | 34 | #include <linux/namei.h> |
35 | #include <linux/mount.h> | 35 | #include <linux/mount.h> |
36 | #include <linux/sched.h> | ||
36 | 37 | ||
37 | #include "nfs4_fs.h" | 38 | #include "nfs4_fs.h" |
38 | #include "delegation.h" | 39 | #include "delegation.h" |
@@ -607,7 +608,7 @@ static int nfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
607 | return res; | 608 | return res; |
608 | } | 609 | } |
609 | 610 | ||
610 | loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int origin) | 611 | static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int origin) |
611 | { | 612 | { |
612 | mutex_lock(&filp->f_path.dentry->d_inode->i_mutex); | 613 | mutex_lock(&filp->f_path.dentry->d_inode->i_mutex); |
613 | switch (origin) { | 614 | switch (origin) { |
@@ -633,7 +634,7 @@ out: | |||
633 | * All directory operations under NFS are synchronous, so fsync() | 634 | * All directory operations under NFS are synchronous, so fsync() |
634 | * is a dummy operation. | 635 | * is a dummy operation. |
635 | */ | 636 | */ |
636 | int nfs_fsync_dir(struct file *filp, struct dentry *dentry, int datasync) | 637 | static int nfs_fsync_dir(struct file *filp, struct dentry *dentry, int datasync) |
637 | { | 638 | { |
638 | dfprintk(VFS, "NFS: fsync_dir(%s/%s) datasync %d\n", | 639 | dfprintk(VFS, "NFS: fsync_dir(%s/%s) datasync %d\n", |
639 | dentry->d_parent->d_name.name, dentry->d_name.name, | 640 | dentry->d_parent->d_name.name, dentry->d_name.name, |