summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-10-22 00:25:12 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-19 13:01:22 -0500
commit7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d (patch)
treec877667e140c8aeb81d43d005468efff0d12b7b4 /fs/cifs/cifsglob.h
parentddb52f4fd2184c3405be4b09f7ac9b2bf47d4e61 (diff)
downloadop-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.h6
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)
OpenPOWER on IntegriCloud