mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
dma-buf: don't open-code atomic_long_read()
... not to mention that even atomic_long_read() is too low-level here - there's file_count(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
8e3fb059ae
commit
a1f6dbac62
@ -799,7 +799,7 @@ static int dma_buf_describe(struct seq_file *s)
|
|||||||
seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%s\n",
|
seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%s\n",
|
||||||
buf_obj->size,
|
buf_obj->size,
|
||||||
buf_obj->file->f_flags, buf_obj->file->f_mode,
|
buf_obj->file->f_flags, buf_obj->file->f_mode,
|
||||||
(long)(buf_obj->file->f_count.counter),
|
file_count(buf_obj->file),
|
||||||
buf_obj->exp_name);
|
buf_obj->exp_name);
|
||||||
|
|
||||||
seq_puts(s, "\tAttached Devices:\n");
|
seq_puts(s, "\tAttached Devices:\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user