diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-22 06:25:12 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 19:01:22 +0100 |
commit | 7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d (patch) | |
tree | c877667e140c8aeb81d43d005468efff0d12b7b4 /fs/cifs/cifsfs.c | |
parent | btrfs: get rid of f_dentry use (diff) | |
download | linux-7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d.tar.xz linux-7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d.zip |
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/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 9d7996e8e793..d72fe37f5420 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -209,8 +209,7 @@ cifs_statfs(struct dentry *dentry, struct kstatfs *buf) static long cifs_fallocate(struct file *file, int mode, loff_t off, loff_t len) { - struct super_block *sb = file->f_path.dentry->d_sb; - struct cifs_sb_info *cifs_sb = CIFS_SB(sb); + struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(file); struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); struct TCP_Server_Info *server = tcon->ses->server; |