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 82e33f2 commit 777620bCopy full SHA for 777620b
drivers/dma-buf/dma-buf.c
@@ -558,7 +558,7 @@ static struct file *dma_buf_getfile(size_t size, int flags)
558
* Override ->i_ino with the unique and dmabuffs specific
559
* value.
560
*/
561
- inode->i_ino = atomic64_add_return(1, &dmabuf_inode);
+ inode->i_ino = atomic64_inc_return(&dmabuf_inode);
562
flags &= O_ACCMODE | O_NONBLOCK;
563
file = alloc_file_pseudo(inode, dma_buf_mnt, "dmabuf",
564
flags, &dma_buf_fops);
0 commit comments