diff options
author | Brian Behlendorf <[email protected]> | 2022-09-16 14:22:52 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-09-16 14:25:53 -0700 |
commit | 7dee043af5d9fce99611bca5863bf6ca28b741ba (patch) | |
tree | a9ca066d7b6c748ee2e930d5cce2a7f06078fa02 /module/os/linux | |
parent | 4df8ccc83dc59c6921a4b8df4cd01f08ead3114a (diff) |
zfs_enter rework followup
The zpl_fadvise() function was recently added and was not included
in the initial patch. Update it accordingly.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #13831
Diffstat (limited to 'module/os/linux')
-rw-r--r-- | module/os/linux/zfs/zpl_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/os/linux/zfs/zpl_file.c b/module/os/linux/zfs/zpl_file.c index f6bdfd08b..25fc6b223 100644 --- a/module/os/linux/zfs/zpl_file.c +++ b/module/os/linux/zfs/zpl_file.c @@ -930,8 +930,8 @@ zpl_fadvise(struct file *filp, loff_t offset, loff_t len, int advice) if (offset < 0 || len < 0) return (-EINVAL); - ZFS_ENTER(zfsvfs); - ZFS_VERIFY_ZP(zp); + if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) + return (error); switch (advice) { case POSIX_FADV_SEQUENTIAL: @@ -963,7 +963,7 @@ zpl_fadvise(struct file *filp, loff_t offset, loff_t len, int advice) break; } - ZFS_EXIT(zfsvfs); + zfs_exit(zfsvfs, FTAG); return (error); } |