commit | b7640d2ef760e0034eded92d0963c725057d7799 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <miklos@szeredi.hu> | Fri Apr 08 15:15:28 2005 +0000 |
committer | Miklos Szeredi <miklos@szeredi.hu> | Fri Apr 08 15:15:28 2005 +0000 |
tree | 17c139406831794a33346272d22d80b34c8c149b | |
parent | 432d618289bb46840a08454a210924dd84dc765f [diff] [blame] |
fix
diff --git a/kernel/dir.c b/kernel/dir.c index 093bbb9..6ae498c 100644 --- a/kernel/dir.c +++ b/kernel/dir.c
@@ -647,7 +647,8 @@ static int fuse_dir_fsync(struct file *file, struct dentry *de, int datasync) { - return fuse_fsync_common(file, de, datasync, 1); + /* nfsd can call this with no file */ + return file ? fuse_fsync_common(file, de, datasync, 1) : 0; } static unsigned iattr_to_fattr(struct iattr *iattr, struct fuse_attr *fattr)