Skip to content

Commit

Permalink
dma-buf: don't open-code atomic_long_read()
Browse files Browse the repository at this point in the history
... 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>
  • Loading branch information
Al Viro committed Oct 9, 2014
1 parent 8e3fb05 commit a1f6dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma-buf/dma-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
buf_obj->size,
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);

seq_puts(s, "\tAttached Devices:\n");
Expand Down

0 comments on commit a1f6dba

Please sign in to comment.