summaryrefslogtreecommitdiff
path: root/drivers/dma-buf
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-08-20 11:05:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-09 02:39:07 -0400
commita1f6dbac629e36f89a1332b5ae773b831c136ee9 (patch)
tree44e75e36a419a6714f81c5c9c7539d74581b82c0 /drivers/dma-buf
parent8e3fb059ae7c246ff906c3b988d0de1d66809e84 (diff)
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>
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r--drivers/dma-buf/dma-buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c
index f3014c448e1e..5be225c2ba98 100644
--- a/drivers/dma-buf/dma-buf.c
+++ b/drivers/dma-buf/dma-buf.c
@@ -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");