projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e3fb05
)
dma-buf: don't open-code atomic_long_read()
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 20 Aug 2014 15:05:50 +0000
(11:05 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 9 Oct 2014 06:39:07 +0000
(
02:39
-0400)
... 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>
drivers/dma-buf/dma-buf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma-buf/dma-buf.c
b/drivers/dma-buf/dma-buf.c
index f3014c448e1ef5fb24804945af9dbdca7950b4c5..5be225c2ba98d5ea11760217d9afdfa5240215d3 100644
(file)
--- 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");