dir.c (53aa930dc4bae6aa269951bd37103083145d6691) dir.c (1f24cd31c28178415158366b676c2e18be812940)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/fs/nfs/dir.c
4 *
5 * Copyright (C) 1992 Rick Sladkey
6 *
7 * nfs directory handling functions
8 *

--- 2008 unchanged lines hidden (view full) ---

2017 struct dentry *dentry,
2018 struct file *file, unsigned open_flags)
2019{
2020 int err;
2021
2022 err = finish_open(file, dentry, do_open);
2023 if (err)
2024 goto out;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/fs/nfs/dir.c
4 *
5 * Copyright (C) 1992 Rick Sladkey
6 *
7 * nfs directory handling functions
8 *

--- 2008 unchanged lines hidden (view full) ---

2017 struct dentry *dentry,
2018 struct file *file, unsigned open_flags)
2019{
2020 int err;
2021
2022 err = finish_open(file, dentry, do_open);
2023 if (err)
2024 goto out;
2025 if (S_ISREG(file->f_path.dentry->d_inode->i_mode))
2025 if (S_ISREG(file_inode(file)->i_mode))
2026 nfs_file_set_open_context(file, ctx);
2027 else
2028 err = -EOPENSTALE;
2029out:
2030 return err;
2031}
2032
2033int nfs_atomic_open(struct inode *dir, struct dentry *dentry,

--- 1251 unchanged lines hidden ---
2026 nfs_file_set_open_context(file, ctx);
2027 else
2028 err = -EOPENSTALE;
2029out:
2030 return err;
2031}
2032
2033int nfs_atomic_open(struct inode *dir, struct dentry *dentry,

--- 1251 unchanged lines hidden ---