mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-05 07:36:59 +00:00
scoutfs: add release argument and result tracing
Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -261,6 +261,9 @@ static long scoutfs_ioc_release(struct file *file, unsigned long arg)
|
||||
if (copy_from_user(&args, (void __user *)arg, sizeof(args)))
|
||||
return -EFAULT;
|
||||
|
||||
trace_printk("offset %llu count %llu vers %llu\n",
|
||||
args.offset, args.count, args.data_version);
|
||||
|
||||
if (args.count == 0)
|
||||
return 0;
|
||||
if ((args.offset + args.count) < args.offset)
|
||||
@@ -312,6 +315,7 @@ out:
|
||||
mutex_unlock(&inode->i_mutex);
|
||||
mnt_drop_write_file(file);
|
||||
|
||||
trace_printk("ret %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user