diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-22 00:25:12 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 13:01:22 -0500 |
commit | 7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d (patch) | |
tree | c877667e140c8aeb81d43d005468efff0d12b7b4 /fs/cifs/cifsglob.h | |
parent | ddb52f4fd2184c3405be4b09f7ac9b2bf47d4e61 (diff) | |
download | op-kernel-dev-7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d.zip op-kernel-dev-7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d.tar.gz |
cifs: get rid of ->f_path.dentry->d_sb uses, add a new helper
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 02a33e5..6e13911 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1168,6 +1168,12 @@ CIFS_SB(struct super_block *sb) return sb->s_fs_info; } +static inline struct cifs_sb_info * +CIFS_FILE_SB(struct file *file) +{ + return CIFS_SB(file_inode(file)->i_sb); +} + static inline char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb) { if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) |