summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust2005-10-28 04:12:38 +0200
committerTrond Myklebust2005-10-28 04:12:38 +0200
commit0e574af1be5f569a5d7f2800333b0bfb358a5e34 (patch)
treebb5b62dece21b8906222dfee022020ed6f81e34c /include/linux/nfs_fs.h
parentMerge /home/trondmy/scm/kernel/git/torvalds/linux-2.6 (diff)
downloadkernel-qcow2-linux-0e574af1be5f569a5d7f2800333b0bfb358a5e34.tar.gz
kernel-qcow2-linux-0e574af1be5f569a5d7f2800333b0bfb358a5e34.tar.xz
kernel-qcow2-linux-0e574af1be5f569a5d7f2800333b0bfb358a5e34.zip
NFS: Cleanup initialisation of struct nfs_fattr
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 7bac2785c6e4..8120fd68dee5 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -316,6 +316,11 @@ extern void nfs_file_clear_open_context(struct file *filp);
/* linux/net/ipv4/ipconfig.c: trims ip addr off front of name, too. */
extern u32 root_nfs_parse_addr(char *name); /*__init*/
+static inline void nfs_fattr_init(struct nfs_fattr *fattr)
+{
+ fattr->valid = 0;
+}
+
/*
* linux/fs/nfs/file.c
*/