From 7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 22 Oct 2014 00:25:12 -0400 Subject: cifs: get rid of ->f_path.dentry->d_sb uses, add a new helper Signed-off-by: Al Viro --- fs/cifs/cifsglob.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fs/cifs/cifsglob.h') diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 02a33e529904..6e139111fdb2 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) -- cgit