diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-09-16 12:44:21 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2016-09-16 12:44:21 +0200 |
commit | a00be0e31f8df453ecbaaa4ba78d2ef935ab252e (patch) | |
tree | 75c1e8e88132090b5d8721ab927cd053a24b2ff3 /fs/cifs/cifsfs.h | |
parent | beaf226b863a0bea28f2a6985555401450e968b2 (diff) | |
download | op-kernel-dev-a00be0e31f8df453ecbaaa4ba78d2ef935ab252e.zip op-kernel-dev-a00be0e31f8df453ecbaaa4ba78d2ef935ab252e.tar.gz |
cifs: don't use ->d_time
Use d_fsdata instead, which is the same size. Introduce helpers to hide
the typecasts.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: Steve French <sfrench@samba.org>
Diffstat (limited to 'fs/cifs/cifsfs.h')
-rw-r--r-- | fs/cifs/cifsfs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index 9dcf974..c9c00a8 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h @@ -41,6 +41,16 @@ cifs_uniqueid_to_ino_t(u64 fileid) } +static inline void cifs_set_time(struct dentry *dentry, unsigned long time) +{ + dentry->d_fsdata = (void *) time; +} + +static inline unsigned long cifs_get_time(struct dentry *dentry) +{ + return (unsigned long) dentry->d_fsdata; +} + extern struct file_system_type cifs_fs_type; extern const struct address_space_operations cifs_addr_ops; extern const struct address_space_operations cifs_addr_ops_smallbuf; |