Commit 41e4f3d8 authored by Trond Myklebust's avatar Trond Myklebust Committed by Linus Torvalds

[PATCH] NFS: add an fsync() stub for directories as per 2.4.x.

    Helps to keep the 'sendmail' doctor away.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cce4ae63
......@@ -51,12 +51,14 @@ static int nfs_link(struct dentry *, struct inode *, struct dentry *);
static int nfs_mknod(struct inode *, struct dentry *, int, dev_t);
static int nfs_rename(struct inode *, struct dentry *,
struct inode *, struct dentry *);
static int nfs_fsync_dir(struct file *, struct dentry *, int);
struct file_operations nfs_dir_operations = {
.read = generic_read_dir,
.readdir = nfs_readdir,
.open = nfs_opendir,
.release = nfs_release,
.fsync = nfs_fsync_dir,
};
struct inode_operations nfs_dir_inode_operations = {
......@@ -492,6 +494,15 @@ static int nfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
return 0;
}
/*
* All directory operations under NFS are synchronous, so fsync()
* is a dummy operation.
*/
int nfs_fsync_dir(struct file *filp, struct dentry *dentry, int datasync)
{
return 0;
}
/*
* A check for whether or not the parent directory has changed.
* In the case it has, we assume that the dentries are untrustworthy
......
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