We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a1cb63 commit 0654196Copy full SHA for 0654196
drivers/dma-buf/dma-buf.c
@@ -559,7 +559,7 @@ static struct file *dma_buf_getfile(size_t size, int flags)
559
* Override ->i_ino with the unique and dmabuffs specific
560
* value.
561
*/
562
- inode->i_ino = atomic64_add_return(1, &dmabuf_inode);
+ inode->i_ino = atomic64_inc_return(&dmabuf_inode);
563
flags &= O_ACCMODE | O_NONBLOCK;
564
file = alloc_file_pseudo(inode, dma_buf_mnt, "dmabuf",
565
flags, &dma_buf_fops);
0 commit comments