diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-23 17:07:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-22 23:31:31 -0500 |
commit | 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch) | |
tree | 8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /fs/nfs/inode.c | |
parent | 57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff) |
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index ebeb94ce1b0b..548ae3113005 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -714,7 +714,7 @@ EXPORT_SYMBOL_GPL(put_nfs_open_context); | |||
714 | */ | 714 | */ |
715 | void nfs_file_set_open_context(struct file *filp, struct nfs_open_context *ctx) | 715 | void nfs_file_set_open_context(struct file *filp, struct nfs_open_context *ctx) |
716 | { | 716 | { |
717 | struct inode *inode = filp->f_path.dentry->d_inode; | 717 | struct inode *inode = file_inode(filp); |
718 | struct nfs_inode *nfsi = NFS_I(inode); | 718 | struct nfs_inode *nfsi = NFS_I(inode); |
719 | 719 | ||
720 | filp->private_data = get_nfs_open_context(ctx); | 720 | filp->private_data = get_nfs_open_context(ctx); |
@@ -747,7 +747,7 @@ struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_c | |||
747 | 747 | ||
748 | static void nfs_file_clear_open_context(struct file *filp) | 748 | static void nfs_file_clear_open_context(struct file *filp) |
749 | { | 749 | { |
750 | struct inode *inode = filp->f_path.dentry->d_inode; | 750 | struct inode *inode = file_inode(filp); |
751 | struct nfs_open_context *ctx = nfs_file_open_context(filp); | 751 | struct nfs_open_context *ctx = nfs_file_open_context(filp); |
752 | 752 | ||
753 | if (ctx) { | 753 | if (ctx) { |