]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/linux/nfs_fs.h
NFS: Cleanup initialisation of struct nfs_fattr
[linux-2.6.git] / include / linux / nfs_fs.h
index 7bac2785c6e4f5a9f67b68540a2084e5092ebf94..8120fd68dee5faa23bf393b393422c4be62b07bf 100644 (file)
@@ -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
  */